{"id":27932,"library":"lzallright","title":"lzallright - Python bindings for LZOKAY compression","description":"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.","status":"active","version":"0.2.6","language":"python","source_language":"en","source_url":"https://github.com/vlaci/lzallright","tags":["compression","lzokay","lzallright","python-bindings","rust"],"install":[{"cmd":"pip install lzallright","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"compress","correct":"from lzallright import compress"},{"note":"","wrong":"","symbol":"decompress","correct":"from lzallright import decompress"}],"quickstart":{"code":"from lzallright import compress, decompress\n\noriginal = b\"Hello, world! \" * 100\ncompressed = compress(original, level=6)\ndecompressed = decompress(compressed)\nassert original == decompressed\nprint(\"Success!\")","lang":"python","description":"Compress and decompress bytes with lzallright."},"warnings":[{"fix":"Ensure input/output are bytes objects.","message":"compress() returns bytes, not string. decompress() expects bytes.","severity":"gotcha","affected_versions":"all"},{"fix":"Use level in range(0,10).","message":"Compression level must be between 0 and 9 inclusive. Out-of-range values may raise ValueError.","severity":"gotcha","affected_versions":"all"},{"fix":"Install from PyPI binary wheel; if building from source, install Rust (rustc 1.66+).","message":"The library requires Rust toolchain to build from source (sdist). Binary wheels are available for many platforms but not all.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install lzallright' in the correct virtual environment.","cause":"Library not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'lzallright'"},{"fix":"Verify compressed data integrity; ensure you pass the exact bytes returned by compress().","cause":"Corrupt or incomplete compressed bytes passed to decompress().","error":"ValueError: compressed data truncated"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}