Skip to main content

PySmile

Encode/Decode SMILE format objects

Based on:

http://wiki.fasterxml.com/SmileFormat

and

https://github.com/brianm/libsmile

Install:

python setup.py clean build test && python setup.py install

or from pypi (https://pypi.python.org/pypi/pysmile):

pip install pysmile

Usage:

>>> import pysmile
>>> o = {'a': 1, 'b': [2, 3, 4], 'c': {'d': {'e': 4.20}}}
>>> b = pysmile.encode(o)
>>> print repr(b)
':)\n\x03\xfa\x80a\xc2\x80c\xfa\x80d\xfa\x80e(fL\x19\x04\x04\xfb\xfb\x80b\xf8\xc4\xc6\xc8\xf9\xfb'

>>> d = pysmile.decode(b)
>>> print d
{u'a': 1, u'b': [2, 3, 4], u'c': {u'd': {u'e': 4.2}}}

>>> assert d == o

Metadata

Release files for pysmile 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysmile 0.2
File Size Uploaded Provenance Actions
pysmile-0.2.tar.gz 16.9 kB Without provenance Details for pysmile-0.2.tar.gz

Release files / pysmile-0.2.tar.gz

Download URL pysmile-0.2.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
46b03718aeacbde463d5a6c84e845b1e80550c3d1af3b28f584a4ed0d33a95a5
BLAKE2b-256 checksum
How to use checksums
0bb162338ea7f564e2e327be0895f1558adb8b3fca25c3ebfdb9011c585e45f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pysmile 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page