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
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
Built Distribution
File details
Details for the file jsoncanon-0.2.3.tar.gz
.
File metadata
- Download URL: jsoncanon-0.2.3.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.8 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 483c1ef14e6c8151ba69c0bf646551f249698dd523e9c6da1339a688c5f96d6d |
|
MD5 | 677b6f9a3aac84264f807fac0929608a |
|
BLAKE2b-256 | 8fb7d3694a1cef86ccffe4a18aca5dcefef683331d76aa6645e973ae917d34df |
File details
Details for the file jsoncanon-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: jsoncanon-0.2.3-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.8 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adb35dac2d0c5dd56f1cb374f1ea6f1fff2ebbb4e844b06d9c96b9ccadf12bf0 |
|
MD5 | 339ad2c97a48ed4827fddc04ffa476a9 |
|
BLAKE2b-256 | 7cbb4e0899742bdfa681ee994b04c57380c5ce3e84c049a4ed1fae0c7b62d738 |