Email and MIME Modules
email.mime.application
Creates legacy MIME parts for application data. MIMEApplication defaults to application/octet-stream and Base64 transfer encoding. A specific subtype can describe a known format, but the constructor does not validate the bytes against that format.
Formal Syntax & Structure
python syntaxpython
import email.mime.applicationReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
from email.mime.application import MIMEApplicationpart = MIMEApplication(b"abc")print(part.get_content_type(), part.get_payload(decode=True))