Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtluckie/seria
https://github.com/rtluckie/seria
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rtluckie/seria
- Owner: rtluckie
- License: mit
- Created: 2015-03-15T20:30:50.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2016-05-09T17:25:56.000Z (over 8 years ago)
- Last Synced: 2024-04-28T17:46:30.431Z (5 months ago)
- Language: Python
- Size: 368 KB
- Stars: 118
- Watchers: 6
- Forks: 11
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Seria: Serialization for Humans
===============================
.. image:: https://img.shields.io/pypi/v/seria.svg
:target: https://pypi.python.org/pypi/seria.. image:: https://img.shields.io/pypi/dm/seria.svg
:target: https://pypi.python.org/pypi/seria.. image:: https://travis-ci.org/rtluckie/seria.svg?branch=master
:target: https://travis-ci.org/rtluckie/seriaBasic Usage
-----------.. code-block:: python
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... code-block:: bash
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
------------.. code-block:: bash
pip install seria