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
ardconvCLI 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.
Release files for ard 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ard-0.0.11.tar.gz | 12.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ard-0.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.4 kB
Release files / ard-0.0.11.tar.gz
| Download URL | ard-0.0.11.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0f296fd19ddec3d4616102290834fc770f896f84ce9cc5ffe4323f918abf7e8
|
|
BLAKE2b-256 checksum How to use checksums |
ddb8e2981979426087912397157ecb864e842ebe78a8881457ce06df1e66d80f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / ard-0.0.11-py3-none-any.whl
| Download URL | ard-0.0.11-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3516747473a3ed3afb2cd33dc11f0b22a4f93713b7e491074398db530f0eb848
|
|
BLAKE2b-256 checksum How to use checksums |
ec72abfc67f64d781dc180253ab51e42630686654630f5aaf7f26177bc840721
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|