Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 397 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 397 Bytes

lz-string-python

LZ-based compression algorithm for Python 3

Based on the LZ-String javascript library (version 1.4.4)

http://pieroxy.net/blog/pages/lz-string/index.html

Example

>>> from lzstring import LZString
>>> string = "This is my compression test"
>>> compressed = LZString.compressToBase64(string)
>>> LZString.decompressFromBase64(compressed)