Skip to content

Conversation

gkovacs
Copy link

@gkovacs gkovacs commented Jun 8, 2015

I uploaded the resulting package to https://pypi.python.org/pypi/lzstring/ - let me know your pip username so I can give ownership to you.

gkovacs and others added 17 commits June 7, 2015 16:51
Require at least v0.14.0 of future. Added travis config.
…n Python.

The original Python code simply copies the structure of the original JS code.
However, the JS code only works, because at the end of the array, when it increases the data.index value beyond its length, the str.charCodeAt(index) function returns NaN. The not value is in the next iteration combined using bitewise AND operator with data.position to produce numerical 0.
This change reproduces this ingenious /s JS behaviour in Python.
Fixes decompression of base64 strings originated from JS compressor i…
Added MANIFEST.in file for PyPI packaging of licence and readme.
compressToUint8Array
decompressToUint8Array

This is the best I could do without doing a bigger rewrite so lzstringn
doesn't use the str() type and use bytes() (or another type).  str()
have lot of issues with conversions.
Implement Uint8 encoding/decoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants