lz-string for python
Project Links
Meta
Author: Geza Kovacs
Classifiers
Development Status
- 3 - Alpha
Intended Audience
- Developers
Natural Language
- English
License
- OSI Approved :: MIT License
Programming Language
- Python
- Python :: 2
- Python :: 2.6
- Python :: 2.7
- Python :: 3
- Python :: 3.1
- Python :: 3.2
- Python :: 3.3
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
Files in release
No dependencies