Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Serialization for Humans

Project description

https://img.shields.io/pypi/v/seria.svg https://img.shields.io/pypi/dm/seria.svg https://travis-ci.org/rtluckie/seria.svg?branch=master

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for seria, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size seria-0.1.5.tar.gz (12.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page