lz-string for python
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lzstring-1.0.4.tar.gz
(4.3 kB
view hashes)