Skip to main content
Help us improve Python packaging – donate today!

lz-string for python

Project Description

lz-string for python 2/3

Based on the LZ-String javascript found here:


>>> import lzstring
>>> x = lzstring.LZString()
>>> compressed = x.compressToBase64(u'你好') # 'gbyl9NIA'
>>> x.decompressFromBase64(compressed) # '你好'


$ pip install lzstring

Release history Release notifications

This version
History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
lzstring-1.0.3-py2.py3-none-any.whl (5.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jun 8, 2015
lzstring-1.0.3.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None Jun 8, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page