Lu-Yi-Hsun / lz-string-python

lz-string for python 2/3

Home Page:https://pypi.org/project/lzstring/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

lz-string for python 2/3

https://pypi.org/project/lzstring/

License:MIT License


Languages

Language:Python 100.0%