A simple Python implementation of the LZSS algorithm.
Please check out this blog post for a walk through of the code.
pip install lzss-python
>>> 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'