{"id":7584,"library":"pylzss","title":"pylzss - LZSS Compression Library","description":"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.","status":"active","version":"0.3.8","language":"python","source_language":"en","source_url":"https://github.com/m1stadev/pylzss","tags":["compression","lzss","data-compression","binary-data"],"install":[{"cmd":"pip install pylzss","lang":"bash","label":"Install pylzss"}],"dependencies":[],"imports":[{"wrong":"from pylzss.include import LzssDecoder","symbol":"LzssDecoder","correct":"from pylzss import LzssDecoder"},{"symbol":"LzssEncoder","correct":"from pylzss import LzssEncoder"}],"quickstart":{"code":"from pylzss import LzssEncoder, LzssDecoder\n\n# Example data\noriginal_data = b\"A Python library for decoding/encoding LZSS-compressed data. \" * 5\n\n# Encode the data\nencoder = LzssEncoder()\nencoded_data = encoder.encode(original_data)\n\nprint(f\"Original size: {len(original_data)} bytes\")\nprint(f\"Encoded size: {len(encoded_data)} bytes\")\n\n# Decode the data\ndecoder = LzssDecoder()\ndecoded_data = decoder.decode(encoded_data)\n\nprint(f\"Decoded size: {len(decoding_data)} bytes\")\nassert original_data == decoded_data\nprint(\"Encoding and decoding successful!\")\n","lang":"python","description":"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."},"warnings":[{"fix":"Always use `pylzss` version 0.3.6 or newer. If you have 0.3.5 installed, upgrade immediately with `pip install --upgrade pylzss`.","message":"Version 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.","severity":"breaking","affected_versions":"0.3.5"},{"fix":"Do not attempt to use or install `pylzss==0.3.3`. Use `pylzss==0.3.4` or any newer version.","message":"Version 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.","severity":"breaking","affected_versions":"0.3.3"},{"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+.","message":"Versions 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.","severity":"gotcha","affected_versions":"<0.3.1"}],"env_vars":null,"search_vec":"'0.3.8':43 'algorithm':20 'binari':64 'binary-data':63 'bug':49 'build':51 'compress':3,16,28,58,62 'current':40 'data':15,61,65 'data-compress':60 'decod':12 'design':10 'effici':23 'embed':33 'encod':14 'file':37 'fix':50 'focus':47 'format':38 'found':31 'handl':24 'improv':53 'librari':4,9 'lzss':2,19,27,59 'lzss-compress':26 'often':30 'older':36 'platform':56 'provid':22 'pylzss':1,5 'python':8 'recent':45 'releas':46 'stream':29 'support':57 'system':34,52 'version':41 'wider':55","created_at":"2026-04-16T14:04:38.628455+00:00","updated_at":"2026-04-16T14:04:38.628455+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'pylzss'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.3.8","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/m1stadev/pylzss","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pylzss/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}