Skip to main content

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


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)

Uploaded Source

Built Distribution

pysmile-0.1-py2.7.egg (19.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page