Thecompression package¶
Added in version 3.14.
Thecompression package contains the canonical compression modulescontaining interfaces to several different compression algorithms. Some ofthese modules have historically been available as separate modules; those willcontinue to be available under their original names for compatibility reasons,and will not be removed without a deprecation cycle. The use of modules incompression is encouraged where practical.
compression.bz2– Re-exportsbz2compression.gzip– Re-exportsgzipcompression.lzma– Re-exportslzmacompression.zlib– Re-exportszlibcompression.zstd– Wrapper for the Zstandard compression library