The :mod:`!compression` package
Python 3.14 Docs · نسخهٔ 3.14.10 · PSF License
The :mod:!compression package
The !compression package contains the canonical compression modules containing interfaces to several different compression algorithms. Some of these modules have historically been available as separate modules; those will continue to be available under their original names for compatibility reasons, and will not be removed without a deprecation cycle. The use of modules in !compression is encouraged where practical.
!compression.bz2-- Re-exportsbz2!compression.gzip-- Re-exportsgzip!compression.lzma-- Re-exportslzma!compression.zlib-- Re-exportszlibcompression.zstd-- Wrapper for the Zstandard compression library