Skip to main content

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:

  1. 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.
  2. Enable support for decoding YAML with complex keys. As it stands, the otherwise excellent ruamel.yaml library will choke on complex keys.
  3. 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)

Source distribution for ard 0.0.11
File Size Uploaded
ard-0.0.11.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ard 0.0.11
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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