{"id":21821,"library":"python-lzf","title":"python-lzf","description":"Python C extension for the LZF compression algorithm, providing fast compression/decompression. Current version 0.2.6, last updated in 2013 (abandoned). Offers a simple API with compress and decompress functions. Best for small data or where LZF speed is needed.","status":"abandoned","version":"0.2.6","language":"python","source_language":"en","source_url":"http://github.com/teepark/python-lzf","tags":["compression","lzf","c-extension","abandoned"],"install":[{"cmd":"pip install python-lzf","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Module provides compress/decompress functions directly.","symbol":"lzf","correct":"import lzf"}],"quickstart":{"code":"import lzf\ndata = b'Hello, World! * 100'\ncompressed = lzf.compress(data)\ndecompressed = lzf.decompress(compressed)\nprint('OK' if data == decompressed else 'FAIL')","lang":"python","description":"Basic compress and decompress usage."},"warnings":[{"fix":"Consider alternatives like lz4, zstandard, or python-blosc.","message":"Library is abandoned; no updates since 2013. May break on newer Python versions (e.g., Python 3.12+).","severity":"gotcha","affected_versions":">=3.12"},{"fix":"Encode strings to bytes first: data.encode('utf-8').","message":"Compresses only bytes, not strings. Passing str will raise TypeError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run pip install python-lzf, or install from source if not on PyPI.","cause":"Library not installed or Python cannot find it.","error":"ImportError: No module named lzf"},{"fix":"Install liblzf via system package manager (e.g., apt-get install liblzf-dev on Debian/Ubuntu).","cause":"Missing liblzf system library.","error":"ImportError: liblzf.so.1: cannot open shared object file"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}