Registry / serialization / pyliblzfse

pyliblzfse

JSON →
library0.4.1pypypiunverified

pyliblzfse provides Python bindings for the LZFSE reference implementation, offering compression and decompression using Apple's LZFSE algorithm. Version 0.4.1 is the latest release. The library is in maintenance mode with sparse updates.

pip install pyliblzfse
INSTALL
IMPORT
SIG · PYLIBLZFSE
P
pyliblzfse
serializationpythonv0.4.1
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compress
from pyliblzfse import compress
from liblzfse import compress
The module is named pyliblzfse, not liblzfse.
decompress
from pyliblzfse import decompress

Compress and decompress bytes using LZFSE. Both compress and decompress expect bytes input and return bytes.

from pyliblzfse import compress, decompress original = b"Hello, world!" * 1000 compressed = compress(original) decompressed = decompress(compressed) assert original == decompressed print("LZFSE compression works!")
Debug
Known issues
gotchacompress() and decompress() expect bytes, not strings. Passing str will raise TypeError.
fix
Always encode strings to bytes before calling compress, e.g., b'text' or 'text'.encode()
affects: all
deprecatedLibrary updates are infrequent; may not support newer Python versions. Last release 2018.
fix
Consider alternatives like pyLZFSE or using ctypes bindings for newer Python.
affects: >=0.4.0
gotchaCompression output may be larger than input for small data. LZFSE is optimized for larger blocks.
fix
Do not assume compression ratio for small inputs; use with large data or benchmark.
affects: all
Upgrade
Version history
0.4.1latest on PyPI · released May 3, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
pyliblzfse — pip install pyliblzfse · libregistry