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.
compression packagecompression.zstd — Compression compatible with the Zstandard format zlib — Compression compatible with gzipgzip — 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
© 2001–2025 Python Software Foundation
Licensed under the PSF License.
https://docs.python.org/3.14/library/archiving.html