https://github.com/kamimura/py-sion
SION encoder/decoder for Python 3
https://github.com/kamimura/py-sion
python python3
Last synced: 5 months ago
JSON representation
SION encoder/decoder for Python 3
- Host: GitHub
- URL: https://github.com/kamimura/py-sion
- Owner: kamimura
- License: mit
- Created: 2018-07-27T08:04:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-04T03:58:23.000Z (almost 8 years ago)
- Last Synced: 2025-10-01T11:55:34.782Z (9 months ago)
- Topics: python, python3
- Language: Python
- Homepage: https://pypi.org/project/sion/
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py-sion
[SION](https://dankogai.github.io/SION/) deserializer/serializer for Python.
## Synopsis
stream
text
```python
import sion
#...
with open('spam.sion') as f:
obj = sion.load(f)
with open('eggs.sion', 'w') as f:
sion.dump(obj, f)
#...
```
bytes
```python
import sion
from urllib.request import urlopen
#...
with urlopen(ham) as res:
obj = load(res)
#...
```
string
```python
import sion
#...
spam = sion.loads('sion data')
eggs = sion.dumps(spam)
#...
```
[Here](http://sitekamimura.blogspot.com/search/label/SION) are some other examples.
## Installation
```sh
$ pip3 install sion
```