yaml-rs
A High-Performance YAML Parser for Python written in Rust
Decision gist · record as of 2026-08-14
Yes, if you need YAML parsing and either require YAML 1.2 spec compliance or want faster parsing than pure-Python libraries. The permissive license, active maintenance, zero runtime dependencies, and broad wheel coverage make it a low-friction upgrade from PyYAML. Install with caution only if your platform lacks a prebuilt wheel and you cannot compile Rust code.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; PyPy support is listed but wheel availability may vary by version.
- Medium install friction due to compiled Rust bindings, but prebuilt wheels are available for common architectures (x86_64, ARM, RISC-V across Linux, macOS, Windows).
- Active maintenance with recent releases; last commit 2026-08-14.
License · maintenance · safety
Unlicense (permissive) — Licensed under Unlicense (permissive public domain equivalent), imposing no restrictions on use, modification, or distribution.
last release 2026-07-07 (38 days) · last repo commit 2026-08-14 · 36 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 86,564 downloads/mo, #13,852 on PyPI
Alternatives
Verify before relying
pip install yaml-rs
import yaml_rs
yaml_string = "app:\n name: service\n debug: false"
data = yaml_rs.loads(yaml_string)
print(data)- Whether the parser handles all edge cases of YAML v1.2 spec in practice, beyond passing the yaml-test-suite.
- Performance benchmarks against other YAML 1.2 parsers in real-world workloads.
- Stability and API compatibility guarantees given the 0.1.6 version number.
What it is and what it does
yaml-rs is a YAML parser that reads YAML 1.2 formatted text and converts it into Python dictionaries and other native types. It is written in Rust and exposed as a Python extension, trading some install complexity for significantly faster parsing than pure-Python alternatives. The package targets developers who need to parse YAML configuration files, data files, or other YAML content where parsing speed matters or where strict YAML 1.2 compliance is required.
The parser has no runtime dependencies beyond Python itself, making it lightweight once installed. It supports current Python versions (3.10 through 3.15) and is actively maintained. The main trade-off is that installation requires either a prebuilt wheel for your platform or a Rust compiler to build from source; however, wheels cover most common architectures.
Use it for
- Parse large YAML configuration files where speed is a bottleneck in application startup or reload cycles.
- Process YAML data files in data pipelines where strict YAML 1.2 spec compliance is required.
- Replace PyYAML in projects where YAML 1.1 compatibility issues cause incorrect parsing of certain inputs.
- Load structured YAML documents in CLI tools or services where parsing latency affects user experience.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need YAML parsing and either require YAML 1.2 spec compliance or want faster parsing than pure-Python libraries.
The permissive license, active maintenance, zero runtime dependencies, and broad wheel coverage make it a low-friction upgrade from PyYAML. Install with caution only if your platform lacks a prebuilt wheel and you cannot compile Rust code.
Install
yaml-rs on PyPI
Before you install
Medium install friction due to compiled Rust bindings, but prebuilt wheels are available for common architectures (x86_64, ARM, RISC-V across Linux, macOS, Windows). Active maintenance with recent releases; last commit 2026-08-14.
Requires Python 3.10 or later; PyPy support is listed but wheel availability may vary by version.
License in practice
Licensed under Unlicense (permissive public domain equivalent), imposing no restrictions on use, modification, or distribution.
Quickstart
pip install yaml-rs
import yaml_rs
yaml_string = "app:\n name: service\n debug: false"
data = yaml_rs.loads(yaml_string)
print(data)
Verify before relying
- Whether the parser handles all edge cases of YAML v1.2 spec in practice, beyond passing the yaml-test-suite.
- Performance benchmarks against other YAML 1.2 parsers in real-world workloads.
- Stability and API compatibility guarantees given the 0.1.6 version number.
Package facts
| License | Unlicense permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 38 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 86,564 / month, #13,852 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: RustTopic :: Software Development :: LibrariesTyping :: Typed |
Evidence: yaml_rs-0.1.6-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl; yaml_rs-0.1.6-cp310-cp310-macosx_10_12_x86_64.whl; yaml_rs-0.1.6-cp310-cp310-macosx_11_0_arm64.whl; yaml_rs-0.1.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; yaml_rs-0.1.6-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; yaml_rs-0.1.6-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; yaml_rs-0.1.6-cp310-cp310-manylinux_2_17_ppc64.manylinux2014_ppc64.whl; yaml_rs-0.1.6-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; yaml_rs-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; yaml_rs-0.1.6-cp310-cp310-manylinux_2_31_riscv64.whl; yaml_rs-0.1.6-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; yaml_rs-0.1.6-cp310-cp310-musllinux_1_2_aarch64.whl; yaml_rs-0.1.6-cp310-cp310-musllinux_1_2_armv7l.whl; yaml_rs-0.1.6-cp310-cp310-musllinux_1_2_i686.whl; yaml_rs-0.1.6-cp310-cp310-musllinux_1_2_ppc64le.whl; yaml_rs-0.1.6-cp310-cp310-musllinux_1_2_riscv64.whl; yaml_rs-0.1.6-cp310-cp310-musllinux_1_2_x86_64.whl; yaml_rs-0.1.6-cp310-cp310-win32.whl; yaml_rs-0.1.6-cp310-cp310-win_amd64.whl; yaml_rs-0.1.6-cp310-cp310-win_arm64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “yaml parser python”
- yaml-rsA high-performance YAML v1.2 parser for Python, implemented in Rust,…
- poyoParses a restricted subset of YAML into Python dicts, lists, and…
- ruamel.yaml.clibProvides a C-based YAML 1.2 reader, parser, and emitter derived from…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also ruamel.yaml · toml-rs · ruamel.yaml.clib · ruyaml · strictyaml · chalkpy-rs · PyYAML · PyYAML-ft · python-frontmatter · YORM