Skip to main content

loading and dumping a SION format file

Project description

py-sion

SION deserializer/serializer for Python.

Synopsis

stream

text

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

bytes

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

string

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

Usage

$ 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.

Source Distribution

sion-0.2.1.tar.gz (10.9 kB view hashes)

Uploaded Source

Built Distribution

sion-0.2.1-py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 3

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