Skip to main content

loading and dumping a SION format file

Project description


SION deserializer/serializer for Python.




import sion
with open('spam.sion') as f:
    obj = sion.load(f)
with open('eggs.sion', 'w') as f:     
    sion.dump(obj, f)


import sion
from urllib.request import urlopen
with urlopen(ham) as res:
    obj = load(res)


import sion
spam = sion.loads('sion data')
eggs = sion.dumps(spam)

Here are some other examples.


$ pip3 install sion

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sion, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size sion-0.2.2-py3-none-any.whl (12.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sion-0.2.2.tar.gz (11.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page