Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python34/lib64/python3.4/email/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python34/lib64/python3.4/email/__init__.py
# Copyright (C) 2001-2007 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org

"""A package for parsing, handling, and generating email messages."""

__version__ = '5.1.0'

__all__ = [
    'base64mime',
    'charset',
    'encoders',
    'errors',
    'feedparser',
    'generator',
    'header',
    'iterators',
    'message',
    'message_from_file',
    'message_from_binary_file',
    'message_from_string',
    'message_from_bytes',
    'mime',
    'parser',
    'quoprimime',
    'utils',
    ]



# Some convenience routines.  Don't import Parser and Message as side-effects
# of importing email since those cascadingly import most of the rest of the
# email package.
def message_from_string(s, *args, **kws):
    """Parse a string into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
    """
    from email.parser import Parser
    return Parser(*args, **kws).parsestr(s)

def message_from_bytes(s, *args, **kws):
    """Parse a bytes string into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
    """
    from email.parser import BytesParser
    return BytesParser(*args, **kws).parsebytes(s)

def message_from_file(fp, *args, **kws):
    """Read a file and parse its contents into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
    """
    from email.parser import Parser
    return Parser(*args, **kws).parse(fp)

def message_from_binary_file(fp, *args, **kws):
    """Read a binary file and parse its contents into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
    """
    from email.parser import BytesParser
    return BytesParser(*args, **kws).parse(fp)
Name
Size
Permissions
Options
__pycache__
--
drwxr-xr-x
mime
--
drwxr-xr-x
__init__.py
1.747 KB
-rw-r--r--
_encoded_words.py
7.729 KB
-rw-r--r--
_header_value_parser.py
102.541 KB
-rw-r--r--
_parseaddr.py
16.796 KB
-rw-r--r--
_policybase.py
13.991 KB
-rw-r--r--
architecture.rst
9.336 KB
-rw-r--r--
base64mime.py
3.475 KB
-rw-r--r--
charset.py
16.815 KB
-rw-r--r--
contentmanager.py
10.35 KB
-rw-r--r--
encoders.py
1.744 KB
-rw-r--r--
errors.py
3.452 KB
-rw-r--r--
feedparser.py
22.356 KB
-rw-r--r--
generator.py
19.393 KB
-rw-r--r--
header.py
23.597 KB
-rw-r--r--
headerregistry.py
19.61 KB
-rw-r--r--
iterators.py
2.085 KB
-rw-r--r--
message.py
44.826 KB
-rw-r--r--
parser.py
4.927 KB
-rw-r--r--
policy.py
9.072 KB
-rw-r--r--
quoprimime.py
9.628 KB
-rw-r--r--
utils.py
13.368 KB
-rw-r--r--