Text of docs.python.org › uk › 3 › library › index.html as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

The Python standard library — Python 3.15.2 documentation

Навігація індекс модулі | наступний | попередній | Python » 3.15.2 documentation » The Python standard library | Theme | The Python standard library ¶ This library reference manual describes the standard library distributed with Python. It also describes some of the optional components that are commonly included in Python distributions. Elsewhere, Довідник з мови Python describes the exact syntax and semantics of the Python language, and Python built-ins reference describes the built-in functions.

Python’s standard library is 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. Інсталятори Python для платформи Windows зазвичай містять усю стандартну бібліотеку, а також багато додаткових компонентів. Для Unix-подібних операційних систем Python зазвичай надається як набір пакетів, тому може знадобитися використовувати інструменти пакування, що надаються разом з операційною системою, щоб отримати деякі або всі додаткові компоненти.

На додаток до стандартної бібліотеки, існує активна колекція сотень тисяч компонентів (від окремих програм і модулів до пакетів та цілих фреймворків для розробки додатків), доступних у Python Package Index . Вступ Примітки щодо наявності Послуги обробки тексту string — Common string operations string.templatelib — Support for template string literals re — Regular expression operations difflib — Helpers for computing deltas textwrap — Text wrapping and filling unicodedata — Unicode Database stringprep — Internet String Preparation readline — GNU readline interface rlcompleter — Completion function for GNU readline Служби двійкових даних struct — Interpret bytes as packed binary data codecs — Codec registry and base classes Типи даних datetime — Базові типи дати і часу zoneinfo — IANA time zone support calendar — General calendar-related functions collections — Container datatypes collections.abc — Abstract Base Classes for Containers heapq — Heap queue algorithm bisect — Array bisection algorithm array — Efficient arrays of numeric values weakref — Weak references types — Dynamic type creation and names for built-in types copy — Shallow and deep copy operations pprint — Data pretty printer reprlib — Alternate repr() implementation enum — Support for enumerations graphlib — Functionality to operate with graph-like structures Числові та математичні модулі numbers — Numeric abstract base classes math — Mathematical functions math.integer — integer-specific mathematics functions cmath — Mathematical functions for complex numbers decimal — Decimal fixed-point and floating-point arithmetic fractions — Rational numbers random — Generate pseudo-random numbers statistics — Mathematical statistics functions Модулі функціонального програмування itertools — Functions creating iterators for efficient looping functools — Higher-order functions and operations on callable objects operator — Standard operators as functions Доступ до файлів і каталогів pathlib — Object-oriented filesystem paths os.path — Common pathname manipulations stat — Interpreting stat() results filecmp — File and Directory Comparisons tempfile — Generate temporary files and directories glob — Unix style pathname pattern expansion fnmatch — зіставлення імен файлів у Unix linecache — Random access to text lines shutil — High-level file operations Постійність даних pickle — Python object serialization copyreg — Register pickle support functions shelve — Python object persistence marshal — Internal Python object serialization dbm — Interfaces to Unix «databases» sqlite3 — DB-API 2.0 interface for SQLite databases Стиснення та архівування даних The compression package compression.zstd — Compression compatible with the Zstandard format zlib — Compression compatible with gzip gzip — Support for gzip files bz2 — Support for bzip2 compression lzma — Compression using the LZMA algorithm zipfile — Work with ZIP archives tarfile — Read and write tar archive files Формати файлів csv — CSV file reading and writing configparser — Configuration file parser tomllib — Parse TOML files netrc — netrc file processing plistlib — Generate and parse Apple .plist files Криптографічні послуги hashlib — Secure hashes and message digests hmac — Keyed-Hashing for Message Authentication secrets — Generate secure random numbers for managing secrets Загальні служби операційної системи os — Miscellaneous operating system interfaces io — Core tools for working with streams time — Time access and conversions logging — Logging facility for Python logging.config — Logging configuration logging.handlers — Logging handlers platform — Access to underlying platform’s identifying data errno — Standard errno system symbols ctypes — A foreign function library for Python Command-line interface libraries argparse — Parser for command-line options, arguments and subcommands optparse — Parser for command line options getpass — Portable password input fileinput — Iterate over lines from multiple input streams curses — Terminal handling for character-cell displays curses.textpad — Text input widget for curses programs curses.ascii — Utilities for ASCII characters curses.panel — A panel stack extension for curses cmd — Support for line-oriented command interpreters Паралельне виконання threading — Thread-based parallelism multiprocessing — Process-based parallelism multiprocessing.shared_memory — Shared memory for direct access across processes The concurrent package concurrent.futures — Launching parallel tasks concurrent.interpreters — Multiple interpreters in the same process subprocess — Subprocess management sched — Event scheduler queue — A synchronized queue class contextvars — Context Variables _thread — Low-level threading API Мережа та міжпроцесна комунікація asyncio — Asynchronous I/O socket — Low-level networking interface ssl — TLS/SSL wrapper for socket objects select — Waiting for I/O completion selectors — High-level I/O multiplexing signal — Set handlers for asynchronous events mmap — Memory-mapped file support Обробка даних в Інтернеті email — An email and MIME handling package json — JSON encoder and decoder mailbox — Manipulate mailboxes in various formats mimetypes — Map filenames to MIME types base64 — Base16, Base32, Base64, Base85 Data Encodings binascii — Convert between binary and ASCII quopri — Encode and decode MIME quoted-printable data Інструменти обробки структурова�

The rest of this page is on the live site.