Skip to main content

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

Metadata

Release files for lzstring 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lzstring 1.0.4
File Size Uploaded Provenance
lzstring-1.0.4.tar.gz 4.3 kB Without provenance Details

Release files / lzstring-1.0.4.tar.gz

Download URL lzstring-1.0.4.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1afa61e598193fbcc211e0899f09a9679e33f9102bccc37fbfda0b7fef4d9ea2
BLAKE2b-256 checksum
How to use checksums
ab0c28347673b45e5f0975cdf1f6d69ede6ad049be873194c4e164d79aecd34c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for lzstring 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page