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.
Source Distribution
sion-0.2.2.tar.gz
(11.0 kB
view hashes)
Built Distribution
sion-0.2.2-py3-none-any.whl
(12.2 kB
view hashes)