#
12. Internet Data Handling

This chapter describes modules which support handling data formats commonly used on the Internet.

`formatter` |  | Generic output formatter and device interface.
`email` |  | Package supporting the parsing, manipulating, and generating email messages, including MIME documents.
`email.Message` |  | The base class representing email messages.
`email.Parser` |  | Parse flat text email messages to produce a message object tree.
`email.Generator` |  | Generate flat text email messages from a message object tree.
`email.Encoders` |  | Encoders for email message payloads.
`email.Errors` |  | The exception classes used by the email package.
`email.Utils` |  | Miscellaneous email package utilities.
`email.Iterators` |  | Iterate over a message object tree.
`mailcap` |  | Mailcap file handling.
`mailbox` |  | Read various mailbox formats.
`mhlib` |  | Manipulate MH mailboxes from Python.
`mimetools` |  | Tools for parsing MIME-style message bodies.
`mimetypes` |  | Mapping of filename extensions to MIME types.
`MimeWriter` |  | Generic MIME file writer.
`mimify` |  | Mimification and unmimification of mail messages.
`multifile` |  | Support for reading files which contain distinct parts, such as some MIME data.
`rfc822` |  | Parse RFC 2822 style mail messages.
`base64` |  | Encode and decode files using the MIME base64 data.
`binascii` |  | Tools for converting between binary and various ASCII-encoded binary representations.
`binhex` |  | Encode and decode files in binhex4 format.
`quopri` |  | Encode and decode files using the MIME quoted-printable encoding.
`uu` |  | Encode and decode files in uuencode format.
`xdrlib` |  | Encoders and decoders for the External Data Representation (XDR).
`netrc` |  | Loading of .netrc files.
`robotparser` |  | Loads a robots.txt file and answers questions about fetchability of other URLs.