ozzyyaml
YAML 1.2.2 for Python, backed by a from-scratch Rust implementation. Licensed under the BSD-3-Clause.
ozzyyaml exists because common stacks still struggle with parts of the 1.2.2
spec. In particular, libyaml (and therefore PyYAML) rejects Unicode in
anchor and alias names. ozzyyaml accepts them on purpose (&汉, *😀, and
similar).
Install
pip install ozzyyaml
Wheels are built for Linux, macOS, and Windows. Until the first PyPI release is up, install from a git checkout instead.
Requires Python 3.10 or newer.
Quick start
Two APIs share the same parser:
- Native — ordinary
dict/list/ scalars (familiar, but cycles error) - Value — structured nodes that keep alias identity, including cycles
import ozzyyaml
doc = ozzyyaml.load("{name: Ada, ok: true}\n")
assert doc == {"name": "Ada", "ok": True}
print(ozzyyaml.dump({"items": [1, 2]})) # flow style by default
# Shared aliases become the same Python object
v = ozzyyaml.load_value("[&a hello, *a]\n")
assert v[0] is v[1]
assert v[0].as_str() == "hello"
# Cycles need the Value API
cycle = ozzyyaml.load_value("&a [*a]\n")
assert cycle[0] is cycle[0][0]
Dump styles are "flow" (default) and "block". Multi-document streams use
load_all / dump_all (native) or load_all_value (structured).
Failures from the Rust stack raise ozzyyaml.OzzyYamlError.
What you get
| Need | Use |
|---|---|
| Everyday config / data | load / dump |
| Aliases that form a DAG | either API (a is b for shared nodes) |
| Cycles | load_value / dump_value |
| Resource caps | max_anchors, max_nesting_depth, max_input_bytes keyword args |
The loader follows the YAML 1.2.2 Core schema, so plain yes / no stay
strings rather than becoming booleans.
Develop from a checkout
git clone https://github.com/peterkmurphy/ozzyyaml.git
cd ozzyyaml
git submodule update --init --recursive
cd python
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install maturin pytest
maturin develop
pytest
Learn more
- Python guide — types, limits, and the full Value API
- Architecture — how the Rust pipeline fits together
- Repository — Rust crates and CI
Metadata
Release files for ozzyyaml 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ozzyyaml-0.1.0.tar.gz | 50.8 kB | Without provenance | Details for ozzyyaml-0.1.0.tar.gz |
Built distributions (wheels)
Total release size: 5.4 MB
Release files / ozzyyaml-0.1.0.tar.gz
| Download URL | ozzyyaml-0.1.0.tar.gz |
|---|---|
| Size | 50.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
970095b9b703f962cd0bef07e7741ecef2b239fb2722b234c7e85d90a3990617
|
|
BLAKE2b-256 checksum How to use checksums |
0397edddfc4df71410d2c9de5453b0a1201d5cbabe5f7b178d2df254f2979071
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp313-cp313-win_amd64.whl
| Download URL | ozzyyaml-0.1.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 237.2 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3f67823cf5bbbcb360c95180bb30f50cb28cc4c1c5a2303dc9991fea37e72a33
|
|
BLAKE2b-256 checksum How to use checksums |
730962c8172a9b832fbab349c507cf26fa5e5abea9ec071fbaa7c1dca1674f35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | ozzyyaml-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 380.7 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e60a32df0632c155a30921306c5bd7c8d22822bae5080a82a5cd0d9e08ced55e
|
|
BLAKE2b-256 checksum How to use checksums |
2a866c3b2cd1d1b3e020e0ce306c17f4652c51e4e6075ccc43b278d2c7cfedf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | ozzyyaml-0.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 375.5 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
6e0d2ed80adebd50110a20d03d77212a208ef5583bc4896c9b736552f636cbc3
|
|
BLAKE2b-256 checksum How to use checksums |
b63adde4c34df5b10256ee4c98ef931936821ab7d16fb335ed35ee777eb59530
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | ozzyyaml-0.1.0-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 334.2 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b945fcc12c4bb74fc94ff536c5599a277422e20f0aebc73b09d717e5c253ce8a
|
|
BLAKE2b-256 checksum How to use checksums |
5c5e7537e7c6dfac33c8f2d3e479d8e54e30af5d59639718aa2bc41c8788c0b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp312-cp312-win_amd64.whl
| Download URL | ozzyyaml-0.1.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 237.7 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1c80822020e7050dce171dd3ae9998870136e3d7c2b683041179f15fa54ce9c6
|
|
BLAKE2b-256 checksum How to use checksums |
c038cefc05280ed00f59d8aff27117fca2eb991f2d15d9e84aac2244915d0c04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | ozzyyaml-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 381.3 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
0186b0eb20b3a435ab9401981f0856786ebc09e7cdcb71b22e9eb8e33cdda9e0
|
|
BLAKE2b-256 checksum How to use checksums |
269d32c77ba7310dc26b27f309e4ebe3988feec3c9eb7e101c0ad617bad12793
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | ozzyyaml-0.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 376.0 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
7b6e861fac101a8c4bae63a13137958410f03fd8963d875172a43f6670ab76fe
|
|
BLAKE2b-256 checksum How to use checksums |
ef5d22bdbe0dfa97926a37ab579bbda98ff45747b7bbf93bb7cb8ad37f6e8b8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | ozzyyaml-0.1.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 334.3 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9700e68f6b8cefa415e4837b4fcfe1099eb6f7133efed0bd6e42101512b6bf15
|
|
BLAKE2b-256 checksum How to use checksums |
bfec3fabccfd797cc97fa366629462ad9441e703ddad3bee11c3685e795d5e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp311-cp311-win_amd64.whl
| Download URL | ozzyyaml-0.1.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 236.5 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
06f0b46b3a1f7fbf34e28f3f52c98b3e0d28c92987a10307fa379273ba5dc015
|
|
BLAKE2b-256 checksum How to use checksums |
a81f2505ab09bd9606095c27f499bc2e066ab533b1de43e95970ae0e22734825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | ozzyyaml-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 380.1 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
6f4d5e894bbebbf062ebbc6a5beca5322ac56c809ac84b226310dd6425ac7f53
|
|
BLAKE2b-256 checksum How to use checksums |
140ee05fa4b3a82df5947ce2e4d150135e4d3522bddb460c9bf663df213ee52d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | ozzyyaml-0.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 375.1 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
28915583c477c6e412e552a59ce56e39974c64f842885be08bdf8e2fb09c2630
|
|
BLAKE2b-256 checksum How to use checksums |
d3f24647c29a3f6db50ef20cf021c2a934203e4fc3e9f82532e0d107d3066437
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | ozzyyaml-0.1.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 339.5 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3db9fa5dd929661a167a3218aae1c87dcace4c3fd9f9ccdb93669c6902b31fd1
|
|
BLAKE2b-256 checksum How to use checksums |
f4399dfc3570daf284128c6deff294d33fef185003c0352976b45336c9cfd595
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp310-cp310-win_amd64.whl
| Download URL | ozzyyaml-0.1.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 235.9 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
21dcf3d93dd602a3266010f71c3353ff6148592aba597cae64fcb2a9c055b44d
|
|
BLAKE2b-256 checksum How to use checksums |
c782357584ad23cbb9b44c03588d3a57c776d75654256775bf72788086b37498
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | ozzyyaml-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 379.9 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
3617acf54cf9026dc0a1149243e31da4c473ac618863bdcdd84bf715e941bee7
|
|
BLAKE2b-256 checksum How to use checksums |
c4b283c62305d096d7c8bd100c20233d36f41f14db6197f0997441e0c3def50a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | ozzyyaml-0.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 375.0 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
beef88611ad62310f927fd22a05d1ff172e32d6e389f04975053c6c4e18b6b41
|
|
BLAKE2b-256 checksum How to use checksums |
6a7a8b676870fbafb63e1d3230950bb952c0c67b41b5517162e526c80a1a6346
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / ozzyyaml-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | ozzyyaml-0.1.0-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 339.2 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4840fcc3a4899838f5d392c3604a65048e71f516a43140f3243aa1a6479f4920
|
|
BLAKE2b-256 checksum How to use checksums |
5f9239520218661e60cb054bfdac377a486dadd888a793614ee16889baef7af9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Security for ozzyyaml 0.1.0
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.