jsoncanon


Namejsoncanon JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://github.com/sveinugu/jsoncanon
SummaryTyped Python implementation of JSON Canonicalization Scheme as described in RFC 8785. Currently lacks full floating point support
upload_time2024-01-24 14:56:06
maintainer
docs_urlNone
authorSveinung Gundersen
requires_python>=3.8,<4.0
licenseApache-2.0
keywords json rfc-8785 canonicalization deterministic serialization hash
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # jsoncanon

Typed Python implementation of JSON Canonicalization Scheme as described in 
[RFC 8785](https://www.rfc-editor.org/rfc/rfc8785.html). The initial release (v0.2.x) is a partial release focused on the 
features needed by the [Sequence Collections working group](https://seqcol.readthedocs.io/) in the
[Global Alliance for Genomics and Health (GA4GH)](https://www.ga4gh.org/).

## 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
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sveinugu/jsoncanon",
    "name": "jsoncanon",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "JSON,RFC-8785,canonicalization,deterministic,serialization,hash",
    "author": "Sveinung Gundersen",
    "author_email": "sveinugu@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/8f/b7/d3694a1cef86ccffe4a18aca5dcefef683331d76aa6645e973ae917d34df/jsoncanon-0.2.3.tar.gz",
    "platform": null,
    "description": "# jsoncanon\n\nTyped Python implementation of JSON Canonicalization Scheme as described in \n[RFC 8785](https://www.rfc-editor.org/rfc/rfc8785.html). The initial release (v0.2.x) is a partial release focused on the \nfeatures needed by the [Sequence Collections working group](https://seqcol.readthedocs.io/) in the\n[Global Alliance for Genomics and Health (GA4GH)](https://www.ga4gh.org/).\n\n## Usage\n\n```\n>>> import json\n>>> from jsoncanon import canonicalize\n>>>\n>>> data = json.loads('{ \"b\": [1,3,7], \"a\": { \"y\": true, \"x\": null } }')\n>>> canonicalize(data)\nb'{\"a\":{\"x\":null,\"y\":true},\"b\":[1,3,7]}'\n```\n\n## Releases\n\nv0.2.0 - Initial release, supporting all data types except for floating point numbers\nv0.2.1 - Yanked due to incorrect link\nv0.2.2 - Initial release with updated project information",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Typed Python implementation of JSON Canonicalization Scheme as described in RFC 8785. Currently lacks full floating point support",
    "version": "0.2.3",
    "project_urls": {
        "Homepage": "https://github.com/sveinugu/jsoncanon",
        "Repository": "https://github.com/sveinugu/jsoncanon"
    },
    "split_keywords": [
        "json",
        "rfc-8785",
        "canonicalization",
        "deterministic",
        "serialization",
        "hash"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7cbb4e0899742bdfa681ee994b04c57380c5ce3e84c049a4ed1fae0c7b62d738",
                "md5": "339ad2c97a48ed4827fddc04ffa476a9",
                "sha256": "adb35dac2d0c5dd56f1cb374f1ea6f1fff2ebbb4e844b06d9c96b9ccadf12bf0"
            },
            "downloads": -1,
            "filename": "jsoncanon-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "339ad2c97a48ed4827fddc04ffa476a9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 7870,
            "upload_time": "2024-01-24T14:56:04",
            "upload_time_iso_8601": "2024-01-24T14:56:04.251631Z",
            "url": "https://files.pythonhosted.org/packages/7c/bb/4e0899742bdfa681ee994b04c57380c5ce3e84c049a4ed1fae0c7b62d738/jsoncanon-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8fb7d3694a1cef86ccffe4a18aca5dcefef683331d76aa6645e973ae917d34df",
                "md5": "677b6f9a3aac84264f807fac0929608a",
                "sha256": "483c1ef14e6c8151ba69c0bf646551f249698dd523e9c6da1339a688c5f96d6d"
            },
            "downloads": -1,
            "filename": "jsoncanon-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "677b6f9a3aac84264f807fac0929608a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 7149,
            "upload_time": "2024-01-24T14:56:06",
            "upload_time_iso_8601": "2024-01-24T14:56:06.049166Z",
            "url": "https://files.pythonhosted.org/packages/8f/b7/d3694a1cef86ccffe4a18aca5dcefef683331d76aa6645e973ae917d34df/jsoncanon-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-24 14:56:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sveinugu",
    "github_project": "jsoncanon",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "jsoncanon"
}
        
Elapsed time: 0.17496s