Skip to main content

Typed Python implementation of JSON Canonicalization Scheme as described in RFC 8785. Currently lacks full floating point support

Project description

jsoncanon

Typed Python implementation of JSON Canonicalization Scheme as described in RFC 8785. The initial release (v0.2.x) is a partial release focused on the features needed by the Sequence Collections working group in the Global Alliance for Genomics and Health (GA4GH).

Usage

>>> import json
>>> from jsoncanon import canonicalize
>>>
>>> data = json.loads('{ "b": [1,3,7], "a": { "y": true, "x": null } }')
>>> canonicalize(data)
b'{"a":{"x":null,"y":true},"b":[1,3,7]}'

Releases

v0.2.0 - Initial release, supporting all data types except for floating point numbers v0.2.1 - Yanked due to incorrect link v0.2.2 - Initial release with updated project information

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

jsoncanon-0.2.3.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

jsoncanon-0.2.3-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

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