Skip to main content
https://img.shields.io/pypi/v/roundhouse.svg https://img.shields.io/travis/nick-allen/python-roundhouse.svg Documentation Status

Convert many serialization formats to many formats


Installation

Install CLI bundled with base package

Comes with just JSON and Pickle serializers by default, no external dependencies

pip install roundhouse

Install one or more additional serializers and their dependencies

pip install roundhouse[yaml] roundhouse[msgpack] ...

Or install all builtin serializers and dependencies bundled with core package

pip install roundhouse[all]

Additional serializer plugins can be published and installed via pypi/pip using the roundhouse setuptools entrypoint pointing to module/package containing additional serializer classes

Usage

CLI

The rh CLI command is installed automatically, and defaults to reading from stdin and writing stdout

Run rh --help for full usage instructions

echo '{"root": {"nested": {"key": "value"}}}' | rh -i json -o xml

<?xml version="1.0" encoding="utf-8"?>
<root><nested><key>value</key></nested></root>

Python

Data is serialized/deserialized to and from dict instances

Other data types may be supported depending on the serializer

Use the roundhouse.serialize and roundhouse.deserialize functions with target format

from roundhouse import serialize, deserialize

data = deserialize('{"root": {"nested": {"key": "value"}}}', 'json')
print(serialize(data, 'xml'))

Metadata

Release files for roundhouse 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roundhouse 0.2.1
File Size Uploaded Provenance
roundhouse-0.2.1.tar.gz 14.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for roundhouse 0.2.1
File Interpreter ABI Platform
roundhouse-0.2.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 25.8 kB

Release files / roundhouse-0.2.1.tar.gz

Download URL roundhouse-0.2.1.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2669b446edfa7052a0e67c0cbb8137e05a7367166af7084c721ab466e8117fcd
BLAKE2b-256 checksum
How to use checksums
ff6fc369d4edb0af121570934c1f1d79f96d82c85464e9fd7d03a275f1c503fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / roundhouse-0.2.1-py2.py3-none-any.whl

Download URL roundhouse-0.2.1-py2.py3-none-any.whl
Size 11.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b583b3c7cc83fa39694444537272911caec06dc18d68ddaeca213546b7e4bd35
BLAKE2b-256 checksum
How to use checksums
21d9f61882efef9c773552de8f3211936adaaec4d1dc47920c2060ca3a696f78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for roundhouse 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page