PyDocs

Nav

Data Compression and Archiving

LZMADecompressor

lzma

class
  • LZMADecompressor(format=FORMAT_AUTO, memlimit=None, filters=None)
Create a decompressor object for decompressing data incrementally.

  format
    Specifies the container format of the input stream.  If this is
    FORMAT_AUTO (the default), the decompressor will automatically detect
    whether the input is FORMAT_XZ or FORMAT_ALONE.  Streams created with
    FORMAT_RAW cannot be autodetected.
  memlimit
    Limit the amount of memory used by the decompressor.  This will cause
    decompression to fail if the input cannot be decompressed within the
    given limit.
  filters
    A custom filter chain.  This argument is required for FORMAT_RAW, and
    not accepted with any other format.  When provided, this should be a
    sequence of dicts, each indicating the ID and options for a single
    filter.

For one-shot decompression, use the decompress() function instead.
Members of LZMADecompressor

c

check
ID of the integrity check used by the input stream.

d

decompress
Decompress *data*, returning uncompressed data as bytes.

e

eof
True if the end-of-stream marker has been reached.

n

needs_input
True if more input is needed before more decompressed data can be produced.

u

unused_data
Data found after the end of the compressed stream.
0 Examples
No examples for lzma/LZMADecompressor.
See Also
No see-alsos for lzma/LZMADecompressor
0 Notes
No notes for LZMADecompressor