lz-string-python
lz-string for python 2/3
Based on the LZ-String javascript found here: http://pieroxy.net/blog/pages/lz-string/index.html
Example
>>> import lzstring >>> x = lzstring.LZString() >>> compressed = x.compressToBase64(u'ä½ å¥½') # 'gbyl9NI=' >>> x.decompressFromBase64(compressed) # 'ä½ å¥½'
Installation
$ pip install lzstring