Registry / serialization / lzallright

lzallright

JSON โ†’
library0.2.6pypypiunverified

A Python 3.8+ binding for the LZ๐Ÿ‘Œ(lzokay) compression library, providing compress and decompress functions with optional compression level. Version 0.2.6 adds experimental free-threading (nogil) support. Released every few months.

pip install lzallright
INSTALL
IMPORT
SIG ยท LZALLRIGHT
L
lzallright
serializationpythonv0.2.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths โ€” ran on the pinned version, not inferred.

compress
โœ“ from lzallright import compress
โœ— from lzallright import compress
decompress
โœ“ from lzallright import decompress
โœ— from lzallright import decompress
LZOCompressor
โœ“ from lzallright import LZOCompressor
โœ— from lzallright import LZOCompressor

Compress and decompress bytes with lzallright.

from lzallright import compress, decompress original = b"Hello, world! " * 100 compressed = compress(original, level=6) decompressed = decompress(compressed) assert original == decompressed print("Success!")
Debug
Known issues
gotchacompress() returns bytes, not string. decompress() expects bytes.
fix
Ensure input/output are bytes objects.
affects: all
gotchaCompression level must be between 0 and 9 inclusive. Out-of-range values may raise ValueError.
fix
Use level in range(0,10).
affects: all
gotchaThe library requires Rust toolchain to build from source (sdist). Binary wheels are available for many platforms but not all.
fix
Install from PyPI binary wheel; if building from source, install Rust (rustc 1.66+).
affects: all
Upgrade
Version history
0.2.6latest on PyPI ยท released Jun 27, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits ยท last 30 days
node
34
Resources
lzallright โ€” pip install lzallright ยท libregistry