See the test.py script in this directory for an example of how to use the lzss package. The two functions lzss.compress(data=x), lzss.decompress(data=x) can accept either str or bytes input; str input is internally converted to a byte string using UTF-8 encoding. The output is always a bytes object. -- Julian Gilbey , Tue, 29 Dec 2020 22:31:31 +0000