2007-08-15 11:28:01 -03:00
|
|
|
.. _library-index:
|
|
|
|
|
|
|
|
###############################
|
|
|
|
The Python Standard Library
|
|
|
|
###############################
|
|
|
|
|
2008-09-12 23:09:15 -03:00
|
|
|
While :ref:`reference-index` describes the exact syntax and
|
2007-08-15 11:28:01 -03:00
|
|
|
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.
|
|
|
|
|
2015-03-09 05:54:25 -03:00
|
|
|
The Python installers for the Windows platform usually include
|
2007-08-15 11:28:01 -03:00
|
|
|
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 a growing collection of
|
2008-04-07 04:39:23 -03:00
|
|
|
several thousand components (from individual programs and modules to
|
|
|
|
packages and entire application development frameworks), available from
|
2018-05-16 11:57:36 -03:00
|
|
|
the `Python Package Index <https://pypi.org>`_.
|
2007-08-15 11:28:01 -03:00
|
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
2009-03-28 16:57:36 -03:00
|
|
|
:numbered:
|
2007-08-15 11:28:01 -03:00
|
|
|
|
|
|
|
intro.rst
|
|
|
|
functions.rst
|
|
|
|
constants.rst
|
|
|
|
stdtypes.rst
|
|
|
|
exceptions.rst
|
|
|
|
|
|
|
|
strings.rst
|
|
|
|
datatypes.rst
|
|
|
|
numeric.rst
|
|
|
|
filesys.rst
|
|
|
|
persistence.rst
|
|
|
|
archiving.rst
|
|
|
|
fileformats.rst
|
|
|
|
crypto.rst
|
|
|
|
allos.rst
|
|
|
|
someos.rst
|
|
|
|
ipc.rst
|
|
|
|
netdata.rst
|
|
|
|
markup.rst
|
|
|
|
internet.rst
|
|
|
|
mm.rst
|
|
|
|
i18n.rst
|
|
|
|
frameworks.rst
|
|
|
|
tk.rst
|
|
|
|
development.rst
|
2007-09-12 15:03:51 -03:00
|
|
|
debug.rst
|
2014-11-11 11:24:11 -04:00
|
|
|
distribution.rst
|
2007-08-15 11:28:01 -03:00
|
|
|
python.rst
|
|
|
|
custominterp.rst
|
|
|
|
restricted.rst
|
|
|
|
modules.rst
|
|
|
|
language.rst
|
|
|
|
compiler.rst
|
|
|
|
misc.rst
|
|
|
|
windows.rst
|
|
|
|
unix.rst
|
|
|
|
mac.rst
|
|
|
|
macosa.rst
|
|
|
|
sgi.rst
|
|
|
|
sun.rst
|
|
|
|
undoc.rst
|