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-formatarchives. See alsoArchiving operations provided by theshutil
module.
- The
compression
package compression.zstd
— Compression compatible with the Zstandard formatzlib
— Compression compatible withgzipgzip
— Support forgzip filesbz2
— Support forbzip2 compressionlzma
— Compression using the LZMA algorithmzipfile
— Work with ZIP archivestarfile
— Read and write tar archive files