fkudinov

Python 3.12 BuiltIn modules and Packages

Jun 6th, 2024
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.50 KB | Software | 0 0
  1. Python 3.12 BuiltIn modules and Packages
  2. https://docs.python.org/3/py-modindex.html
  3.  
  4.  
  5.  
  6. 1. Testing, Debug, Profiling, Optimisation
  7. ------------------------------------------
  8. cProfile Python source profiler.
  9. dis Disassembler for Python bytecode.
  10. doctest Test pieces of code within docstrings.
  11. faulthandler Dump the Python traceback.
  12. pdb The Python debugger for interactive interpreters.
  13. profile Python source profiler.
  14. pstats Statistics object for use with the profiler.
  15. time Time access and conversions.
  16. timeit Measure the execution time of small code snippets.
  17. trace Trace or track Python statement execution.
  18. tracemalloc Trace memory allocations.
  19. unittest Unit testing framework for Python.
  20.  
  21.  
  22. 2. Python services for Runtime
  23. ------------------------------
  24. ast Abstract Syntax Tree classes and manipulation.
  25. atexit Register and execute cleanup functions.
  26. builtins The module that provides the built-in namespace. __builtins__
  27. contextvars Context Variables
  28. copy Shallow and deep copy operations.
  29. gc Interface to the cycle-detecting garbage collector.
  30. importlib The implementation of the import machinery.
  31. inspect Extract information and source code from live objects.
  32. marshal Convert Python objects to streams of bytes and back (with different constraints).
  33. pickle Convert Python objects to streams of bytes and back.
  34. runpy Locate and run Python modules without importing them first.
  35. site Module responsible for site-specific configuration.
  36. sitecustomize Can perform arbitrary site-specific customizations
  37. sys Access system-specific parameters and functions.
  38. sysconfig Python's configuration information
  39. traceback Print or retrieve a stack traceback.
  40. types Names for built-in types.
  41. typing Support for type hints (see :pep:`484`).
  42. usercustomize Arbitrary user-specific customizations
  43. warnings Issue warning messages and control their disposition.
  44. weakref Support for weak references and weak dictionaries.
  45.  
  46.  
  47. 3. OS services
  48. ---------------
  49. configparser Configuration file parser.
  50. datetime Basic date and time types.
  51. errno Standard errno system symbols.
  52. fcntl (Unix) The fcntl() and ioctl() system calls.
  53. fileinput Loop over standard input or a list of files.
  54. io Core tools for working with streams.
  55. logging Flexible event logging system for applications.
  56. mmap Interface to memory-mapped files for Unix and Windows.
  57. msvcrt (Windows) Miscellaneous useful routines from the MS VC++ runtime.
  58. os Miscellaneous operating system interfaces.
  59. pathlib Object-oriented filesystem paths
  60. posix (Unix) The most common POSIX system calls (normally used via module os).
  61. signal Set handlers for asynchronous events.
  62. subprocess Subprocess management.
  63. time Time access and conversions.
  64. winreg (Windows) Routines and objects for manipulating the Windows registry.
  65. zoneinfo IANA time zone support
  66.  
  67.  
  68. 4. Modules for access to OS services
  69. -------------------------------------
  70. ctypes A foreign function library for Python.
  71. curses (Unix) An interface to the curses library, providing portable terminal handling.
  72. grp (Unix) The group database (getgrnam() and friends).
  73. platform Retrieves as much platform identifying data as possible.
  74. pty (Unix) Pseudo-Terminal Handling for Unix.
  75. pwd (Unix) The password database (getpwnam() and friends).
  76. readline (Unix) GNU readline support for Python.
  77. resource (Unix) An interface to provide resource usage information on the current process.
  78. rlcompleter Python identifier completion, suitable for the GNU readline library.
  79. sched General purpose event scheduler.
  80. stat Utilities for interpreting the results of os.stat(), os.lstat() and os.fstat().
  81. syslog (Unix) An interface to the Unix syslog library routines.
  82. termios (Unix) POSIX style tty control.
  83. tty (Unix) Utility functions that perform common terminal control operations.
  84.  
  85.  
  86. 5. Work with files and catalogs
  87. -------------------------------
  88. bz2 Interfaces for bzip2 compression and decompression.
  89. filecmp Compare files efficiently.
  90. fnmatch Unix shell style filename pattern matching.
  91. glob Unix shell style pathname pattern expansion.
  92. gzip Interfaces for gzip compression and decompression using file objects.
  93. lzma A Python wrapper for the liblzma compression library.
  94. shutil High-level file operations, including copying.
  95. tarfile Read and write tar-format archive files.
  96. tempfile Generate temporary files and directories.
  97. zipfile Read and write ZIP-format archive files.
  98. zlib Low-level interface to compression and decompression routines compatible with gzip.
  99.  
  100.  
  101. 6. Mathematics
  102. --------------
  103. cmath Mathematical functions for complex numbers.
  104. decimal Implementation of the General Decimal Arithmetic Specification.
  105. fractions Rational numbers.
  106. math Mathematical functions (sin() etc.).
  107. numbers Numeric abstract base classes (Complex, Real, Integral, etc.).
  108. random Generate pseudo-random numbers with various common distributions.
  109. statistics Mathematical statistics functions
  110.  
  111.  
  112. 7. Data structures, algorithms and code simplifications
  113. -------------------------------------------------------
  114. abc Abstract base classes according to :pep:`3119`.
  115. array Space efficient arrays of uniformly typed numeric values.
  116. bisect Array bisection algorithms for binary searching.
  117. collections Container datatypes
  118. contextlib Utilities for with-statement contexts.
  119. dataclasses Generate special methods on user-defined classes.
  120. enum Implementation of an enumeration class.
  121. functools Higher-order functions and operations on callable objects.
  122. graphlib Functionality to operate with graph-like structures
  123. heapq Heap queue algorithm (a.k.a. priority queue).
  124. itertools Functions creating iterators for efficient looping.
  125. operator Functions corresponding to the standard operators.
  126.  
  127.  
  128. 8. Work with text and strings
  129. -----------------------------
  130. codecs Encode and decode data and streams.
  131. encodings Stores standard Python encoding modules.
  132. re Regular expression operations.
  133. string Common string operations.
  134. struct Interpret bytes as packed binary data.
  135. unicodedata Access the Unicode Database.
  136. difflib Helpers for computing differences between objects.
  137. stringprep String preparation, as per RFC 3453
  138. textwrap Text wrapping and filling
  139.  
  140.  
  141. 9. Access to Data Base
  142. ----------------------
  143. dbm Interfaces to various Unix "database" formats.
  144. shelve Python object persistence.
  145. sqlite3 A DB-API 2.0 implementation using SQLite 3.x.
  146.  
  147.  
  148. 10. Threads and Multitasking
  149. ----------------------------
  150. asyncio Asynchronous I/O.
  151. concurrent A high-level interface for asynchronously executing callables.
  152. multiprocessing Process-based parallelism.
  153. queue A synchronized queue class.
  154. threading Thread-based parallelism.
  155.  
  156.  
  157. 11. Network and Sockets
  158. -----------------------
  159. ipaddress IPv4/IPv6 manipulation library.
  160. select Wait for I/O completion on multiple streams.
  161. selectors High-level I/O multiplexing.
  162. socket Low-level networking interface.
  163. socketserver A framework for network servers.
  164. ssl TLS/SSL wrapper for socket objects
  165.  
  166.  
  167. 12. Web Application Development and Programming
  168. -----------------------------------------------
  169. ftplib FTP protocol client (requires sockets).
  170. http HTTP status codes and messages
  171. imaplib IMAP4 protocol client (requires sockets).
  172. poplib POP3 protocol client (requires sockets).
  173. smtplib SMTP protocol client (requires sockets).
  174. urllib Package that collects several modules for working with URLs
  175. wsgiref WSGI support, WSGI Utilities and Reference Implementation.
  176. xmlrpc Package contains client and server modules for RPC implementation
  177.  
  178.  
  179. 13 Processing and representation data in internet
  180. -------------------------------------------------
  181. base64 RFC 4648: Base16, Base32, Base64 Data Encodings; Base85 and Ascii85
  182. binascii Tools for converting between binary and various ASCII-encoded binary representations.
  183. csv Write and read tabular data to and from delimited files.
  184. email Package supporting the parsing, manipulating, and generating email messages.
  185. hashlib Secure hash and message digest algorithms.
  186. hmac Keyed-Hashing for Message Authentication (HMAC) implementation
  187. html Helpers for manipulating HTML.
  188. json Encode and decode the JSON format.
  189. mimetypes Mapping of filename extensions to MIME types.
  190. quopri Encode and decode files using the MIME quoted-printable encoding.
  191. secrets Generate secure random numbers for managing secrets.
  192. tomllib Parse TOML files.
  193. uuid UUID objects (universally unique identifiers) according to RFC 4122
  194. xml Package containing XML processing modules
  195. mailbox Manipulate mailboxes in various formats
  196. netrc Loading of .netrc files.
  197. plistlib Generate and parse Apple plist files.
  198.  
  199.  
  200. 14. Python interpreter services
  201. -------------------------------
  202. argparse Command-line option and argument parsing library.
  203. bdb Debugger framework.
  204. code Facilities to implement read-eval-print loops.
  205. codeop Compile (possibly incomplete) Python code.
  206. compileall Tools for byte-compiling all Python source files in a directory tree.
  207. copyreg Register pickle support functions.
  208. ensurepip Bootstrapping the "pip" installer into an existing Python installation or virtual environment.
  209. getopt Portable parser for command line options; support both short and long option names.
  210. getpass Portable reading of passwords and retrieval of the userid.
  211. keyword Test whether a string is a keyword in Python.
  212. lib2to3 The 2to3 library
  213. linecache Provides random access to individual lines from text files.
  214. modulefinder Find modules used by a script.
  215. pickletools Contains extensive comments about the pickle protocols and pickle-machine opcodes, as well as some useful functions.
  216. pkgutil Utilities for the import system.
  217. pprint Data pretty printer.
  218. py_compile Generate byte-code files from Python source files.
  219. pyclbr Supports information extraction for a Python module browser.
  220. reprlib Alternate repr() implementation with size limits.
  221. symtable Interface to the compiler's internal symbol tables.
  222. tabnanny Tool for detecting white space related problems in Python source files in a directory tree.
  223. test Regression tests package containing the testing suite for Python.
  224. token Constants representing terminal nodes of the parse tree.
  225. tokenize Lexical scanner for Python source code.
  226. venv Creation of virtual environments.
  227. zipapp Manage executable Python zip archives
  228. zipimport Support for importing Python modules from ZIP archives.
  229.  
  230.  
  231. 15. String Processing
  232. ----------------------
  233. difflib Helpers for computing differences between objects.
  234. stringprep String preparation, as per RFC 3453
  235. textwrap Text wrapping and filling
  236.  
  237.  
  238. 16. Internationalization, localisation
  239. --------------------------------------
  240. gettext Multilingual internationalization services.
  241. locale Internationalization services.
  242.  
  243.  
  244. 17. Multimedia
  245. --------------
  246. colorsys Conversion functions between RGB and other color systems.
  247. wave Provide an interface to the WAV sound format.
  248.  
  249.  
  250. 18. Different modules
  251. ---------------------
  252. __future__ Future statement definitions
  253. __main__ The environment where top-level code is run. Covers command-line interfaces, import-time behavior, and ``__name__ == '__main__'``.
  254. calendar Functions for working with calendars, including some emulation of the Unix cal program.
  255. cmd Build line-oriented command interpreters.
  256. idlelib Implementation package for the IDLE shell/editor.
  257. pydoc Documentation generator and online help system.
  258. shlex Simple lexical analysis for Unix shell-like languages.
  259. tkinter Interface to Tcl/Tk for graphical user interfaces
  260. turtle An educational framework for simple graphics applications
  261. turtledemo A viewer for example turtle scripts
  262. webbrowser Easy-to-use controller for web browsers.
  263. winsound (Windows) Access to the sound-playing machinery for Windows.
Add Comment
Please, Sign In to add comment