Python模块索引

_ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z
_
__future__ Future statement definitions
__main__ The environment where the top-level script is run.
_dummy_thread Drop-in replacement for the _thread module.
_thread Low-level threading API.
a
abc抽象的基类,这些类根据 PEP 3119。
aifc以AIFF或AIFC格式读取和写入音频文件。
argparse命令行选项和参数解析库。
array统一类型数值的节省空间的数组。
ast抽象语法树类和操作。
asynchat支持异步命令/响应协议。
asyncio异步I / O,事件循环,协同程序和任务。
asyncore用于开发异步套接字处理服务的基类。
atexit注册并执行清除功能。
audioop处理原始音频数据。
b
base64 RFC 3548: Base16, Base32, Base64 Data Encodings; Base85 and Ascii85
bdb Debugger framework.
binascii Tools for converting between binary and various ASCII-encoded binary representations.
binhex Encode and decode files in binhex4 format.
bisect Array bisection algorithms for binary searching.
builtins The module that provides the built-in namespace.
bz2 Interfaces for bzip2 compression and decompression.
c
calendar Functions for working with calendars, including some emulation of the Unix cal program.
cgi Helpers for running Python scripts via the Common Gateway Interface.
cgitbConfigurable traceback handler for CGI scripts.
chunk Module to read IFF chunks.
cmath Mathematical functions for complex numbers.
cmd构建面向行的​​命令解释器。
code Facilities to implement read-eval-print loops.
codecs Encode and decode data and streams.
codeop Compile (possibly incomplete) Python code.
collections容器数据类型
collections.abc Abstract base classes for containers
colorsys Conversion functions between RGB and other color systems.
compileall Tools for byte-compiling all Python source files in a directory tree.
concurrent
concurrent.futures Execute computations concurrently using threads or processes.
configparser Configuration file parser.
contextlib Utilities for with-statement contexts.
copy浅层和深层复制操作。
copyreg Register pickle support functions.
cProfile
crypt (Unix) The crypt() function used to check Unix passwords.
csv Write and read tabular data to and from delimited files.
ctypes 一个Python的外部函数库
curses (Unix) An interface to the curses library, providing portable terminal handling.
curses.ascii Constants and set-membership functions for ASCII characters.
curses.panel A panel stack extension that adds depth to curses windows.
curses.textpad Emacs-like input editing in a curses window.
d
datetime基本的日期和时间类型。
dbm Interfaces to various Unix "database" formats.
dbm.dumb Portable implementation of the simple DBM interface.
dbm.gnu (Unix) GNU's reinterpretation of dbm.
dbm.ndbm (Unix) The standard "database" interface, based on ndbm.
decimal Implementation of the General Decimal Arithmetic Specification.
difflib Helpers for computing differences between objects.
disPython字节码的反汇编程序。
distutils Support for building and installing Python modules into an existing Python installation.
distutils.archive_util Utility functions for creating archive files (tarballs, zip files, ...)
distutils.bcppcompiler
distutils.ccompiler抽象的 CCompiler 类
distutils.cmd This module provides the abstract base class Command. This class is subclassed by the modules in the distutils.command subpackage.
distutils.command This subpackage contains one module for each standard Distutils command.
distutils.command.bdist构建一个二进制安装包
distutils.command.bdist_dumb Build a "dumb" installer - a simple archive of files
distutils.command.bdist_msi Build a binary distribution as a Windows MSI file
distutils.command.bdist_packager Abstract base class for packagers
distutils.command.bdist_rpm Build a binary distribution as a Redhat RPM and SRPM
distutils.command.bdist_wininst Build a Windows installer
distutils.command.build Build all files of a package
distutils.command.build_clib Build any C libraries in a package
distutils.command.build_ext Build any extensions in a package
distutils.command.build_py Build the .py/.pyc files of a package
distutils.command.build_scripts Build the scripts of a package
distutils.command.check Check the metadata of a package
distutils.command.clean Clean a package build area
distutils.command.config Perform package configuration
distutils.command.install Install a package
distutils.command.install_data Install data files from a package
distutils.command.install_headers Install C/C++ header files from a package
distutils.command.install_lib Install library files from a package
distutils.command.install_scripts Install script files from a package
distutils.command.register Register a module with the Python Package Index
distutils.command.sdist Build a source distribution
distutils.core核心 Distutils 功能
distutils.cygwinccompiler
distutils.debug Provides the debug flag for distutils
distutils.dep_util效用函数的简单依赖项检查
distutils.dir_util Utility functions for operating on directories and directory trees
distutils.dist Provides the Distribution class, which represents the module distribution being built/installed/distributed
distutils.errors Provides standard distutils exceptions
distutils.extension Provides the Extension class, used to describe C/C++ extension modules in setup scripts
distutils.fancy_getopt Additional getopt functionality
distutils.file_util Utility functions for operating on single files
distutils.filelist The FileList class, used for poking about the file system and building lists of files.
distutils.log A simple logging mechanism, 282-style
distutils.msvccompiler微软编译器
distutils.spawn Provides the spawn() function
distutils.sysconfig Low-level access to configuration information of the Python interpreter.
distutils.text_file provides the TextFile class, a simple interface to text files
distutils.unixccompiler UNIX C Compiler
distutils.util Miscellaneous other utility functions
distutils.version implements classes that represent module version numbers.
doctest Test pieces of code within docstrings.
dummy_threading Drop-in replacement for the threading module.
e
email支持解析,操作和生成电子邮件消息的包,包括MIME文档。
email.charset Character Sets
email.contentmanager Storing and Retrieving Content from MIME Parts
email.encoders Encoders for email message payloads.
email.errors The exception classes used by the email package.
email.generator Generate flat text email messages from a message structure.
email.header Representing non-ASCII headers
email.headerregistry Automatic Parsing of headers based on the field name
email.iterators Iterate over a message object tree.
email.message The base class representing email messages.
email.mime Build MIME messages.
email.parser Parse flat text email messages to produce a message object structure.
email.policy Controlling the parsing and generating of messages
email.utils Miscellaneous email package utilities.
encodings
encodings.idna国际化域名实施
encodings.mbcs Windows ANSI codepage
encodings.utf_8_sig UTF-8 codec with BOM signature
ensurepip Bootstrapping the "pip" installer into an existing Python installation or virtual environment.
enum枚举类的实现。
errno标准errno系统符号。
f
faulthandler Dump the Python traceback.
fcntl (Unix) The fcntl() and ioctl() system calls.
filecmp有效地比较文件。
fileinput循环标准输入或文件列表。
fnmatch Unix shell style filename pattern matching.
formatterDeprecated: Generic output formatter and device interface.
fpectl (Unix) Provide control for floating point exception handling.
fractions Rational numbers.
ftplibFTP协议客户端(需要套接字)。
functools可调用对象的高阶函数和操作。
g
gc Interface to the cycle-detecting garbage collector.
getopt Portable parser for command line options; support both short and long option names.
getpass Portable reading of passwords and retrieval of the userid.
gettext多语言国际化服务。
globUnix shell样式路径名模式扩展。
grp (Unix) The group database (getgrnam() and friends).
gzip Interfaces for gzip compression and decompression using file objects.
h
hashlib Secure hash and message digest algorithms.
heapq Heap queue algorithm (a.k.a. priority queue).
hmac Keyed-Hashing for Message Authentication (HMAC) implementation
html Helpers for manipulating HTML.
html.entities Definitions of HTML general entities.
html.parser一个简单的解析器,可以处理 HTML 和 XHTML。
httpHTTP 状态代码和消息
http.client HTTP and HTTPS protocol client (requires sockets).
http.cookiejar Classes for automatic handling of HTTP cookies.
http.cookies Support for HTTP state management (cookies).
http.serverHTTP 服务器和请求处理程序。
i
imaplib IMAP4 protocol client (requires sockets).
imghdr Determine the type of image contained in a file or byte stream.
impDeprecated: Access the implementation of the import statement.
importlib The implementation of the import machinery.
importlib.abc Abstract base classes related to import
importlib.machinery Importers and path hooks
importlib.util Utility code for importers
inspect Extract information and source code from live objects.
io核心工作流工具。
ipaddressIPv4/IPv6 操纵库。
itertools Functions creating iterators for efficient looping.
j
json对JSON格式进行编码和解码。
json.tool用于验证和漂亮打印JSON的命令行。
k
keyword测试字符串是否是Python中的关键字。
l
lib2to3 the 2to3 library
linecache This module provides random access to individual lines from text files.
locale国际化服务。
logging灵活用于python应用的事件日志记录系统。
logging.config记录模块的配置。
logging.handlers日志记录模块的处理程序。
lzma A Python wrapper for the liblzma compression library.
m
macpath Mac OS 9 path manipulation functions.
mailbox Manipulate mailboxes in various formats
mailcap Mailcap file handling.
marshal Convert Python objects to streams of bytes and back (with different constraints).
math(Sin() 等) 数学函数。
mimetypes Mapping of filename extensions to MIME types.
mmap Interface to memory-mapped files for Unix and Windows.
modulefinder查找模块使用的脚本
msilib (Windows) Creation of Microsoft Installer files, and CAB files.
msvcrt (Windows) Miscellaneous useful routines from the MS VC++ runtime.
multiprocessing Process-based parallelism.
multiprocessing.connection API for dealing with sockets.
multiprocessing.dummy Dumb wrapper around threading.
multiprocessing.managers Share data between process with shared objects.
multiprocessing.pool Create pools of processes.
multiprocessing.sharedctypes Allocate ctypes objects from shared memory.
n
netrc Loading of .netrc files.
nis (Unix) Interface to Sun's NIS (Yellow Pages) library.
nntplib NNTP protocol client (requires sockets).
numbers数字抽象基类(Complex,Real,Integral等)。
o
operator与标准运算符对应的函数。
optparseDeprecated: Command-line option parsing library.
os其他操作系统接口。
os.path路径名的操作。
ossaudiodev (Linux, FreeBSD)访问兼容OSS的音频设备。
p
parser访问Python源代码的解析树。
pathlib面向对象的文件系统路径
pdb交互式解释器的Python调试器。
pickle Convert Python objects to streams of bytes and back.
pickletools Contains extensive comments about the pickle protocols and pickle-machine opcodes, as well as some useful functions.
pipes (Unix) A Python interface to Unix shell pipelines.
pkgutil Utilities for the import system.
platform Retrieves as much platform identifying data as possible.
plistlib Generate and parse Mac OS X plist files.
poplib POP3 protocol client (requires sockets).
posix (Unix) The most common POSIX system calls (normally used via module os).
pprint Data pretty printer.
profile Python source profiler.
pstats Statistics object for use with the profiler.
pty (Linux) Pseudo-Terminal Handling for Linux.
pwd (Unix) The password database (getpwnam() and friends).
py_compile Generate byte-code files from Python source files.
pyclbr Supports information extraction for a Python class browser.
pydoc Documentation generator and online help system.
q
queue A synchronized queue class.
quopri Encode and decode files using the MIME quoted-printable encoding.
r
random生成具有各种常见分布的伪随机数。
re正则表达式操作。
readline (Unix) GNU readline support for Python.
reprlib Alternate repr() implementation with size limits.
resource (Unix) An interface to provide resource usage information on the current process.
rlcompleter Python identifier completion, suitable for the GNU readline library.
runpy Locate and run Python modules without importing them first.
s
sched通用事件调度器。
select Wait for I/O completion on multiple streams.
selectors High-level I/O multiplexing.
shelve Python object persistence.
shlex Simple lexical analysis for Unix shell-like languages.
shutil High-level file operations, including copying.
signal Set handlers for asynchronous events.
site Module responsible for site-specific configuration.
smtpd A SMTP server implementation in Python.
smtplib SMTP protocol client (requires sockets).
sndhdr Determine type of a sound file.
socket Low-level networking interface.
socketserver A framework for network servers.
spwd (Unix) The shadow password database (getspnam() and friends).
sqlite3 A DB-API 2.0 implementation using SQLite 3.x.
ssl TLS/SSL wrapper for socket objects
stat Utilities for interpreting the results of os.stat(), os.lstat() and os.fstat().
statistics mathematical statistics functions
string Common string operations.
stringprep String preparation, as per RFC 3453
struct Interpret bytes as packed binary data.
subprocess Subprocess management.
sunau Provide an interface to the Sun AU sound format.
symbol Constants representing internal nodes of the parse tree.
symtable Interface to the compiler's internal symbol tables.
sys Access system-specific parameters and functions.
sysconfig Python's configuration information
syslog (Unix) An interface to the Unix syslog library routines.
t
tabnanny Tool for detecting white space related problems in Python source files in a directory tree.
tarfile Read and write tar-format archive files.
telnetlib Telnet client class.
tempfile Generate temporary files and directories.
termios (Unix) POSIX style tty control.
test Regression tests package containing the testing suite for Python.
test.support Support for Python's regression test suite.
textwrap Text wrapping and filling
threading Thread-based parallelism.
time Time access and conversions.
timeit Measure the execution time of small code snippets.
tkinter Interface to Tcl/Tk for graphical user interfaces
tkinter.scrolledtext (Tk) Text widget with a vertical scroll bar.
tkinter.tix Tk Extension Widgets for Tkinter
tkinter.ttk Tk themed widget set
token Constants representing terminal nodes of the parse tree.
tokenize Lexical scanner for Python source code.
trace Trace or track Python statement execution.
traceback Print or retrieve a stack traceback.
tracemalloc Trace memory allocations.
tty (Unix) Utility functions that perform common terminal control operations.
turtle An educational framework for simple graphics applications
turtledemo A viewer for example turtle scripts
types Names for built-in types.
typing Support for type hints (see PEP 484).
u
unicodedata Access the Unicode Database.
unittest Unit testing framework for Python.
unittest.mock Mock object library.
urllib
urllib.error由urllib.request引发的异常类
urllib.parseURL解析组件
urllib.request用于打开网址的可扩展库。
urllib.responseurllib使用的响应类。
urllib.robotparser加载robots.txt文件并回答有关其他网址可抓取性的问题。
uu Encode and decode files in uuencode format.
uuid UUID objects (universally unique identifiers) according to RFC 4122
v
venv Creation of virtual environments.
w
warnings Issue warning messages and control their disposition.
wave Provide an interface to the WAV sound format.
weakref Support for weak references and weak dictionaries.
webbrowser Easy-to-use controller for Web browsers.
winreg (Windows) Routines and objects for manipulating the Windows registry.
winsound (Windows) Access to the sound-playing machinery for Windows.
wsgiref WSGI Utilities and Reference Implementation.
wsgiref.handlers WSGI server/gateway base classes.
wsgiref.headers WSGI response header tools.
wsgiref.simple_server A simple WSGI HTTP server.
wsgiref.util WSGI environment utilities.
wsgiref.validate WSGI conformance checker.
x
xdrlib Encoders and decoders for the External Data Representation (XDR).
xml Package containing XML processing modules
xml.dom Document Object Model API for Python.
xml.dom.minidom Minimal Document Object Model (DOM) implementation.
xml.dom.pulldom Support for building partial DOM trees from SAX events.
xml.etree.ElementTree Implementation of the ElementTree API.
xml.parsers.expat An interface to the Expat non-validating XML parser.
xml.parsers.expat.errors
xml.parsers.expat.model
xml.sax Package containing SAX2 base classes and convenience functions.
xml.sax.handler Base classes for SAX event handlers.
xml.sax.saxutils Convenience functions and classes for use with SAX.
xml.sax.xmlreader Interface which SAX-compliant XML parsers must implement.
xmlrpc
xmlrpc.client XML-RPC client access.
xmlrpc.server Basic XML-RPC server implementations.
z
zipapp管理可执行的python zip存档
zipfile读取和写入ZIP格式的档案文件。
zipimport支持从ZIP存档导入Python模块。
zlib与gzip兼容的压缩和解压缩例程的低级接口。