CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/html
last-modified: Thu, 31 Jul 2025 07:59:16 GMT
etag: "688b2254-515a"
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: Fri, 01 Aug 2025 02:06:43 GMT
x-served-by: cache-lga21954-LGA, cache-hyd1100021-HYD
x-cache: HIT, MISS
x-cache-hits: 215, 0
x-timer: S1754014004.762760,VS0,VE207
vary: Accept-Encoding
content-length: 4189
Data Compression and Archiving — Python 3.13.5 documentation
Navigation
Data Compression and Archiving¶
The modules described in this chapter support data compression with the zlib,
gzip, bzip2 and lzma algorithms, and the creation of ZIP- and tar-format
archives. See also Archiving operations provided by the shutil
module.
zlib
— 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-2025, 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 Jul 31, 2025 (07:57 UTC). Found a bug?
Created using Sphinx 8.2.3.
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 Jul 31, 2025 (07:57 UTC). Found a bug?
Created using Sphinx 8.2.3.