| CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/html
last-modified: Tue, 30 Dec 2025 06:26:47 GMT
etag: "695370a7-56ba"
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
content-encoding: gzip
via: 1.1 varnish, 1.1 varnish
accept-ranges: bytes
age: 0
date: Wed, 31 Dec 2025 02:16:11 GMT
x-served-by: cache-lga21954-LGA, cache-bom-vanm7210089-BOM
x-cache: HIT, MISS
x-cache-hits: 254, 0
x-timer: S1767147371.969777,VS0,VE204
vary: Accept-Encoding
content-length: 4338
Data Compression and Archiving — Python 3.14.2 documentation
Navigation
Data Compression and Archiving¶
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 Archiving operations provided by the shutil
module.
- The
compressionpackage compression.zstd— Compression compatible with the Zstandard formatzlib— Compression compatible with gzipgzip— Support for gzip filesbz2— Support for bzip2 compressionlzma— Compression using the LZMA algorithmzipfile— Work with ZIP archivestarfile— Read and write tar archive files
Previous topic
Next topic
This page
«
Navigation
© Copyright 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.
Last updated on Dec 30, 2025 (06:25 UTC). Found a bug?
Created using Sphinx 9.0.4.
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.
Last updated on Dec 30, 2025 (06:25 UTC). Found a bug?
Created using Sphinx 9.0.4.