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'你好') # 'gbyl9NI='
>>> x.decompressFromBase64(compressed) # '你好'

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.4.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file lzstring-1.0.4.tar.gz.

File metadata

  • Download URL: lzstring-1.0.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lzstring-1.0.4.tar.gz
Algorithm Hash digest
SHA256 1afa61e598193fbcc211e0899f09a9679e33f9102bccc37fbfda0b7fef4d9ea2
MD5 5cb2eaeae127746ab5ed2e494d1ed5fb
BLAKE2b-256 ab0c28347673b45e5f0975cdf1f6d69ede6ad049be873194c4e164d79aecd34c

See more details on using hashes here.

Supported by

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