Convert many serialization formats to many formats
Project description
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'))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file roundhouse-0.2.1.tar.gz.
File metadata
- Download URL: roundhouse-0.2.1.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2669b446edfa7052a0e67c0cbb8137e05a7367166af7084c721ab466e8117fcd
|
|
| MD5 |
e3c2c10822755752b5f36aee1a7d3008
|
|
| BLAKE2b-256 |
ff6fc369d4edb0af121570934c1f1d79f96d82c85464e9fd7d03a275f1c503fa
|
File details
Details for the file roundhouse-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: roundhouse-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b583b3c7cc83fa39694444537272911caec06dc18d68ddaeca213546b7e4bd35
|
|
| MD5 |
faa72009d160cee8d75d620d9e8231a4
|
|
| BLAKE2b-256 |
21d9f61882efef9c773552de8f3211936adaaec4d1dc47920c2060ca3a696f78
|