Basic Usage
import seria
with open("tests/resources/good.xml", "rb") as f:
s = seria.load(f)
print s.dump('xml')
print s.dump('json')
print s.dump('yaml')
CLI Tool
Seria includes a useful command line tool.
cat tests/resources/good.xml | seria -y -
cat tests/resources/good.json | seria -j -
cat tests/resources/good.yaml | seria -x -
cat tests/resources/good.xml | seria -x - | seria -j - | seria -y -
Features
Support for (with a few limitations) json, yaml, xml
Installation
pip install seria
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
seria-0.1.5.tar.gz
(12.5 kB
view details)
File details
Details for the file seria-0.1.5.tar.gz.
File metadata
- Download URL: seria-0.1.5.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af82df19ed6e495725d73b12ac58f54323d630f0816102c23f4c5a69e3d5ce02
|
|
| MD5 |
10e9d42c61f74953bcb01c64ec05e065
|
|
| BLAKE2b-256 |
9bdfd1caa3eca7bfdcb736ca654ffb1a677657f3dd346ff0907053d49587c77e
|