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)
#...

Here are some other examples.

Installation

$ 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 hashes
Filename, size sion-0.2.2.tar.gz (11.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page