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 details)
Built Distribution
sion-0.2.2-py3-none-any.whl
(12.2 kB
view details)
File details
Details for the file sion-0.2.2.tar.gz
.
File metadata
- Download URL: sion-0.2.2.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4d1e1ebf5e0ba2f513762348893c4b38a9caaf2d5da47b6b88c330a30aeaf9f |
|
MD5 | f8c724619e3c09123e3ee59aef54d578 |
|
BLAKE2b-256 | d7eaddf63715d41c4f9b2f68ee01eebc154aaf187047bf27b5d3b6e61d3ebd35 |
File details
Details for the file sion-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: sion-0.2.2-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9ad1f5c8108379de58b7b75ef8f5337e4ffc2c18e266f2d5474246e183d540e |
|
MD5 | e0b93cf65d34020829a64a34f6393ace |
|
BLAKE2b-256 | fc1fd8ae238d2d7b9f50e172f63f50103ec61930eb32f9e6d560a8154ec88f1c |