Skip to content

kamimura/py-sion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SION encoder/decoder for Python 3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published