lzma
Stdlib — CompressionPython 2.0+Intermediate
Read and write LZMA/XZ-compressed files
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import lzma print(f"Module: lzma") print(f"Contents: {dir(lzma)[:10]}")
The lzma module is part of Python's standard library. Read and write LZMA/XZ-compressed files.
Try in PlaygroundTags
stdlibcompressionarchive