Skip to main content

canonprims (Python)

RFC 8785 JSON canonicalization over a strict I-JSON loader: a binding over the Rust canonprims-json crate, gated by the same canonical-json/v0 conformance corpus as the Rust and Go implementations.

import canonprims

limits = canonprims.Limits()  # explicit on every call; documented defaults
canonprims.canonicalize(b'{"b":1,"a":2}', limits)  # b'{"a":2,"b":1}'
canonprims.digest(b'{"b":1,"a":2}', limits)        # 'sha256:...'
canonprims.check(b'{"a":2,"b":1}', limits)         # None, or raises Refusal
canonprims.scheme_info()

Input is the bytes of any buffer exporter (bytes, bytearray, memoryview, array, mmap, ...); a str is encoded as UTF-8. Limits follow the spec: a negative limit behaves as 0. An input with no canonical form raises canonprims.Refusal (a ValueError) with a normative code and an informative byte offset. Nothing is repaired.

Requires CPython 3.10 or later. See the repository README and docs/spec/jcs-rfc8785.md for the scheme.

Metadata

Release files for canonprims 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for canonprims 0.1.2
File Actions
canonprims-0.1.2-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for canonprims-0.1.2-cp310-abi3-win_arm64.whl
canonprims-0.1.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for canonprims-0.1.2-cp310-abi3-win_amd64.whl
canonprims-0.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for canonprims-0.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
canonprims-0.1.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for canonprims-0.1.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
canonprims-0.1.2-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for canonprims-0.1.2-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 1.2 MB

Release files / canonprims-0.1.2-cp310-abi3-win_arm64.whl

Download URL canonprims-0.1.2-cp310-abi3-win_arm64.whl
Size 167.1 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
78a2d40f960b28c75db2db93f499fbd4ae92d0bb329fc8decdf86d2da304ab60
BLAKE2b-256 checksum
How to use checksums
48cdbaf6ee0f8e91734c6a80f2e3aa504395bb7ba0bd6c3d5e493b290c1dc8fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / canonprims-0.1.2-cp310-abi3-win_amd64.whl

Download URL canonprims-0.1.2-cp310-abi3-win_amd64.whl
Size 169.5 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e7c720d1b0b64958bd8c462e0e787400de489c4f5e19d6b6a487d9150b5fb097
BLAKE2b-256 checksum
How to use checksums
73ca1d529d2f606ef0ccd3965572d4b4f969b88a960e281b1935681d1fbec74e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / canonprims-0.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL canonprims-0.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 310.6 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
8d065d5a02a8c68720158e7af0a43faaa2d6bd5dc2b24a7dba488f67f0cfcf53
BLAKE2b-256 checksum
How to use checksums
ac651aeb1b4b9dc852cd8770f31d5e503e16924fbec98e2fb6f125784feac704
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / canonprims-0.1.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL canonprims-0.1.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 308.0 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
f8b4193dd87f79692f82e580e1bfd6b49bbb4ee44c1101d2d0ff2ce6ec11a96c
BLAKE2b-256 checksum
How to use checksums
e704d8fdf9ae73b863876ae760f728c2b198741cb51afea11fc6732bf1943136
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / canonprims-0.1.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL canonprims-0.1.2-cp310-abi3-macosx_11_0_arm64.whl
Size 279.8 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
aec07167e8a4dc1a6ee3062c4225c5ec3ac8e6deb44e284f77cd7a435d73ea8c
BLAKE2b-256 checksum
How to use checksums
498f800980e970353982cb76c8f0556963ef45511063d600d04a6125d9128a2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Security for canonprims 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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