python standard library Introduction

python standard library Introduction

text

  1. string: String General Operation

  2. re: Regular expression operation

  3. difflib: Variance Calculation Tools

  4. textwrap: Text Fill

  5. unicodedata: Unicode Character Database

  6. stringprep: Internet String Preparation Tool

  7. readline: GNU rows read interface

  8. rlcompleter: GNU implementing a function of reading a row

Binary data

  1. struct: parsing the byte packed binary data

  2. codecs: the base class registry codecs

type of data

  1. datetime: tool based on the date and time

  2. calendar: March universal function

  3. collections: container data type

  4. collections.abc: container virtual base class

  5. heapq: Heap queue algorithm

  6. bisect: an array of binary arithmetic

  7. array: Efficient numeric array

  8. weakref: Weak References

  9. types: dynamic creation and naming of built-in types

  10. copy: deep and shallow copy copy

  11. pprint: Output Formatting

  12. reprlib: alternating the repr ()
    implementation

mathematics

  1. numbers: the value of virtual base class

  2. math: Mathematical Functions

  3. cmath: complex mathematical functions

  4. decimal: fixed-point and floating-point calculation

  5. fractions: rational

  6. random: generating a pseudo-random number

Functional Programming

  1. itertools: iterator that generates cycles for the efficient

  2. functools: it can be called higher-order functions and operations on objects

  3. operator: for standard functions operation

Files and directories

  1. os.path: General pathname control

  2. fileinput: input stream from a plurality of traverse lines

  3. stat: explanation stat () results

  4. filecmp: comparison function of files and directories

  5. tempfile: generating temporary files and directories

  6. glob: Extended Unix style pathname format

  7. fnmatch: ratio of Unix-style pathname format

  8. linecache: random lines of text stored

  9. shutil: Advanced File Operations

  10. macpath: the Mac
    the OS control function path. 9

Endurance of

  1. pickle: Python object serialization

  2. copyreg: RI to pickle support functions

  3. shelve: Python object persistence

  4. marshal: Internal Python object serialization

  5. dbm: Unix "Database" Interface

  6. sqlite3: for SQLite database API2.0

compression

  1. zlib: gzip compatible compression

  2. gzip: support for gzip files

  3. bz2: bzip2 compression support for

  4. lzma: LZMA compression algorithm

  5. zipfile: Operating ZIP archive

  6. tarfile: tar archive file read and write

File Format

  1. csv: reading and writing CSV file

  2. configparser: configuration file parser

  3. netrc: netrc file processor

  4. xdrlib: XDR data encoding and decoding

  5. plistlib: generating and parsing Mac OS X.plist file

encryption

  1. hashlib: secure hash and message digest

  2. hmac: key hashing for message authentication

Operating System Tools

  1. os: a wide range of operating system interface

  2. io: Flow Core Tools

  3. time: time of the query and transformation

  4. argparser: parser command line options, parameters and sub-command

  5. optparser: command-line option parser

  6. getopt: C-style command-line option parser

  7. logging: Python logging tool

  8. logging.config: log configuration

  9. logging.handlers: Log Processor

  10. getpass: simple password

  11. curses: character display processing terminal

  12. curses.textpad: text input field curses program

  13. curses.ascii: ASCII character set of tools

  14. curses.panel: curses of the control stack extension

  15. platform: access to the underlying platform authentication data

  16. errno: standard error markers

  17. ctypes: Python external libraries

Complicated by

  1. threading: Based on parallel threads

  2. Parallel process-based: multiprocessing

  3. concurrent: and contract

  4. concurrent.futures: start parallel tasks

  5. subprocess: child process management

  6. sched: Event schedule

  7. queue: synchronous queue

  8. select: waiting for I / O completion

  9. dummy_threading: Alternative threading module (when _thread unavailable)

  10. _thread: underlying thread API (threading based thereon)

  11. _dummy_thread: _thread replacement module (when _Thread unavailable)

Interprocess communication

  1. socket: the underlying network interface

  2. ssl: TLS / SSL objects filler socket

  3. asyncore: asynchronous processor socket

  4. asynchat: Asynchronous socket command / response processor

  5. signal: asynchronous transaction signal processor

  6. mmap: memory-mapped file support

the Internet

  1. email: email and MIME handling package

  2. json: JSON encoding and decoding

  3. mailcap: mailcap file handling

  4. mailbox: Mailbox control multiple formats

  5. mimetypes: file name and MIME type mapping

  6. Base64: RFC
    3548: Base16, Base32, Base64 encoding

  7. binhex: binhex4 file encoding and decoding

  8. binascii: conversion between binary code and ASCII code

  9. quopri: the MIME
    quoted - printable data encoding and decoding

  10. uu: encoding and decoding uuencode file

HTML given XML

  1. html: HTML support

  2. html.parser: Simple HTML and XHTML Parser

  3. html.entities: the definition of common HTML entities

  4. xml: XML processing module

  5. xml.etree.ElementTree: API XML element tree

  6. xml.dom: XML
    DOM
    API

  7. xml.dom.minidom: XML
    the DOM minimum spanning tree

  8. xml.dom.pulldom: build support part of the DOM tree

  9. xml.sax: SAX2 resolution support

  10. xml.sax.handler: SAX processor base class

  11. xml.sax.saxutils: SAX tool

  12. xml.sax.xmlreader: SAX parser Interface

  13. xml.parsers.expat: Fast parse XML using Expat

