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