lzstring
lz-string for python
Decision gist · record as of 2026-08-14
No. The package is dormant (last release June 2018), classifiers claim only Python 2.6–3.3 support, and actual compatibility with modern Python is unverified. High install friction from source distribution adds friction. While MIT-licensed and free of known vulnerabilities, the lack of maintenance and uncertain modern-Python support make it a poor choice for new projects. Consider only if you must interoperate with legacy systems already using this library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- High install friction from source distribution.
- Dormant maintenance: last release June 2018, last commit October 2023, with only 12 repository stars.
- Classifiers indicate Alpha status and support for Python 2.6–3.3.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2018-06-01 (2996 days) · last repo commit 2023-10-12 · 12 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 353,830 downloads/mo, #7,299 on PyPI
Alternatives
Verify before relying
pip install lzstring
import lzstring
x = lzstring.LZString()
compressed = x.compressToBase64(u'你好')
x.decompressFromBase64(compressed)- Whether the package actually works on Python versions beyond 3.3 despite modern Python support being unspecified
- Whether the source distribution requires compilation or has undocumented system dependencies
- Current maintenance status and willingness to accept pull requests or address issues
What it is and what it does
lzstring is a Python port of the LZ-String JavaScript compression library. It provides methods to compress and decompress text into various formats, including Base64, making it useful for reducing payload size when transmitting or storing text data. The package has no runtime dependencies and works with both Python 2 and 3, though its classifiers reflect only legacy Python versions (2.6–3.3).
The library is dormant: the latest release was June 2018, and while the repository shows a commit from October 2023, there has been no active development or maintenance for years. It remains available and functional for basic compression tasks, but the lack of recent updates means compatibility with modern Python versions is uncertain.
Use it for
- Compress Unicode text including non-ASCII characters for storage or transmission over bandwidth-constrained channels
- Interoperate with JavaScript applications using the original LZ-String library by compressing and decompressing shared data
- Reduce payload size in web APIs or data serialization where standard compression formats are not suitable
- Archive or deduplicate text-heavy datasets where LZ-String's algorithm offers acceptable compression ratios
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is dormant (last release June 2018), classifiers claim only Python 2.6–3.3 support, and actual compatibility with modern Python is unverified. High install friction from source distribution adds friction. While MIT-licensed and free of known vulnerabilities, the lack of maintenance and uncertain modern-Python support make it a poor choice for new projects. Consider only if you must interoperate with legacy systems already using this library.
Install
lzstring on PyPI
Before you install
High install friction from source distribution. Dormant maintenance: last release June 2018, last commit October 2023, with only 12 repository stars. Classifiers indicate Alpha status and support for Python 2.6–3.3.
License in practice
MIT license (permissive) imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install lzstring
import lzstring
x = lzstring.LZString()
compressed = x.compressToBase64(u'你好')
x.decompressFromBase64(compressed)
Verify before relying
- Whether the package actually works on Python versions beyond 3.3 despite modern Python support being unspecified
- Whether the source distribution requires compilation or has undocumented system dependencies
- Current maintenance status and willingness to accept pull requests or address issues
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 2,996 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 353,830 / month, #7,299 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.1Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3 |
Evidence: lzstring-1.0.4.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “lz-string compression python”
- lzstringCompresses and decompresses text using the LZ-String algorithm,…
- xpress9Xpress9 is a Python wrapper for Microsoft's Xpress9 compression…
- python-snappyPython binding for Google's Snappy compression library, providing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also python-neo-lzf · compressed-rtf · ncompress · python-lzf · unlzw3 · listcrunch · pyzstd · Flask-Compress · inflate64 · xpress9