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.4

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.4
File Actions
canonprims-0.1.4-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for canonprims-0.1.4-cp310-abi3-win_arm64.whl
canonprims-0.1.4-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for canonprims-0.1.4-cp310-abi3-win_amd64.whl
canonprims-0.1.4-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.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
canonprims-0.1.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for canonprims-0.1.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
canonprims-0.1.4-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for canonprims-0.1.4-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 1.2 MB

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

Download URL canonprims-0.1.4-cp310-abi3-win_arm64.whl
Size 166.9 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
7bfe7a1e86c54a80e89a68a29f82eec096a8becad879e2ae9f430650fc46de0c
BLAKE2b-256 checksum
How to use checksums
13fd2dc75ddfd2ccbec1b5c1f5ff7194e709b4b9d017e547e53729af37acce4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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

Download URL canonprims-0.1.4-cp310-abi3-win_amd64.whl
Size 169.4 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1513428a7220349f88fec76f73d02025187d296636bbc53e55164b2a6319e6ae
BLAKE2b-256 checksum
How to use checksums
a64ec2e2136ab2fd5d364e30881d8f07ac40c16a3a4bbddc1d46c59b8f379acf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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

Download URL canonprims-0.1.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 310.4 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
a203f08c5f649eea824bcf9cceb5c1f588a713760889b650deb550c294e5128f
BLAKE2b-256 checksum
How to use checksums
6afd5fa17d3b1b288761dc9147187038c3538e4cea8eab54b1bb08aee0602514
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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

Download URL canonprims-0.1.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 307.9 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
6d67495f34db7fd35a228b6eecaaa6c0eeca0147a89072ff163178f29b923848
BLAKE2b-256 checksum
How to use checksums
4d6e5b1cb61426d3c6a0dd7dc8b9c8ff101c1e2b2251b2df04b1574d604ca70b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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

Download URL canonprims-0.1.4-cp310-abi3-macosx_11_0_arm64.whl
Size 279.6 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a20aa233830f468d8fd2bd8631f676b8588f7e7d600767139581516e83ce4bb7
BLAKE2b-256 checksum
How to use checksums
bca16d9e8f132a27f2e71819d465e6ca2eab7ec3f2e9d569e0b53dcebbd15ede
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for canonprims 0.1.4

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.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for canonprims-0.1.4-cp310-abi3-win_arm64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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