Internet Protocol Support

  1. webbrowser: Simple Web browser controller

  2. cgi: CGI support

  3. cgitb: CGI scripts traceback Manager

  4. wsgiref: WSGI reference implementation and tools

  5. urllib: URL processing module

  6. urllib.request: Open extensions URL connection

  7. urllib.response: in response to the class of urllib

  8. urllib.parse: The URL parsed into components

  9. urllib.error: urllib.request thrown exception classes

  10. urllib.robotparser: robots.txt parser

  11. http:HTTP模块

  12. http.client: HTTP protocol client

  13. ftplib: FTP protocol client

  14. poplib: POP protocol client

  15. imaplib: IMAP4 protocol client

  16. nntplib: NNTP protocol client

  17. smtplib: SMTP protocol client

  18. smtpd: SMTP server

  19. telnetlib: Telnet Client

  20. uuid: RFC4122 UUID of the object

  21. socketserver: network server framework

  22. http.server: HTTP server

  23. http.cookies: HTTPCookie State Manager

  24. http.cookiejar: Cookie handling HTTP client

  25. xmlrpc: XML - RPC server and client module

  26. xmlrpc.client: XML - RPC Client Access

  27. xmlrpc.server: XML - RPC server infrastructure

  28. ipaddress: IPv4 / IPv6 Control Library

multimedia

  1. audioop: processing the original audio data

  2. aifc: reading and writing AIFF files and AIFC

  3. sunau:读写Sun
    AU Bunken

  4. wave: read and write WAV files

  5. chunk: IFF read large files

  6. colorsys: color to color conversion system

  7. imghdr: Specifies the image type

  8. sndhdr: Specifies the sound file type

  9. ossaudiodev: Access OSS compatible audio device

globalization

  1. gettext: Multi-language international service

  2. locale: international services

Programming Framework

  1. turtle: Turtle graphics library

  2. cmd: Interpreter supports command line

  3. shlex: simple dictionary analysis

Tk graphical user interface

  1. tkinter: Tcl / Tk Interface

  2. tkinter.ttk: Tk Theme Controls

  3. tkinter.tix: Tk extension controls

  4. tkinter.scrolledtext: Roller text controls

development tools

  1. pydoc: Documentation generator and online help system

  2. doctest: exemplary interactive Python

  3. unittest: unit testing framework

  4. unittest.mock: mock object library

  5. test: Python regression test package

  6. test.support:Python test kit

  7. venv: build a virtual environment

debugging

  1. bdb: debugging framework

  2. faulthandler: Python traceback library

  3. pdb: Python Debugger

  4. timeit: small pieces of code execution time estimates

  5. trace: Python execution status tracking

Runtime

  1. sys: parameters related to the function system

  2. sysconfig: Python access configuration information

  3. builtins: built-in objects

  4. main : the top-level scripting environment

  5. warnings: warning control

  6. Contextual tools with state: contextlib

  7. abc: virtual base class

  8. atexit: egress processor

  9. traceback: print or read a stack traceback

  10. Future : the definition of a future state

  11. gc: Garbage Collection Interface

  12. inspect: Check the live objects

  13. site: site-related configuration hook (hook)

  14. fpectl: floating-point exception control

  15. distutils: generating and installing Python modules

Interpreter

  1. code: base class interpreter

  2. codeop: Compile Python code

Import module

  1. imp: internal access import modules

  2. zipimport: import module from a ZIP archive

  3. pkgutil: Tools package extensions

  4. modulefinder: Find module by script

  5. runpy: positioning module and execute Python

  6. importlib: import of an embodiment

Python language

  1. parser: Access Python parse trees

  2. ast: abstract syntax tree

  3. symtable: Access compiler symbol table

  4. symbol: Python parse tree constants

  5. token: Python parse tree constants

  6. keyword: Python keyword test

  7. tokenize: Python source file segmentation

  8. tabnany: blur detection indent

  9. pyclbr: Python class browser support

  10. py_compile: compile Python source files

  11. compileall: Byte-compiles Python library

  12. dis: Python bytecode disassembler

  13. pickletools: the sequence of development tools

other

  1. formatter: versatile formatted output

Windows related

  1. msilib: read and write Windows
    Installer file

  2. MSVCRT: the MS
    the VC + + program the Runtime useful

  3. winreg: Windows Registry Access

  4. winsound: Windows sound playback Interface

Unix-related

    1. posix: The most common POSIX calls

    2. pwd: password database

    3. spwd: shadow password database

    4. grp: group database

    5. crypt: Unix password authentication

    6. termios: POSIX style tty control

    7. tty: terminal control function

    8. pty: Tools pseudo-terminal

    9. fcntl: system call fcntl ()
      and ioctl ()

    10. pipes: shell pipe interface

    11. resource: resource available information

    12. nis: Sun's NIS interface

    13. syslog: Unix
      syslog: Library

Guess you like

Origin www.cnblogs.com/liuhui0308/p/12309160.html