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"你好") # u'gbyl9NIA' >>> x.decompressFromBase64(compressed) # u'\u4f60\u597d'
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.2.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for lzstring-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd93ffb6e854390d61c72360aff164fb83665a01485e77758f46d29227227e2 |
|
MD5 | 338a45faa128326cc9574f1b159aa798 |
|
BLAKE2b-256 | 4b776eca8acbe040802a281332a8c309a428558d90652949743b7d5acad1ab5f |