One of Python's greatest assets is the strength of its networking support in the standard library, particularly those oriented toward Internet protocols and client development. Listed below are related modules, first focusing on electronic mail followed by Internet protocols in general.
Python features numerous e-mail modules and packages to help you with building an application. Some of them are listed in Table 17.5.
Table 17.5. E-Mail-Related Modules
Module/Package | Description |
|---|
email | Package for processing e-mail (also supports MIME) |
rfc822 | RFC2822 mail header parsers |
smtpd | SMTP server |
base64 | Base 16, 32, and 64 data encodings (RFC 3548) |
mhlib | Classes for handling MH folders and messages |
mailbox | Classes to support parsing mailbox file formats |
mailcap | Support for handling "mailcap" files |
mimetools | (deprecated) MIME message parsing tools (use email above) |
mimetypes | Converts between filenames/URLs and associated MIME types |
MimeWriter | (deprecated) MIME message processing (use email above) |
mimify | (deprecated) Tools to MIME-process messages with (use email above) |
binascii | Binary and ASCII conversion |
binhex | Binhex4 encoding and decoding support |