Tools for working with the SMILE data format
Project description
Encode/Decode SMILE format objects
Based on https://github.com/brianm/libsmile
Install:
python setup.py clean build test && python setup.py install
Example Usage:
>>> import pysmile >>> d = open('test/data/smile/test1.smile', 'rb').read() >>> print repr(d) ':)\n\x03\xfa\x87test key#\x88nullField!\x82foo\xc2\x83foo2\xfa\x80a\xc6\xfb\xc2a\xc3\xa3b$\n\x85\x802\xf8\xc2\xc4\xc6\xf9\x84"foo"Ffoo\nbar\xfb' >>> print pysmile.decode(d) {u'"foo"': u'foo\nbar', u'2': [1, 2, 3], u'a\xe3b': -323, u'foo': 1, u'foo2': {u'a': 3}, u'nullField': None, u'test key': True}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysmile-0.1.tar.gz
(17.8 kB
view hashes)
Built Distribution
pysmile-0.1-py2.7.egg
(19.2 kB
view hashes)