Agnostic Raw Data for Python
Project description
Agnostic Raw Data (ARD) for Python
What is ARD? See here.
The latest stable release of this library is available on PyPi:
python -m pip install ard
This library has three main features:
- Allows you to easily transmit ARD in several formats: YAML, JSON, XML, and
CBOR. Supports both encoding and decoding. Included is an
ardconv
CLI tool that can convert between all formats. - Enable support for decoding YAML with complex keys. As it stands, the otherwise excellent ruamel.yaml library will choke on complex keys.
- Support for ARD-compatible extensions to JSON (CJSON). This allows for round-tripping ARD through JSON without losing type information, including support for integers, byte arrays, and maps with non-string keys.
Python's dict
does not support un-hashable keys, making it difficult to work
with complex keys. For this reason we provide the ard.Map
class, which does
support un-hashable keys and is otherwise a drop-in replacement for dict
. It
will be used automatically when decoding, if necessary.
Documentation is a work in progress! For now check out test.py
for example use.
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
ard-0.0.11.tar.gz
(12.2 kB
view details)
Built Distribution
ard-0.0.11-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file ard-0.0.11.tar.gz
.
File metadata
- Download URL: ard-0.0.11.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f296fd19ddec3d4616102290834fc770f896f84ce9cc5ffe4323f918abf7e8 |
|
MD5 | 31fbc511cca4fd2ffedf33be6de38efe |
|
BLAKE2b-256 | ddb8e2981979426087912397157ecb864e842ebe78a8881457ce06df1e66d80f |
File details
Details for the file ard-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: ard-0.0.11-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3516747473a3ed3afb2cd33dc11f0b22a4f93713b7e491074398db530f0eb848 |
|
MD5 | c189d1c3d7c04182d5c14b25f58c7093 |
|
BLAKE2b-256 | ec72abfc67f64d781dc180253ab51e42630686654630f5aaf7f26177bc840721 |