List Python standard modules

Source: Internet
Author: User
Tags base64 mathematical functions object serialization posix shallow copy syslog virtual environment

Text

1. String: Universal string Manipulation

2. Re: Regular expression operation

3. Difflib: Difference calculation tool

4. TextWrap: Text Fill

5. Unicodedata: Unicode character Database

6. Stringprep: Internet string Preparation Tool

7. ReadLine: GNU read-by-line interface

8. Rlcompleter: GNU read-by-line implementation function

Binary data

9. Struct: Parsing bytes into packaged binary data

Codecs: A codec for the registry and the base class

Data type

DateTime: Based on the date and Time tool

Calendar: Universal Month function

Collections: Container data type

COLLECTIONS.ABC: Container virtual base class

HEAPQ: Heap Queue algorithm

Bisect: Array Two-part algorithm

. Array: An efficient array of values

Weakref: Weak references

Types: Dynamic creation and naming of built-in types

Copy: Shallow copy and deep copy

Pprint: Formatted output

Reprlib:The realization of alternating repr ()

Mathematical

Numbers: Virtual base class for numeric values

Math: Mathematical Functions

Cmath: Mathematical functions of complex numbers

Decimal: Fixed-point number and floating-point calculation

Fractions: Rational number

Random: Generating pseudo-random numbers

Function-Type programming

Itertools: Generating iterators for efficient loops

Functools: higher-order functions and operations on callable objects

Operator: standard operation for functions

Files and directories

Os.path: Universal path name Control

Fileinput: Traversing rows from multiple input streams

Stat: Explanationof the results of stat ()

FILECMP: File-to-directory comparison function

Tempfile: Generate temporary files and directories

Glob: extension of Unix style pathname format

Fnmatch: Unix Style path name format comparison

Linecache: Random Storage of text lines

Shutil: Advanced file Operations

Macpath: Mac OS 9 path control function

Persistence of

Pickle: Python object Serialization

Copyreg: Keygen support function for pickle

Shelve: Python object Persistence

Marshal: serialization of internal Python objects

. dbm: Unix"Database" interface

Sqlite3: API 2.0 for SQLite databases

Compression

Zlib: gzip -compatible compression

. gzip: Support for gzip files

BZ2: Support for bzip2 compression

Wuyi Lzma: compression using the LZMA algorithm

ZipFile: Manipulating zip archives

Tarfile: Read and Write tar archive files

File formatting

A. csv: Read/write csv file

Configparser: Configuration file parser

NETRC: netrc file Processor

Xdrlib: XDR data encoding and decoding

Plistlib: Generate and Parse Mac OS X. plist Files

Encryption

Hashlib: Secure Hash and message digest

HMAC: Key hash for message authentication

Operating System Tools

OS: Multi-faceted operating system interface

The. Io: Stream core tool

Time: Query and Conversion

Argparser: Parser for command line options, parameters, and subcommands

Optparser: command-line option resolver

Getopt:C-style command-line option parser

Logging: Python log Tool

Logging.config: Log Configuration

Logging.handlers: Log Processor

Getpass: Easy Password input

Curses: terminal processing of character display

Curses.textpad: text input fields for curses programs

Curses.ascii: ASCII character Set tool

Curses.panel: Curses control stack extension

Platform: Access to the underlying platform authentication data

errno: standard error Mark

cTYPES: Python external function library

Concurrent

Threading: Thread-based parallelism

Multiprocessing: Process-based parallelism

Concurrent: and the contract .

Bayi. Concurrent.futures: Start a parallel task

Subprocess: Child process Management

Sched: Event scheduling

. Queue: Synchronization queue

A. Select: Waiting for I/O completion

Dummy_threading: Substitution of threading modules (when _thread is not available)

_thread: The underlying threading API(threading based on it)

_dummy_thread: substitution of _thread modules (when _thread is not available)

Inter-process communication

The socket: the underlying network interface

Tls/ssl. SSL: The Socket object's shim

Asyncore: Asynchronous socket processor

Asynchat: Asynchronous socket Command/ response Processor

Signal: Asynchronous transaction signal Processor

94. Mmap: Memory-mapped file support

Internet

Email: Mail and MIME processing package

*. JSON: JSON encoding and decoding

Mailcap: mailcap file processing

98. Mailbox: Multiple format control mailboxes

Mimetypes: File name and MIME type mapping

Base64: RFC 3548: Base16, Base32, Base64 encoding

101. BinHex: binhex4 file encoding and decoding

102. Binascii: conversion between binary code and ASCII code

103. Quopri: encoding and decoding of MIME quoted-printable data

104. UU: encoding and decoding of uuencode files

Do you want to learn python? Garriel teacher QQ. 79646856来 See our free public classes. Receive FREE learning materials

HTML and XML

A. html: HTML support

106. Html.parser: Simple HTML and XHTML parser

107. Html.entities: The definition of an HTML generic entity

108. XML: XML processing module

109. Xml.etree.ElementTree: Tree-shaped XML element API

Xml.dom: XML DOM API

111. Xml.dom.minidom: XML DOM minimum spanning tree

Xml.dom.pulldom: support for building part of the DOM tree

113. Xml.sax: support for SAX2 parsing

Xml.sax.handler: Sax Processor base class

