--- id: yaml-rs version: "0.1.6" license: Unlicense license_treatment: permissive maintenance: active --- # yaml-rs — A High-Performance YAML Parser for Python written in Rust License: permissive · Maintenance: active · Downloads: 86.6K/mo ## 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 above — verify before relying. A high-performance YAML v1.2 parser for Python, implemented in Rust, that parses YAML strings into Python data structures. 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 pip install yaml-rs uv add yaml-rs poetry add yaml-rs ## Installing yaml-rs 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. 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) Requires Python 3.10 or later; PyPy support is listed but wheel availability may vary by version. 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_current - Install friction: medium - Maintenance: active - Downloads: 86.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags yaml parser python, fast yaml parsing, yaml v1.2 parser, rust yaml library, yaml to dict python, high performance yaml, yaml loads, yaml-parsing, rust-binding, performance-oriented [View on SkillFed](https://skillfed.io/packages/yaml-rs) · [View on PyPI](https://pypi.org/project/yaml-rs/)