PySmile
PySmile copied to clipboard
A Python library for encoding/decoding SMILE format data (libsmile)
The current release appears to be broken. On import I get: ``` File "/local/.../python3.7/site-packages/pysmile/encode.py", line 804 print repr(a) ^ SyntaxError: invalid syntax ```
When binary data in found on decoding, decoding is interrupted and the JSONin the output buffer is truncated. increasing the index allow the decoding to continue, obviously the binary data...
Hi, I have a project on github called PySmiles (https://github.com/pckroon/pysmiles/), and since our packages are named very similar I thought it would be decent to mention your package in my...
Would be nice with Python 3 support.
Two SMILE strings encode two similar objects, but `good` is decoded correctly while `bad` is not. ``` >>> good = ':)\n\x05\xfa\x84prova\xfa\x86version\xc4\x84stateCopen\x87settings\xfa\x92index.creation_dateL1460931472628\x97index.number_of_replicas@1\x95index.number_of_shards@5\x89index.uuidU4AyLlTWqQ8aHz4VULvVABA\x94index.version.createdF2030199\xfb\x87mappings\xf8\xfa\x86company\xfa\x89properties\xfa\x88someField\xfa\x83typeEstring\xfb\xfb\xfb\xfb\xf9\x86aliases\xfa\xfb\xfb\xfb' >>> bad = ':)\n\x05\xfa\x84prova\xfa\x86version\xc4\x84stateCopen\x87settings\xfa\xabindex.analysis.analyzer.startswith.tokenizerFkeyword\x92index.creation_dateL1460931374437\x97index.number_of_replicas@1\x95index.number_of_shards@5\x89index.uuidUaEmQxmlGQcyECp1LmCkCcw\x94index.version.createdF2030199\xfb\x87mappings\xf8\xfa\x86company\xfa\x89properties\xfa\x88someField\xfa\x83typeEstring\xfb\xfb\xfb\xfb\xf9\x86aliases\xfa\xfb\xfb\xfb' >>> pysmile.decode(good) {u'prova': {u'aliases': {},...