A backport of the newest Python 2.x email module to >= Python 2.3
Project description
5A5AThe email_backport package is a wrap-up of the email > 4.x module
found in Python 2.5 and above.
This is to create a simple way of creating email-related code that
works with existing Python code and interpreters (>= Python 2.3) as
there has been a lot of changes such as new naming standards, see
here:
http://docs.python.org/library/email
To use in your code, try something like:
EMAIL_4 = False
import sys
try:
from email import message
EMAIL_4 = True
except ImportError:
sys._IMPORTING_EMAIL_BACKPORT = True
try:
import email_backport as email
sys.modules['email'] = email
EMAIL_4 = True
except ImportError:
EMAIL_4 = False
If EMAIL_4 is true, we're good to go, if not, one can disable mail
features of the application.
The versioning of email_backport follows Python's email module
internal version.
You can find the SVN version of this package here:
https://svn.nidelven-it.no/svn/shared-pypi-modules/
Login is svnaccess/svnaccess (read-only access). If you want to
contribute, drop us a line!
4.0.3:
- Initial setup
found in Python 2.5 and above.
This is to create a simple way of creating email-related code that
works with existing Python code and interpreters (>= Python 2.3) as
there has been a lot of changes such as new naming standards, see
here:
http://docs.python.org/library/email
To use in your code, try something like:
EMAIL_4 = False
import sys
try:
from email import message
EMAIL_4 = True
except ImportError:
sys._IMPORTING_EMAIL_BACKPORT = True
try:
import email_backport as email
sys.modules['email'] = email
EMAIL_4 = True
except ImportError:
EMAIL_4 = False
If EMAIL_4 is true, we're good to go, if not, one can disable mail
features of the application.
The versioning of email_backport follows Python's email module
internal version.
You can find the SVN version of this package here:
https://svn.nidelven-it.no/svn/shared-pypi-modules/
Login is svnaccess/svnaccess (read-only access). If you want to
contribute, drop us a line!
4.0.3:
- Initial setup
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
email_backport-4.0.3b.tar.gz
(146.7 kB
view details)
File details
Details for the file email_backport-4.0.3b.tar.gz
.
File metadata
- Download URL: email_backport-4.0.3b.tar.gz
- Upload date:
- Size: 146.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7bb44242a0e10e05d5c382d8bd4de392658ac00f917ccce02678ce3bf5582f9 |
|
MD5 | 2ba3fbb5bedcd9e513a927c482f68742 |
|
BLAKE2b-256 | ea616e139ab62ebf4e49136e700c954f0bb5e70912ef9d0abe274296a38548ba |