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.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| canonprims-0.1.5-cp310-abi3-win_arm64.whl | CPython 3.10 | abi3 | Windows ARM64 | Details for canonprims-0.1.5-cp310-abi3-win_arm64.whl |
| canonprims-0.1.5-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for canonprims-0.1.5-cp310-abi3-win_amd64.whl |
| canonprims-0.1.5-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.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| canonprims-0.1.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details for canonprims-0.1.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| canonprims-0.1.5-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for canonprims-0.1.5-cp310-abi3-macosx_11_0_arm64.whl |
Total release size: 1.2 MB
Release files / canonprims-0.1.5-cp310-abi3-win_arm64.whl
| Download URL | canonprims-0.1.5-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 166.3 kB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
cc8d9a906b84cccf269dd040ad7ee9d13e983a67b367a28344a6ded20f54e87a
|
|
BLAKE2b-256 checksum How to use checksums |
75783420042b9613b3acc8258c3c0f01141063789e51227aeb829135a93b3340
|
| 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 10, 2026.
Transparency logRelease files / canonprims-0.1.5-cp310-abi3-win_amd64.whl
| Download URL | canonprims-0.1.5-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 169.4 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
26e5a2190b3adc3233cf84771bb7876e58cd0256551209f4cb0377ca9435a099
|
|
BLAKE2b-256 checksum How to use checksums |
16c187b18074444d3d6bcb6e2c4bca7b363f5b95954ae27f1875ce4cb1933d08
|
| 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 10, 2026.
Transparency logRelease files / canonprims-0.1.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | canonprims-0.1.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 310.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b300745b9b1266c60d73b7c6f3fa01c006afdac61d4ecd04935ba1c583b5242a
|
|
BLAKE2b-256 checksum How to use checksums |
9e25abe389d1c600e6225e903bcbde47d686c490deb3c7a024dd323486d9452b
|
| 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 10, 2026.
Transparency logRelease files / canonprims-0.1.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | canonprims-0.1.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 307.2 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
19458d0a153a60853216a31fd10b5f06d2bf4b7456cf2c633a6a9a617f69cbe8
|
|
BLAKE2b-256 checksum How to use checksums |
6cc01efe81db1edd3f594b584ab50ef9c13ccc6ce81c2f588620174b1df07ee3
|
| 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 10, 2026.
Transparency logRelease files / canonprims-0.1.5-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | canonprims-0.1.5-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 279.3 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
73f0a2af9637691ae9917da00086d1230449c5e8e6d99c7c3f96debbf3c28c3d
|
|
BLAKE2b-256 checksum How to use checksums |
c9a46ca6f46610e9474fb4727c7c87f9dee0d9b7e7c53fdf964801db2d709b57
|
| 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 10, 2026.
Transparency logSecurity for canonprims 0.1.5
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.
Attestation for canonprims-0.1.5-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 10, 2026.
Transparency logA 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.