While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. It also describes some of the optional components that are commonly included in Python distributions.
Pythonâs standard library is very extensive, offering a wide range of facilities as indicated by the long table of contents listed below. The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as well as modules written in Python that provide standardized solutions for many problems that occur in everyday programming. Some of these modules are explicitly designed to encourage and enhance the portability of Python programs by abstracting away platform-specifics into platform-neutral APIs.
The Python installers for the Windows platform usually include the entire standard library and often also include many additional components. For Unix-like operating systems Python is normally provided as a collection of packages, so it may be necessary to use the packaging tools provided with the operating system to obtain some or all of the optional components.
In addition to the standard library, there is an active collection of hundreds of thousands of components (from individual programs and modules to packages and entire application development frameworks), available from the Python Package Index.
and
, or
, not
int
, float
, complex
bool
list
, tuple
, range
str
bytes
, bytearray
, memoryview
set
, frozenset
dict
string
â Common string operationsre
â Regular expression operationsdifflib
â Helpers for computing deltastextwrap
â Text wrapping and fillingunicodedata
â Unicode Databasestringprep
â Internet String Preparationreadline
â GNU readline interfacerlcompleter
â Completion function for GNU readlinedatetime
â Basic date and time typeszoneinfo
â IANA time zone supportcalendar
â General calendar-related functionscollections
â Container datatypescollections.abc
â Abstract Base Classes for Containersheapq
â Heap queue algorithmbisect
â Array bisection algorithmarray
â Efficient arrays of numeric valuesweakref
â Weak referencestypes
â Dynamic type creation and names for built-in typescopy
â Shallow and deep copy operationspprint
â Data pretty printerreprlib
â Alternate repr()
implementationenum
â Support for enumerationsgraphlib
â Functionality to operate with graph-like structuresnumbers
â Numeric abstract base classesmath
â Mathematical functionscmath
â Mathematical functions for complex numbersdecimal
â Decimal fixed-point and floating-point arithmeticfractions
â Rational numbersrandom
â Generate pseudo-random numbersstatistics
â Mathematical statistics functionspathlib
â Object-oriented filesystem pathsos.path
â Common pathname manipulationsstat
â Interpreting stat()
resultsfilecmp
â File and Directory Comparisonstempfile
â Generate temporary files and directoriesglob
â Unix style pathname pattern expansionfnmatch
â Unix filename pattern matchinglinecache
â Random access to text linesshutil
â High-level file operationsos
â Miscellaneous operating system interfacesio
â Core tools for working with streamstime
â Time access and conversionslogging
â Logging facility for Pythonlogging.config
â Logging configurationlogging.handlers
â Logging handlersplatform
â Access to underlying platformâs identifying dataerrno
â Standard errno system symbolsctypes
â A foreign function library for Pythonargparse
â Parser for command-line options, arguments and subcommandsoptparse
â Parser for command line optionsgetpass
â Portable password inputfileinput
â Iterate over lines from multiple input streamscurses
â Terminal handling for character-cell displayscurses.textpad
â Text input widget for curses programscurses.ascii
â Utilities for ASCII characterscurses.panel
â A panel stack extension for cursesthreading
â Thread-based parallelismmultiprocessing
â Process-based parallelismmultiprocessing.shared_memory
â Shared memory for direct access across processesconcurrent
packageconcurrent.futures
â Launching parallel taskssubprocess
â Subprocess managementsched
â Event schedulerqueue
â A synchronized queue classcontextvars
â Context Variables_thread
â Low-level threading APIemail
â An email and MIME handling packagejson
â JSON encoder and decodermailbox
â Manipulate mailboxes in various formatsmimetypes
â Map filenames to MIME typesbase64
â Base16, Base32, Base64, Base85 Data Encodingsbinascii
â Convert between binary and ASCIIquopri
â Encode and decode MIME quoted-printable datahtml
â HyperText Markup Language supporthtml.parser
â Simple HTML and XHTML parserhtml.entities
â Definitions of HTML general entitiesxml.etree.ElementTree
â The ElementTree XML APIxml.dom
â The Document Object Model APIxml.dom.minidom
â Minimal DOM implementationxml.dom.pulldom
â Support for building partial DOM treesxml.sax
â Support for SAX2 parsersxml.sax.handler
â Base classes for SAX handlersxml.sax.saxutils
â SAX Utilitiesxml.sax.xmlreader
â Interface for XML parsersxml.parsers.expat
â Fast XML parsing using Expatwebbrowser
â Convenient web-browser controllerwsgiref
â WSGI Utilities and Reference Implementationurllib
â URL handling modulesurllib.request
â Extensible library for opening URLsurllib.response
â Response classes used by urlliburllib.parse
â Parse URLs into componentsurllib.error
â Exception classes raised by urllib.requesturllib.robotparser
â Parser for robots.txthttp
â HTTP moduleshttp.client
â HTTP protocol clientftplib
â FTP protocol clientpoplib
â POP3 protocol clientimaplib
â IMAP4 protocol clientsmtplib
â SMTP protocol clientuuid
â UUID objects according to RFC 4122socketserver
â A framework for network servershttp.server
â HTTP servershttp.cookies
â HTTP state managementhttp.cookiejar
â Cookie handling for HTTP clientsxmlrpc
â XMLRPC server and client modulesxmlrpc.client
â XML-RPC client accessxmlrpc.server
â Basic XML-RPC serversipaddress
â IPv4/IPv6 manipulation librarytkinter
â Python interface to Tcl/Tktkinter.colorchooser
â Color choosing dialogtkinter.font
â Tkinter font wrappertkinter.messagebox
â Tkinter message promptstkinter.scrolledtext
â Scrolled Text Widgettkinter.dnd
â Drag and drop supporttkinter.ttk
â Tk themed widgetstyping
â Support for type hintspydoc
â Documentation generator and online help systemdoctest
â Test interactive Python examplesunittest
â Unit testing frameworkunittest.mock
â mock object libraryunittest.mock
â getting startedtest
â Regression tests package for Pythontest.support
â Utilities for the Python test suitetest.support.socket_helper
â Utilities for socket teststest.support.script_helper
â Utilities for the Python execution teststest.support.bytecode_helper
â Support tools for testing correct bytecode generationtest.support.threading_helper
â Utilities for threading teststest.support.os_helper
â Utilities for os teststest.support.import_helper
â Utilities for import teststest.support.warnings_helper
â Utilities for warnings testssys
â System-specific parameters and functionssys.monitoring
â Execution event monitoringsysconfig
â Provide access to Pythonâs configuration informationbuiltins
â Built-in objects__main__
â Top-level code environmentwarnings
â Warning controldataclasses
â Data Classescontextlib
â Utilities for with
-statement contextsabc
â Abstract Base Classesatexit
â Exit handlerstraceback
â Print or retrieve a stack traceback__future__
â Future statement definitionsgc
â Garbage Collector interfaceinspect
â Inspect live objectssite
â Site-specific configuration hookzipimport
â Import modules from Zip archivespkgutil
â Package extension utilitymodulefinder
â Find modules used by a scriptrunpy
â Locating and executing Python modulesimportlib
â The implementation of import
importlib.resources
â Package resource reading, opening and accessimportlib.resources.abc
â Abstract base classes for resourcesimportlib.metadata
â Accessing package metadatasys.path
module search pathast
â Abstract Syntax Treessymtable
â Access to the compilerâs symbol tablestoken
â Constants used with Python parse treeskeyword
â Testing for Python keywordstokenize
â Tokenizer for Python sourcetabnanny
â Detection of ambiguous indentationpyclbr
â Python module browser supportpy_compile
â Compile Python source filescompileall
â Byte-compile Python librariesdis
â Disassembler for Python bytecodepickletools
â Tools for pickle developersposix
â The most common POSIX system callspwd
â The password databasegrp
â The group databasetermios
â POSIX style tty controltty
â Terminal control functionspty
â Pseudo-terminal utilitiesfcntl
â The fcntl
and ioctl
system callsresource
â Resource usage informationsyslog
â Unix syslog library routinesRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4