Registry / serialization / pylzss

pylzss

JSON →
library0.3.8pypypiunverified

pylzss is a Python library designed for decoding and encoding data compressed with the LZSS algorithm. It provides efficient handling of LZSS-compressed streams, often found in embedded systems or older file formats. The current version is 0.3.8, with recent releases focusing on bug fixes, build system improvements, and wider platform support.

pip install pylzss
INSTALL
IMPORT
SIG · PYLZSS
P
pylzss
serializationpythonv0.3.8
Install
1.8s avg
Import
—
Disk
17MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.3.8 · pip install
no network on importno background threads
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
glibc
py 3.10
✓ —
✓ 1.6s
py 3.11
✓ —
✓ 1.8s
py 3.12
✓ —
✓ 1.68s
py 3.13
✕ build_error
✕ build_error
py 3.9
✓ —
✓ 1.95s
17MB installed
● package 17MB
Code
Verified usage

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

LzssDecoder
✓ from pylzss import LzssDecoder
✗ from pylzss.include import LzssDecoder
LzssEncoder
✓ from pylzss import LzssEncoder

This quickstart demonstrates how to use `pylzss` to compress and decompress a byte string. It initializes an `LzssEncoder` to compress the `original_data` and then uses an `LzssDecoder` to reconstruct it, verifying that the decoded data matches the original.

from pylzss import LzssEncoder, LzssDecoder # Example data original_data = b"A Python library for decoding/encoding LZSS-compressed data. " * 5 # Encode the data encoder = LzssEncoder() encoded_data = encoder.encode(original_data) print(f"Original size: {len(original_data)} bytes") print(f"Encoded size: {len(encoded_data)} bytes") # Decode the data decoder = LzssDecoder() decoded_data = decoder.decode(encoded_data) print(f"Decoded size: {len(decoding_data)} bytes") assert original_data == decoded_data print("Encoding and decoding successful!")
Debug
Known issues
breakingVersion 0.3.5 was pulled from PyPI due to critical issues. Attempting to install or use it will lead to unexpected behavior or installation failures.
fix
Always use `pylzss` version 0.3.6 or newer. If you have 0.3.5 installed, upgrade immediately with `pip install --upgrade pylzss`.
affects: 0.3.5
breakingVersion 0.3.3 was incorrectly versioned and never properly released to PyPI. It should be avoided as it may cause installation problems or contain critical bugs.
fix
Do not attempt to use or install `pylzss==0.3.3`. Use `pylzss==0.3.4` or any newer version.
affects: 0.3.3
gotchaVersions of `pylzss` older than 0.3.1 can raise a `SystemError` when used with Python 3.10 or newer due to API changes in Python's C extension handling.
fix
Ensure you are using `pylzss` version 0.3.1 or newer. Upgrade with `pip install --upgrade pylzss` if you are on an older version and Python 3.10+.
affects: <0.3.1
Upgrade
Version history
0.3.8latest on PyPI · released May 9, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
pylzss — pip install pylzss · libregistry