Skip to main content

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)

Uploaded Source

Built Distribution

lzstring-1.0.2-py2.py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page