Skip to main content

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:

  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.

Project details


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)

Uploaded Source

Built Distribution

ard-0.0.11-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

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

Hashes for ard-0.0.11.tar.gz
Algorithm Hash digest
SHA256 b0f296fd19ddec3d4616102290834fc770f896f84ce9cc5ffe4323f918abf7e8
MD5 31fbc511cca4fd2ffedf33be6de38efe
BLAKE2b-256 ddb8e2981979426087912397157ecb864e842ebe78a8881457ce06df1e66d80f

See more details on using hashes here.

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

Hashes for ard-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3516747473a3ed3afb2cd33dc11f0b22a4f93713b7e491074398db530f0eb848
MD5 c189d1c3d7c04182d5c14b25f58c7093
BLAKE2b-256 ec72abfc67f64d781dc180253ab51e42630686654630f5aaf7f26177bc840721

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page