Xml.sax.saxutils: Sax Tools

Xml.sax.xmlreader: Sax Parser Interface

117. Xml.parsers.expat: Using expat to parse XML quickly

Internet Protocol and Support

118. WebBrowser: Simple Web browser controller

119. CGI: CGI support

CGITB: CGI script Reverse tracking manager

121. Wsgiref: WSGI Tools and reference implementations

122. Urllib: URL processing Module

123. Urllib.request: Open the extension library for URL connections

124. Urllib.response: response class for Urllib module

Urllib.parse: parsing URLs into components

126. Urllib.error: Exception class thrown by Urllib.request

127. Urllib.robotparser: parser for robots.txt

HTTP: HTTP module

129. Http.client: HTTP protocol Client

Ftplib: FTP protocol Client

131. Poplib: POP protocol Client

Imaplib: IMAP4 protocol Client

133. Nntplib: NNTP protocol Client

134. Smtplib: SMTP protocol Client

135. SMTPD: SMTP server

136. Telnetlib: Telnet client

137. UUID: uuid object for RFC4122

138. Socketserver: Web server Framework

139. Http.server: HTTP server

Http.cookies: HTTPCookie State manager

141. Http.cookiejar: Cookie handling for HTTP clients

142. Xmlrpc: XML-RPC Server and client module

143. Xmlrpc.client: Xml-rpc Client Access

144. Xmlrpc.server: xml-rpc Server Basics

145. IPAddress: Ipv4/ipv6 Control Library

Multimedia

146. Audioop: Processing raw audio Data

147. AIFC: Read and write Aiff and aifc files

148. Sunau: Read and write Sun AU files

149. Wave: Read and write wav files

Chunk: Read iff large file

151. Colorsys: Conversion between color systems

IMGHDR: Specifying the image Type

153. SNDHDR: Specifying the sound file type

154. Ossaudiodev: Accessing Audio Devices compatible with OSS

Internationalization

155. GetText: Multi-lingual International service

156. Locale: International Service

Programming framework

157. Turtle: Turtle Graphics Library

158. CMD: Row-based command interpreter support

159. Shlex: Simple Dictionary analysis

TK Graphical user interface

Tkinter: tcl/tk interface

161. TKINTER.TTK: Tk Theme Controls

162. Tkinter.tix: Tk Extended Controls

163. Tkinter.scrolledtext: Roller text control

Development tools

164. Pydoc: Document generator and online Help system

165. Doctest: Interactive python example

166. UnitTest: Unit test Framework

167. Unittest.mock: Mock Object Library

168. Test: Python regression test Package

169. Test.support: Python test Kit

Venv: Virtual Environment Construction

Debugging

171. BDB: Debug Framework

172. Faulthandler: Python Reverse Tracking Library

173. PDB: Python Debugger

174. Timeit: Calculation of the execution time of small segment code

175. Trace: Python Execution status tracking

Run-time

176. SYS: System-dependent parameters and functions

177. Sysconfig: Accessing python configuration information

178. Builtins: Built-in Objects

179. __main__: Top-level scripting environment

Warnings: Warning Control

181. Contextlib: context tool with State

182. ABC: Virtual base class

183. Atexit: Export processor

184. Traceback: Print or read a stack of reverse tracking

185. __future__: Future State definition

186. GC: Garbage Collection Interface

187. Inspect: Checking for surviving objects

188. Site: Site-related configuration hooks (hooks)

189. Fpectl: Floating-point exception control

Distutils: Build and install the Python module

Interpreter

191. Code: base class interpreter

192. Codeop: Compiling python code

Import Module

193. Imp: Accessing The internal of the import module

194. Zipimport: importing modules from a ZIP archive

195. Pkgutil: Package extension Tool

196. Modulefinder: Finding modules by Script

197. Runpy: Locating and executing the Python module

198. Importlib: An implementation of import

Python Language

199. Parser: Accessing the Python parse tree

$. AST: Abstract syntax tree

201. Symtable: Accessing the compiler symbol table

202. Symbol: constants in the Python parse tree

203. Token: constants in the Python parse tree

204. Keyword: Python keyword Test

205. Tokenize: Python source file participle

206. Tabnany: Fuzzy indentation detection

207. Pyclbr: Python class browsing support

208. Py_compile: Compiling python source files

209. Compileall: Compiling python libraries by byte

Dis: The disassembler of Python bytecode

211. Pickletools: Serialization Development tools

Other

212. Formatter: Universal formatted output

Windows- related

213. Msilib: Read and write Windows Installer files

214. MSVCRT: A useful program for MS VC + + Runtime

215. WinReg: Windows registry Access

216. WinSound: Windows Sound Playback interface

Unix- related

217. POSIX: Most commonly used POSIX calls

218. PWD: Password database

219. Spwd: Shadow password Database

GRP: Group Database

221. Crypt: Unix password Authentication

222. Termios: POSIX -style TTY control

223. TTY: Terminal control functions

224. Pty: Pseudo-terminal tools

225. Fcntl: System call Fcntl() and IOCTL()

226. Pipes: Shell Pipeline Interface

227. Resource: Resources available information

228. NIS: interface for Sun's NIS

229. Syslog: Unix syslog Program Library

List Python standard modules

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.