Staging: this is not the live site, pydocs.org.
Data Compression and Archiving lzma Interface to the liblzma compression library.
This module provides a class for reading and writing compressed files,
classes for incremental (de)compression, and convenience functions for
one-shot (de)compression.
These classes and functions support both the XZ and legacy LZMA
container formats, as well as raw compressed data streams. © Python Software Foundation. PSF License Version 2 · Official docs ↗
Symbols in lzma c CHECK_UNKNOWN The integrity check used by a stream could not yet be determined. f FORMAT_RAW A raw data stream, not using any container format. l LZMACompressor Create a compressor object for compressing data incrementally. LZMADecompressor Create a decompressor object for decompressing data incrementally. LZMAFile A file object providing transparent LZMA (de)compression. m MF_BT2 Match finders that may be used as the mf option of a filter specifier (see Specifying custom filter chains). MF_BT3 Match finders that may be used as the mf option of a filter specifier (see Specifying custom filter chains). MF_BT4 Match finders that may be used as the mf option of a filter specifier (see Specifying custom filter chains). MF_HC3 Match finders that may be used as the mf option of a filter specifier (see Specifying custom filter chains). MF_HC4 Match finders that may be used as the mf option of a filter specifier (see Specifying custom filter chains). MODE_FAST Compression modes that may be used as the mode option of a filter specifier (see Specifying custom filter chains). MODE_NORMAL Compression modes that may be used as the mode option of a filter specifier (see Specifying custom filter chains). o open Open an LZMA-compressed file in binary or text mode. p PRESET_DEFAULT The default compression preset, equivalent to preset level 6. PRESET_EXTREME A flag that may be bitwise OR-ed with a preset level (0 to 9) to select a slower but more thorough variant of that preset.
Python docs © Python Software Foundation · Examples CC0 ·
Source on GitHub · Not affiliated with the PSF