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

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

Total release size: 1.2 MB

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

Download URL canonprims-0.1.3-cp310-abi3-win_arm64.whl
Size 167.0 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
7b016bba3c77d0d30f73386bc7767bb5dfce12c38bb785c4cc99744c477667c5
BLAKE2b-256 checksum
How to use checksums
1de55eae077f569318c068236fc7d989465e5ff47e6ea2410519ef92856b2b15
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.3-cp310-abi3-win_amd64.whl

Download URL canonprims-0.1.3-cp310-abi3-win_amd64.whl
Size 169.4 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
aa17104d532c96a5e921932b17b3eb128a722069afb655a4c4dddfbeab4a3bce
BLAKE2b-256 checksum
How to use checksums
fa406cca01cf95bd54a044b05473f0e9de7f5044132881f36919ae2cd7adabdd
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.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL canonprims-0.1.3-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
8f308d8a15ba02b5436f37da816b565b08191590cb8cc3ff5b143f1cebc739e1
BLAKE2b-256 checksum
How to use checksums
a562e4b82f3a590da656267c1f72e1966fa1b6c6921e83ed62d96c8ee9a36da0
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.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL canonprims-0.1.3-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
20e9ff438e84e624a684435e1f41f7780aea943f7e33202c3f00037a55aefcd0
BLAKE2b-256 checksum
How to use checksums
eb0fbfce80396d2c20199900cfbd5064db514c0f0984a053a8b461b2a18c686e
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.3-cp310-abi3-macosx_11_0_arm64.whl

Download URL canonprims-0.1.3-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
26b20354c58cef680666fcc8f728e95da4dbffe7b322542759cb56d143f635f6
BLAKE2b-256 checksum
How to use checksums
903301a827b66dacaf5bd1a19ddb38d1a8f033e1dd99841d021671392dcb1a97
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.3

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