uproot.LZMA — Uproot documentation

# uproot.LZMA

Defined in uproot.compression on line 207.

Inheritance order:
uproot.compression.Compression uproot.compression._DecompressLZMA

class uproot.compression.LZMA(level)
  Parameters:

    level (int, 0-9) – Compression level: 0 is uncompressed, 1 is minimally compressed, and 9 is maximally compressed.

  Represents the LZMA compression algorithm.

  Uproot uses `lzma` from the `cramjam` package.

## compress

LZMA.compress(data: bytes) → bytes

## from_code

Inherited from uproot.compression.Compression.

classmethod LZMA.from_code(code)

  Constructs a uproot.compression.Compression from a raw `fCompress` integer.

## from_code_pair

Inherited from uproot.compression.Compression.

classmethod LZMA.from_code_pair(algorithm, level)

  Constructs a uproot.compression.Compression from a pair of integers representing `algorithm` and `level`.

## code

Inherited from uproot.compression.Compression.

LZMA.code

  This uproot.compression.Compression as a raw `fCompress` integer.

## code_pair

Inherited from uproot.compression.Compression.

LZMA.code_pair

  This uproot.compression.Compression as a 2-tuple of integers representing algorithm and level.

## level

Inherited from uproot.compression.Compression.

LZMA.level

  0 is uncompressed, 1 is minimally compressed, and 9 is maximally compressed.

  Type:

    The compression level

## decompress

Inherited from uproot.compression._DecompressLZMA.

LZMA.decompress(data: bytes, uncompressed_bytes=None) → bytes