python standard library Introduction
text
-
string: String General Operation
-
re: Regular expression operation
-
difflib: Variance Calculation Tools
-
textwrap: Text Fill
-
unicodedata: Unicode Character Database
-
stringprep: Internet String Preparation Tool
-
readline: GNU rows read interface
-
rlcompleter: GNU implementing a function of reading a row
Binary data
-
struct: parsing the byte packed binary data
-
codecs: the base class registry codecs
type of data
-
datetime: tool based on the date and time
-
calendar: March universal function
-
collections: container data type
-
collections.abc: container virtual base class
-
heapq: Heap queue algorithm
-
bisect: an array of binary arithmetic
-
array: Efficient numeric array
-
weakref: Weak References
-
types: dynamic creation and naming of built-in types
-
copy: deep and shallow copy copy
-
pprint: Output Formatting
-
reprlib: alternating the repr ()
implementation
mathematics
-
numbers: the value of virtual base class
-
math: Mathematical Functions
-
cmath: complex mathematical functions
-
decimal: fixed-point and floating-point calculation
-
fractions: rational
-
random: generating a pseudo-random number
Functional Programming
-
itertools: iterator that generates cycles for the efficient
-
functools: it can be called higher-order functions and operations on objects
-
operator: for standard functions operation
Files and directories
-
os.path: General pathname control
-
fileinput: input stream from a plurality of traverse lines
-
stat: explanation stat () results
-
filecmp: comparison function of files and directories
-
tempfile: generating temporary files and directories
-
glob: Extended Unix style pathname format
-
fnmatch: ratio of Unix-style pathname format
-
linecache: random lines of text stored
-
shutil: Advanced File Operations
-
macpath: the Mac
the OS control function path. 9
Endurance of
-
pickle: Python object serialization
-
copyreg: RI to pickle support functions
-
shelve: Python object persistence
-
marshal: Internal Python object serialization
-
dbm: Unix "Database" Interface
-
sqlite3: for SQLite database API2.0
compression
-
zlib: gzip compatible compression
-
gzip: support for gzip files
-
bz2: bzip2 compression support for
-
lzma: LZMA compression algorithm
-
zipfile: Operating ZIP archive
-
tarfile: tar archive file read and write
File Format
-
csv: reading and writing CSV file
-
configparser: configuration file parser
-
netrc: netrc file processor
-
xdrlib: XDR data encoding and decoding
-
plistlib: generating and parsing Mac OS X.plist file
encryption
-
hashlib: secure hash and message digest
-
hmac: key hashing for message authentication
Operating System Tools
-
os: a wide range of operating system interface
-
io: Flow Core Tools
-
time: time of the query and transformation
-
argparser: parser command line options, parameters and sub-command
-
optparser: command-line option parser
-
getopt: C-style command-line option parser
-
logging: Python logging tool
-
logging.config: log configuration
-
logging.handlers: Log Processor
-
getpass: simple password
-
curses: character display processing terminal
-
curses.textpad: text input field curses program
-
curses.ascii: ASCII character set of tools
-
curses.panel: curses of the control stack extension
-
platform: access to the underlying platform authentication data
-
errno: standard error markers
-
ctypes: Python external libraries
Complicated by
-
threading: Based on parallel threads
-
Parallel process-based: multiprocessing
-
concurrent: and contract
-
concurrent.futures: start parallel tasks
-
subprocess: child process management
-
sched: Event schedule
-
queue: synchronous queue
-
select: waiting for I / O completion
-
dummy_threading: Alternative threading module (when _thread unavailable)
-
_thread: underlying thread API (threading based thereon)
-
_dummy_thread: _thread replacement module (when _Thread unavailable)
Interprocess communication
-
socket: the underlying network interface
-
ssl: TLS / SSL objects filler socket
-
asyncore: asynchronous processor socket
-
asynchat: Asynchronous socket command / response processor
-
signal: asynchronous transaction signal processor
-
mmap: memory-mapped file support
the Internet
-
email: email and MIME handling package
-
json: JSON encoding and decoding
-
mailcap: mailcap file handling
-
mailbox: Mailbox control multiple formats
-
mimetypes: file name and MIME type mapping
-
Base64: RFC
3548: Base16, Base32, Base64 encoding -
binhex: binhex4 file encoding and decoding
-
binascii: conversion between binary code and ASCII code
-
quopri: the MIME
quoted - printable data encoding and decoding -
uu: encoding and decoding uuencode file
HTML given XML
-
html: HTML support
-
html.parser: Simple HTML and XHTML Parser
-
html.entities: the definition of common HTML entities
-
xml: XML processing module
-
xml.etree.ElementTree: API XML element tree
-
xml.dom: XML
DOM
API -
xml.dom.minidom: XML
the DOM minimum spanning tree -
xml.dom.pulldom: build support part of the DOM tree
-
xml.sax: SAX2 resolution support
-
xml.sax.handler: SAX processor base class
-
xml.sax.saxutils: SAX tool
-
xml.sax.xmlreader: SAX parser Interface
-
xml.parsers.expat: Fast parse XML using Expat
Internet Protocol Support
-
webbrowser: Simple Web browser controller
-
cgi: CGI support
-
cgitb: CGI scripts traceback Manager
-
wsgiref: WSGI reference implementation and tools
-
urllib: URL processing module
-
urllib.request: Open extensions URL connection
-
urllib.response: in response to the class of urllib
-
urllib.parse: The URL parsed into components
-
urllib.error: urllib.request thrown exception classes
-
urllib.robotparser: robots.txt parser
-
http:HTTP模块
-
http.client: HTTP protocol client
-
ftplib: FTP protocol client
-
poplib: POP protocol client
-
imaplib: IMAP4 protocol client
-
nntplib: NNTP protocol client
-
smtplib: SMTP protocol client
-
smtpd: SMTP server
-
telnetlib: Telnet Client
-
uuid: RFC4122 UUID of the object
-
socketserver: network server framework
-
http.server: HTTP server
-
http.cookies: HTTPCookie State Manager
-
http.cookiejar: Cookie handling HTTP client
-
xmlrpc: XML - RPC server and client module
-
xmlrpc.client: XML - RPC Client Access
-
xmlrpc.server: XML - RPC server infrastructure
-
ipaddress: IPv4 / IPv6 Control Library
multimedia
-
audioop: processing the original audio data
-
aifc: reading and writing AIFF files and AIFC
-
sunau:读写Sun
AU Bunken -
wave: read and write WAV files
-
chunk: IFF read large files
-
colorsys: color to color conversion system
-
imghdr: Specifies the image type
-
sndhdr: Specifies the sound file type
-
ossaudiodev: Access OSS compatible audio device
globalization
-
gettext: Multi-language international service
-
locale: international services
Programming Framework
-
turtle: Turtle graphics library
-
cmd: Interpreter supports command line
-
shlex: simple dictionary analysis
Tk graphical user interface
-
tkinter: Tcl / Tk Interface
-
tkinter.ttk: Tk Theme Controls
-
tkinter.tix: Tk extension controls
-
tkinter.scrolledtext: Roller text controls
development tools
-
pydoc: Documentation generator and online help system
-
doctest: exemplary interactive Python
-
unittest: unit testing framework
-
unittest.mock: mock object library
-
test: Python regression test package
-
test.support:Python test kit
-
venv: build a virtual environment
debugging
-
bdb: debugging framework
-
faulthandler: Python traceback library
-
pdb: Python Debugger
-
timeit: small pieces of code execution time estimates
-
trace: Python execution status tracking
Runtime
-
sys: parameters related to the function system
-
sysconfig: Python access configuration information
-
builtins: built-in objects
-
main : the top-level scripting environment
-
warnings: warning control
-
Contextual tools with state: contextlib
-
abc: virtual base class
-
atexit: egress processor
-
traceback: print or read a stack traceback
-
Future : the definition of a future state
-
gc: Garbage Collection Interface
-
inspect: Check the live objects
-
site: site-related configuration hook (hook)
-
fpectl: floating-point exception control
-
distutils: generating and installing Python modules
Interpreter
-
code: base class interpreter
-
codeop: Compile Python code
Import module
-
imp: internal access import modules
-
zipimport: import module from a ZIP archive
-
pkgutil: Tools package extensions
-
modulefinder: Find module by script
-
runpy: positioning module and execute Python
-
importlib: import of an embodiment
Python language
-
parser: Access Python parse trees
-
ast: abstract syntax tree
-
symtable: Access compiler symbol table
-
symbol: Python parse tree constants
-
token: Python parse tree constants
-
keyword: Python keyword test
-
tokenize: Python source file segmentation
-
tabnany: blur detection indent
-
pyclbr: Python class browser support
-
py_compile: compile Python source files
-
compileall: Byte-compiles Python library
-
dis: Python bytecode disassembler
-
pickletools: the sequence of development tools
other
- formatter: versatile formatted output
Windows related
-
msilib: read and write Windows
Installer file -
MSVCRT: the MS
the VC + + program the Runtime useful -
winreg: Windows Registry Access
-
winsound: Windows sound playback Interface
Unix-related
-
posix: The most common POSIX calls
-
pwd: password database
-
spwd: shadow password database
-
grp: group database
-
crypt: Unix password authentication
-
termios: POSIX style tty control
-
tty: terminal control function
-
pty: Tools pseudo-terminal
-
fcntl: system call fcntl ()
and ioctl () -
pipes: shell pipe interface
-
resource: resource available information
-
nis: Sun's NIS interface
-
syslog: Unix
syslog: Library