Data Compression and Archiving — Python documentation
From Get docs
Python/docs/3.7/library/archiving
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.