13. 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.
- 13.1.
zlib
— Compression compatible with gzip - 13.2.
gzip
— Support for gzip files - 13.3.
bz2
— Support for bzip2 compression - 13.4.
lzma
— Compression using the LZMA algorithm - 13.5.
zipfile
— Work with ZIP archives - 13.6.
tarfile
— Read and write tar archive files