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.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for lzstring-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd3cf2699a5dac0a88c915ba84073d7c3bcf940dc4c8c0c73a29cca3d3b7502a |
|
MD5 | 7c40d89f332a383dca1fe821508bf776 |
|
BLAKE2b-256 | 99f13df813e2cd9f9440ad278aa52cdd0bbc20f658595bf684585b9bfe370008 |