Skip to main content

yamlprims

YAML 1.2.2 Core Schema value loader, strict yamlprims-value/1 wire decoder, and canonical encoder for Python (CPython 3.10+ via abi3 extension over the Rust yamlprims crate).

Features

  • Lossless YAML 1.2.2 Core Schema Document / Node / Mapping tree (load, load_all, load_bytes, load_all_bytes) with arbitrary-precision Python int for 128-bit integers (i128::MIN..=u128::MAX), exact IEEE 754 binary64 float bits (-0.0, NaN, ±Infinity), Tag / Tagged preservation, and Span / Location coordinates (byte_offset, line, column).
  • Ordered Mapping without Python dict key collisions: YAML true, 1, and 1.0 remain distinct keys via yamlprims.key_eq rather than colliding as in Python's built-in dict.
  • Explicit to_plain() and encode_plain() loss matrix (spec-v1.4 §11.3): to_plain projects string-keyed mappings to dict and rejects non-string mapping keys or Tagged nodes with YamlprimsError(kind="type").
  • Strict yamlprims-value/1 wire decoder & canonical encoder (decode_wire, encode, encode_error) with byte-for-byte round-trip parity (spec-v1.5 §11.4).
  • Deterministic YAML 1.2.2 Core emitter & strict RFC 7493 I-JSON projection (dump, dump_all, from_plain, load_ijson, EmitLimits, EmitOptions) with yaml11_safe default compatibility quoting (spec-v1.5 §10.2, §11.3).

Example

import json
import yamlprims

value = json.loads(yamlprims.load_plain("name: demo\nenabled: on\nports: [80, 443]\n"))
# {'name': 'demo', 'enabled': 'on', 'ports': [80, 443]}
print(yamlprims.dump(value), end="")  # yaml11_safe quoting: enabled: 'on'
yamlprims.load_ijson("b: 2\na: [1.0, 1e21]\n")  # '{"b":2,"a":[1,1e+21]}'

load_plain and load_ijson return JSON text. load_ijson output is RFC 7493 I-JSON, ready for RFC 8785 JCS canonicalization (for example with canonprims).

License

Dual-licensed under MIT OR Apache-2.0. See LICENSE-MIT, LICENSE-APACHE, and NOTICE.

Metadata

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

Total release size: 2.6 MB

Release files / yamlprims-0.2.2-cp310-abi3-win_arm64.whl

Download URL yamlprims-0.2.2-cp310-abi3-win_arm64.whl
Size 424.6 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
4c4c0b08fc6766664c63ac05c451c6528ddd2b62d7ed357ed1d71cee39c4b88a
BLAKE2b-256 checksum
How to use checksums
54e7a6d035ed2877ef5ac5c7b6eee04ea95a8ec8c1f64f8560652364d751bfc0
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 14, 2026.

Transparency log

Release files / yamlprims-0.2.2-cp310-abi3-win_amd64.whl

Download URL yamlprims-0.2.2-cp310-abi3-win_amd64.whl
Size 437.9 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
df9bda9f200e69e9ac05c452b361a4a314e63a6154be7757baeee8cc5e87b658
BLAKE2b-256 checksum
How to use checksums
54db31fff4349c053d1c6b11587856d55303d6dc9cd059c5b4bc6421964cc047
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 14, 2026.

Transparency log

Release files / yamlprims-0.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL yamlprims-0.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 584.6 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
91aa838b803ef9fa97378e9c1ddf367875102b3e74162e4feb8aa590843df1fb
BLAKE2b-256 checksum
How to use checksums
53c95728c8159d5f8a535b5929666f6a9296f437bbcf0fceea216255d570ea09
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 14, 2026.

Transparency log

Release files / yamlprims-0.2.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL yamlprims-0.2.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 579.4 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
981f78b5de721974eb856f035ceac506b73f87e610a1e94323bf518388bbd81e
BLAKE2b-256 checksum
How to use checksums
5f89ab976b0a851a073ade96be5892c6f8633633e0f509a1290f0e15826fc269
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 14, 2026.

Transparency log

Release files / yamlprims-0.2.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL yamlprims-0.2.2-cp310-abi3-macosx_11_0_arm64.whl
Size 538.7 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b73dfa9f5356184464cf3a7e8ee162c41d9980486223c08c6afcf642cb29d0ef
BLAKE2b-256 checksum
How to use checksums
085b3888d099f8f456ce30e8b556f891c35ab6ba1ab9d300303f372b2e00218f
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 14, 2026.

Transparency log

Security for yamlprims 0.2.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.

Full provenance

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

Select from 5 files

Attestation for yamlprims-0.2.2-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 14, 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