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'你好') # 'gbyl9NIA'
>>> 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.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lzstring-1.0.3-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for lzstring-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d54dd5a5f86837ccfc1343cc9f1cb0674d2d6ebd4b49f6408c35104f0a996cb4
MD5 1c636543484629020a26432740f81443
BLAKE2b-256 2be006231b1114cae946b6d3505ab8157f7308b207e3f8e3eb58334769dab6c0

See more details on using hashes here.

File details

Details for the file lzstring-1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for lzstring-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 82a913b08f6eaacf584624e4cbd5e5c361b546d0f9ec5620760d2ca137926811
MD5 16cc5795f78b995b31b99ae795b787b0
BLAKE2b-256 bd4e0885ee80e75b709dfb0750dacfc9bd1bff37c591c777015d43d5679d60b0

See more details on using hashes here.

Supported by

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