Comparison
py-yaml12 vs ruamel.yaml vs saneyaml
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A modern YAML 1.2 parser and emitter for Python, written in Rust.
Maintained. Last release 2 weeks ago, commits in 3 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install py-yaml12ruamel.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-yamlRead and write readable YAML safely preserving order and avoiding bad surprises with unwanted infered type conversions. This library is a PyYaml wrapper with sane behaviour to read and write readable YAML safely, typically when used for configuration.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install saneyamlIn short
- saneyaml is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- ruamel.yaml is the most used: 179.6M downloads a month, 1046× more than saneyaml.
- Maintenance is comparable: ruamel.yaml 59, py-yaml12 57 on Pythie’s Index.
- py-yaml12 is the newcomer: first released Dec 2025.
Side by side
| Metric | py-yaml12 | ruamel.yaml | saneyaml |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 57 | 59 |