Comparison
astral-yaml vs rapidyaml vs ruamel.yaml vs yaml-rs
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Read and write YAML 1.2 in Python
Actively maintained. Last release 3 days ago, commits in 10 of the last 26 weeks. A safe choice.
pip install astral-yamlParse and emit YAML, and do it fast. Python wrapper for the C++ library
Maintained. Last release 5 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install rapidyamlruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order
Maintained. Last release 11 months ago.
pip install ruamel-yamlA High-Performance YAML Parser for Python written in Rust
Archived. The repository is read-only: no more fixes or releases will come.
pip install yaml-rsIn short
- yaml-rs is archived: avoid it for new projects.
- ruamel.yaml is the most used: 184.6M downloads a month, 498× more than astral-yaml.
- astral-yaml is better maintained: Pythie’s Index 73 against 59.
- astral-yaml is the newcomer: first released Nov 2026.
Side by side
| Metric | astral-yaml | rapidyaml | ruamel.yaml | yaml-rs |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 73 | Pythie’s Index: 55 | Pythie’s Index: 59 | Pythie’s Index: 16 |
| Verdict | Actively maintained | Maintained | Maintained | Archived |
| Downloads / month | 370.7K | 229.9K | 184.6M | 111.3K |
| Downloads, month over month | – | -8% | +8% | +7% |
| GitHub stars | 5 | 4 | – | 38 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 0 | 9 | 2.8K | 1 |
| Last release | Nov 30, 2026 | Jun 25, 2026 | Jan 2, 2026 | Jul 7, 2026 |
| Releases, 12 months | 5 | 11 | 3 | 16 |
| Weeks with commits | 10 / 26 | 2 / 26 | – | 17 / 26 |
| Recent contributors | 1 | 1 | – | 2 |
| First release | Nov 2026 | Mar 2021 | Nov 2014 | Nov 2025 |
| Python versions | – | – | 3.9 – 3.14 | 3.10 – 3.15 |
| License | MIT OR Apache-2.0 | MIT | MIT | Unlicense |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.