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.zstdCompression compatible with the Zstandard formatzlibCompression compatible with gzipgzipSupport for gzip filesbz2Support for bzip2 compressionlzmaCompression using the LZMA algorithmzipfileWork with ZIP archivestarfileRead and write tar archive files