timcogan / lzss

MIT License
2 stars 1 forks source link

Python LZSS

A simple Python implementation of the LZSS algorithm.

Please check out this blog post for a walk through of the code.

Install

pip install lzss-python

Use

>>> import lszz
>>> compressed = lzss.compress(b'my data my data my data')
>>> compressed
b'6\x9eD\x06C\t\xd0\xc2 \x80F\x80'
>>> lzss.decompress(compressed)
b'my data my data my data'