Module refinery.lib.seven

This module contains compression algorithms that were ported from the 7zip source code. Cython versions of these modules are available for improved performance. When Cython extensions have been compiled and installed, they will be used automatically. Otherwise, the pure Python implementations serve as a fallback.

Expand source code Browse git
"""
This module contains compression algorithms that were ported from the 7zip source code. Cython
versions of these modules are available for improved performance. When Cython extensions have been
compiled and installed, they will be used automatically. Otherwise, the pure Python implementations
serve as a fallback.
"""

Sub-modules

refinery.lib.seven.deflate

Structures for unpacking ZIP archives. This can cover a lot more than the built-in zipfile module, but it is incapable of creating ZIP archives.

refinery.lib.seven.huffman

Huffman decoder classes ported from 7zip.

refinery.lib.seven.lzx

This is a port of the LZX implementation in 7Zip to Python. A focus was on preserving the exact logic and few Python-specific optimizations have been …