Navigation
- index
- modules |
- next |
- previous |
- Python »
- 3.16.0a2 documentation »
- The Python standard library »
- Data Compression and Archiving »
- The
compressionpackage - |
- Theme |
The compression package¶
Added in version 3.14.
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-exportsbz2compression.gzip– Re-exportsgzipcompression.lzma– Re-exportslzmacompression.zlib– Re-exportszlibcompression.zstd– Wrapper for the Zstandard compression library
Previous topic
Data Compression and Archiving
Next topic
compression.zstd — Compression compatible with the Zstandard format
This page
«Navigation
- index
- modules |
- next |
- previous |
- Python »
- 3.16.0a2 documentation »
- The Python standard library »
- Data Compression and Archiving »
- The
compressionpackage - |
- Theme |
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Nov 29, 2026 (04:54 UTC). Found a bug?
Created using Sphinx 9.1.1.