Module refinery.lib.seven

This module contains compression algorithms that were ported from the 7zip source code. They are pure Python implementations, so their performance is fairly poor, but at the time of writing there is no reasonable alternative if we want to use these algorithms.

Expand source code Browse git
"""
This module contains compression algorithms that were ported from the 7zip source code. They are
pure Python implementations, so their performance is fairly poor, but at the time of writing there
is no reasonable alternative if we want to use these algorithms.
"""

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 …