here2share

Python 3.9.5 Language Reference

Jun 17th, 2021
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 12.43 KB | None | 0 0
  1. Python 3.9.5 Language Reference --
  2.  
  3. Built-in Functions
  4. Built-in Constants
  5. Constants added by the site module
  6. Built-in Types
  7. Truth Value Testing
  8. Boolean Operations — and, or, not
  9. Comparisons
  10. Numeric Types — int, float, complex
  11. Iterator Types
  12. Sequence Types — list, tuple, range
  13. Text Sequence Type — str
  14. Binary Sequence Types — bytes, bytearray, memoryview
  15. Set Types — set, frozenset
  16. Mapping Types — dict
  17. Context Manager Types
  18. Generic Alias Type
  19. Other Built-in Types
  20. Special Attributes
  21. Built-in Exceptions
  22. Base classes
  23. Concrete exceptions
  24. Warnings
  25. Exception hierarchy
  26. Text Processing Services
  27. string — Common string operations
  28. re — Regular expression operations
  29. difflib — Helpers for computing deltas
  30. textwrap — Text wrapping and filling
  31. unicodedata — Unicode Database
  32. stringprep — Internet String Preparation
  33. readline — GNU readline interface
  34. rlcompleter — Completion function for GNU readline
  35. Binary Data Services
  36. struct — Interpret bytes as packed binary data
  37. codecs — Codec registry and base classes
  38. Data Types
  39. datetime — Basic date and time types
  40. zoneinfo — IANA time zone support
  41. calendar — General calendar-related functions
  42. collections — Container datatypes
  43. collections.abc — Abstract Base Classes for Containers
  44. heapq — Heap queue algorithm
  45. bisect — Array bisection algorithm
  46. array — Efficient arrays of numeric values
  47. weakref — Weak references
  48. types — Dynamic type creation and names for built-in types
  49. copy — Shallow and deep copy operations
  50. pprint — Data pretty printer
  51. reprlib — Alternate repr() implementation
  52. enum — Support for enumerations
  53. graphlib — Functionality to operate with graph-like structures
  54. Numeric and Mathematical Modules
  55. numbers — Numeric abstract base classes
  56. math — Mathematical functions
  57. cmath — Mathematical functions for complex numbers
  58. decimal — Decimal fixed point and floating point arithmetic
  59. fractions — Rational numbers
  60. random — Generate pseudo-random numbers
  61. statistics — Mathematical statistics functions
  62. Functional Programming Modules
  63. itertools — Functions creating iterators for efficient looping
  64. functools — Higher-order functions and operations on callable objects
  65. operator — Standard operators as functions
  66. File and Directory Access
  67. pathlib — Object-oriented filesystem paths
  68. os.path — Common pathname manipulations
  69. fileinput — Iterate over lines from multiple input streams
  70. stat — Interpreting stat() results
  71. filecmp — File and Directory Comparisons
  72. tempfile — Generate temporary files and directories
  73. glob — Unix style pathname pattern expansion
  74. fnmatch — Unix filename pattern matching
  75. linecache — Random access to text lines
  76. shutil — High-level file operations
  77. Data Persistence
  78. pickle — Python object serialization
  79. copyreg — Register pickle support functions
  80. shelve — Python object persistence
  81. marshal — Internal Python object serialization
  82. dbm — Interfaces to Unix “databases”
  83. sqlite3 — DB-API 2.0 interface for SQLite databases
  84. Data Compression and Archiving
  85. zlib — Compression compatible with gzip
  86. gzip — Support for gzip files
  87. bz2 — Support for bzip2 compression
  88. lzma — Compression using the LZMA algorithm
  89. zipfile — Work with ZIP archives
  90. tarfile — Read and write tar archive files
  91. File Formats
  92. csv — CSV File Reading and Writing
  93. configparser — Configuration file parser
  94. netrcnetrc file processing
  95. xdrlib — Encode and decode XDR data
  96. plistlib — Generate and parse Apple .plist files
  97. Cryptographic Services
  98. hashlib — Secure hashes and message digests
  99. hmac — Keyed-Hashing for Message Authentication
  100. secrets — Generate secure random numbers for managing secrets
  101. Generic Operating System Services
  102. os — Miscellaneous operating system interfaces
  103. io — Core tools for working with streams
  104. time — Time access and conversions
  105. argparse — Parser for command-line options, arguments and sub-commands
  106. getopt — C-style parser for command line options
  107. logging — Logging facility for Python
  108. logging.config — Logging configuration
  109. logging.handlers — Logging handlers
  110. getpass — Portable password input
  111. curses — Terminal handling for character-cell displays
  112. curses.textpad — Text input widget for curses programs
  113. curses.ascii — Utilities for ASCII characters
  114. curses.panel — A panel stack extension for curses
  115. platform — Access to underlying platform’s identifying data
  116. errno — Standard errno system symbols
  117. ctypes — A foreign function library for Python
  118. Concurrent Execution
  119. threading — Thread-based parallelism
  120. multiprocessing — Process-based parallelism
  121. multiprocessing.shared_memory — Provides shared memory for direct access across processes
  122. The concurrent package
  123. concurrent.futures — Launching parallel tasks
  124. subprocess — Subprocess management
  125. sched — Event scheduler
  126. queue — A synchronized queue class
  127. contextvars — Context Variables
  128. _thread — Low-level threading API
  129. Networking and Interprocess Communication
  130. asyncio — Asynchronous I/O
  131. socket — Low-level networking interface
  132. ssl — TLS/SSL wrapper for socket objects
  133. select — Waiting for I/O completion
  134. selectors — High-level I/O multiplexing
  135. asyncore — Asynchronous socket handler
  136. asynchat — Asynchronous socket command/response handler
  137. signal — Set handlers for asynchronous events
  138. mmap — Memory-mapped file support
  139. Internet Data Handling
  140. email — An email and MIME handling package
  141. json — JSON encoder and decoder
  142. mailcap — Mailcap file handling
  143. mailbox — Manipulate mailboxes in various formats
  144. mimetypes — Map filenames to MIME types
  145. base64 — Base16, Base32, Base64, Base85 Data Encodings
  146. binhex — Encode and decode binhex4 files
  147. binascii — Convert between binary and ASCII
  148. quopri — Encode and decode MIME quoted-printable data
  149. uu — Encode and decode uuencode files
  150. Structured Markup Processing Tools
  151. html — HyperText Markup Language support
  152. html.parser — Simple HTML and XHTML parser
  153. html.entities — Definitions of HTML general entities
  154. XML Processing Modules
  155. xml.etree.ElementTree — The ElementTree XML API
  156. xml.dom — The Document Object Model API
  157. xml.dom.minidom — Minimal DOM implementation
  158. xml.dom.pulldom — Support for building partial DOM trees
  159. xml.sax — Support for SAX2 parsers
  160. xml.sax.handler — Base classes for SAX handlers
  161. xml.sax.saxutils — SAX Utilities
  162. xml.sax.xmlreader — Interface for XML parsers
  163. xml.parsers.expat — Fast XML parsing using Expat
  164. Internet Protocols and Support
  165. webbrowser — Convenient Web-browser controller
  166. cgi — Common Gateway Interface support
  167. cgitb — Traceback manager for CGI scripts
  168. wsgiref — WSGI Utilities and Reference Implementation
  169. urllib — URL handling modules
  170. urllib.request — Extensible library for opening URLs
  171. urllib.response — Response classes used by urllib
  172. urllib.parse — Parse URLs into components
  173. urllib.errorException classes raised by urllib.request
  174. urllib.robotparser — Parser for robots.txt
  175. http — HTTP modules
  176. http.client — HTTP protocol client
  177. ftplib — FTP protocol client
  178. poplib — POP3 protocol client
  179. imaplib — IMAP4 protocol client
  180. nntplib — NNTP protocol client
  181. smtplib — SMTP protocol client
  182. smtpd — SMTP Server
  183. telnetlib — Telnet client
  184. uuid — UUID objects according to RFC 4122
  185. socketserver — A framework for network servers
  186. http.server — HTTP servers
  187. http.cookies — HTTP state management
  188. http.cookiejarCookie handling for HTTP clients
  189. xmlrpc — XMLRPC server and client modules
  190. xmlrpc.client — XML-RPC client access
  191. xmlrpc.server — Basic XML-RPC servers
  192. ipaddress — IPv4/IPv6 manipulation library
  193. Multimedia Services
  194. audioop — Manipulate raw audio data
  195. aifc — Read and write AIFF and AIFC files
  196. sunau — Read and write Sun AU files
  197. wave — Read and write WAV files
  198. chunk — Read IFF chunked data
  199. colorsys — Conversions between color systems
  200. imghdr — Determine the type of an image
  201. sndhdr — Determine type of sound file
  202. ossaudiodev — Access to OSS-compatible audio devices
  203. Internationalization
  204. gettext — Multilingual internationalization services
  205. locale — Internationalization services
  206. Program Frameworks
  207. turtle — Turtle graphics
  208. cmd — Support for line-oriented command interpreters
  209. shlex — Simple lexical analysis
  210. Graphical User Interfaces with Tk
  211. tkinter — Python interface to Tcl/Tk
  212. tkinter.colorchooser — Color choosing dialog
  213. tkinter.fontTkinter font wrapper
  214. Tkinter Dialogs
  215. tkinter.messageboxTkinter message prompts
  216. tkinter.scrolledtext — Scrolled Text Widget
  217. tkinter.dnd — Drag and drop support
  218. tkinter.ttk — Tk themed widgets
  219. tkinter.tix — Extension widgets for Tk
  220. IDLE
  221. Other Graphical User Interface Packages
  222. Development Tools
  223. typing — Support for type hints
  224. pydoc — Documentation generator and online help system
  225. Python Development Mode
  226. Effects of the Python Development Mode
  227. ResourceWarning Example
  228. Bad file descriptor error example
  229. doctest — Test interactive Python examples
  230. unittest — Unit testing framework
  231. unittest.mock — mock object library
  232. unittest.mock — getting started
  233. 2to3 - Automated Python 2 to 3 code translation
  234. test — Regression tests package for Python
  235. test.support — Utilities for the Python test suite
  236. test.support.socket_helper — Utilities for socket tests
  237. test.support.script_helper — Utilities for the Python execution tests
  238. test.support.bytecode_helper — Support tools for testing correct bytecode generation
  239. Debugging and Profiling
  240. Audit events table
  241. bdb — Debugger framework
  242. faulthandler — Dump the Python traceback
  243. pdb — The Python Debugger
  244. The Python Profilers
  245. timeit — Measure execution time of small code snippets
  246. trace — Trace or track Python statement execution
  247. tracemalloc — Trace memory allocations
  248. Software Packaging and Distribution
  249. distutils — Building and installing Python modules
  250. ensurepip — Bootstrapping the pip installer
  251. venv — Creation of virtual environments
  252. zipapp — Manage executable Python zip archives
  253. Python Runtime Services
  254. sys — System-specific parameters and functions
  255. sysconfig — Provide access to Python’s configuration information
  256. builtins — Built-in objects
  257. __main__ — Top-level script environment
  258. warningsWarning control
  259. dataclasses — Data Classes
  260. contextlib — Utilities for with-statement contexts
  261. abc — Abstract Base Classes
  262. atexit — Exit handlers
  263. traceback — Print or retrieve a stack traceback
  264. __future__ — Future statement definitions
  265. gc — Garbage Collector interface
  266. inspect — Inspect live objects
  267. site — Site-specific configuration hook
  268. Custom Python Interpreters
  269. code — Interpreter base classes
  270. codeop — Compile Python code
  271. Importing Modules
  272. zipimport — Import modules from Zip archives
  273. pkgutil — Package extension utility
  274. modulefinder — Find modules used by a script
  275. runpy — Locating and executing Python modules
  276. importlib — The implementation of import
  277. Using importlib.metadata
  278. Python Language Services
  279. parser — Access Python parse trees
  280. ast — Abstract Syntax Trees
  281. symtable — Access to the compiler’s symbol tables
  282. symbol — Constants used with Python parse trees
  283. token — Constants used with Python parse trees
  284. keyword — Testing for Python keywords
  285. tokenize — Tokenizer for Python source
  286. tabnanny — Detection of ambiguous indentation
  287. pyclbr — Python module browser support
  288. py_compile — Compile Python source files
  289. compileall — Byte-compile Python libraries
  290. dis — Disassembler for Python bytecode
  291. pickletools — Tools for pickle developers
  292. Miscellaneous Services
  293. formatter — Generic output formatting
  294. MS Windows Specific Services
  295. msilib — Read and write Microsoft Installer files
  296. msvcrt — Useful routines from the MS VC++ runtime
  297. winreg — Windows registry access
  298. winsound — Sound-playing interface for Windows
  299. Unix Specific Services
  300. posix — The most common POSIX system calls
  301. pwd — The password database
  302. spwd — The shadow password database
  303. grp — The group database
  304. crypt — Function to check Unix passwords
  305. termios — POSIX style tty control
  306. tty — Terminal control functions
  307. pty — Pseudo-terminal utilities
  308. fcntl — The fcntl and ioctl system calls
  309. pipes — Interface to shell pipelines
  310. resource — Resource usage information
  311. nis — Interface to Sun’s NIS (Yellow Pages)
  312. syslog — Unix syslog library routines
  313. Superseded Modules
  314. optparse — Parser for command line options
  315. imp — Access the import internals
  316. Undocumented Modules
  317. Platform specific modules
Add Comment
Please, Sign In to add comment