This document is for an old version of Python that is no longer supported.
You should upgrade and read the
Python documentation for the current stable release.
12. Data Compression and Archiving¶
The modules described in this chapter support data compression with the zlib,
gzip, and bzip2 algorithms, and the creation of ZIP- and tar-format archives.
See also Archiving operations provided by the shutil
module.