| 1 |
.. _library-index: |
| 2 |
|
| 3 |
############################### |
| 4 |
The Python Standard Library |
| 5 |
############################### |
| 6 |
|
| 7 |
While :ref:`reference-index` describes the exact syntax and |
| 8 |
semantics of the Python language, this library reference manual |
| 9 |
describes the standard library that is distributed with Python. It also |
| 10 |
describes some of the optional components that are commonly included |
| 11 |
in Python distributions. |
| 12 |
|
| 13 |
Python's standard library is very extensive, offering a wide range of |
| 14 |
facilities as indicated by the long table of contents listed below. The |
| 15 |
library contains built-in modules (written in C) that provide access to |
| 16 |
system functionality such as file I/O that would otherwise be |
| 17 |
inaccessible to Python programmers, as well as modules written in Python |
| 18 |
that provide standardized solutions for many problems that occur in |
| 19 |
everyday programming. Some of these modules are explicitly designed to |
| 20 |
encourage and enhance the portability of Python programs by abstracting |
| 21 |
away platform-specifics into platform-neutral APIs. |
| 22 |
|
| 23 |
The Python installers for the Windows platform usually include |
| 24 |
the entire standard library and often also include many additional |
| 25 |
components. For Unix-like operating systems Python is normally provided |
| 26 |
as a collection of packages, so it may be necessary to use the packaging |
| 27 |
tools provided with the operating system to obtain some or all of the |
| 28 |
optional components. |
| 29 |
|
| 30 |
In addition to the standard library, there is an active collection of |
| 31 |
hundreds of thousands of components (from individual programs and modules to |
| 32 |
packages and entire application development frameworks), available from |
| 33 |
the `Python Package Index <https://pypi.org>`_. |
| 34 |
|
| 35 |
.. We don't use :numbered: option for the TOC below as it enforces |
| 36 |
numbered sections for the entire stdlib docs. If desired, |
| 37 |
:numbered: can be enabled on a per-module basis. |
| 38 |
.. toctree:: |
| 39 |
:maxdepth: 2 |
| 40 |
|
| 41 |
intro.rst |
| 42 |
functions.rst |
| 43 |
constants.rst |
| 44 |
stdtypes.rst |
| 45 |
exceptions.rst |
| 46 |
threadsafety.rst |
| 47 |
|
| 48 |
text.rst |
| 49 |
binary.rst |
| 50 |
datatypes.rst |
| 51 |
numeric.rst |
| 52 |
functional.rst |
| 53 |
filesys.rst |
| 54 |
persistence.rst |
| 55 |
archiving.rst |
| 56 |
fileformats.rst |
| 57 |
crypto.rst |
| 58 |
allos.rst |
| 59 |
cmdlinelibs.rst |
| 60 |
concurrency.rst |
| 61 |
ipc.rst |
| 62 |
netdata.rst |
| 63 |
markup.rst |
| 64 |
internet.rst |
| 65 |
mm.rst |
| 66 |
i18n.rst |
| 67 |
tk.rst |
| 68 |
development.rst |
| 69 |
debug.rst |
| 70 |
distribution.rst |
| 71 |
python.rst |
| 72 |
custominterp.rst |
| 73 |
modules.rst |
| 74 |
language.rst |
| 75 |
windows.rst |
| 76 |
unix.rst |
| 77 |
cmdline.rst |
| 78 |
superseded.rst |
| 79 |
removed.rst |
| 80 |
security_warnings.rst |