Стиснення та архівування даних — Python 3.15.2 documentation
Навігація індекс модулі | наступний | попередній | Python » 3.15.2 documentation » The Python standard library » Стиснення та архівування даних | Theme | Стиснення та архівування даних ¶ The modules described in this chapter support data compression with the zlib, gzip, bzip2, lzma, and zstd algorithms, and the creation of ZIP- and tar-format archives.
See also Архівні операції provided by the shutil module. The compression package compression.zstd — Compression compatible with the Zstandard format Exceptions Reading and writing compressed files Compressing and decompressing data in memory Zstandard dictionaries Advanced parameter control Miscellaneous Examples zlib — Compression compatible with gzip gzip — Support for gzip files Приклади вживання Command-line interface Command-line options bz2 — Support for bzip2 compression (Де)компресія файлів Поступове (роз)стиснення Одноразова (де)компресія Приклади вживання lzma — Compression using the LZMA algorithm Читання та запис стиснутих файлів Стиснення та розпакування даних у пам’яті Різне Визначення власних ланцюжків фільтрів Constants Приклади zipfile — Work with ZIP archives ZipFile objects Path objects PyZipFile objects ZipInfo objects Command-line interface Параметри командного рядка Підводні камені декомпресії З самого файлу File system limitations Обмеження ресурсів Переривання Типова поведінка вилучення tarfile — Read and write tar archive files Об’єкти TarFile Об’єкти TarInfo Extraction filters Default named filters Filter errors Hints for further verification Supporting older Python versions Stateful extraction filter example Інтерфейс командного рядка Параметри командного рядка Приклади Reading examples Writing examples Підтримувані формати tar Проблеми з Unicode Попередній розділ sqlite3 — DB-API 2.0 interface for SQLite databases Наступна тема The compression package This page Report a bug Improve this page Show source Show translation source « Навігація індекс модулі | наступний | попередній | Python » 3.15.2 documentation » The Python standard library » Стиснення та архівування даних | Theme | © Авторське право 2001 Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License. See History and License for more information. The Python Software Foundation is a non-profit corporation. Please donate. Востаннє оновлено лист. 19, 2026 (11:14 UTC). Found a bug ? Created using Sphinx 9.1.1.