Comparison
ruamel.yaml vs saneyaml vs strictyaml vs yamale
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
ruamel.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 saneyamlStrict, typed YAML parser
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install strictyamlA schema and validator for YAML.
Maintained. Last release 12 months ago, commits in 6 of the last 26 weeks. Weaker on recent releases and release cadence.
pip install yamaleIn short
- saneyaml is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- strictyaml is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- ruamel.yaml is the most used: 183.7M downloads a month, 6.1× more than strictyaml.
- ruamel.yaml also has the best Pythie’s Index (59).
Side by side
| Metric | ruamel.yaml | saneyaml | strictyaml | yamale |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 59 | Pythie’s Index: 23 | Pythie’s Index: 10 | Pythie’s Index: 43 |
| Verdict | Maintained | Slowing down | Slowing down | Maintained |
| Downloads / month | 183.7M | 176.8K | 30.1M | 2.5M |
| Downloads, month over month | +10% | +25% | +8% | +8% |
| GitHub stars | – | 10 | 1.6K | 775 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 2.8K | 11 | 192 | 47 |
| Last release | Jan 2, 2026 | Aug 14, 2024 | Mar 10, 2023 | Nov 20, 2025 |
| Releases, 12 months | 3 | 0 | 0 | 0 |
| Weeks with commits | – | 0 / 26 | 0 / 26 | 6 / 26 |
| Recent contributors | – | 9 | 3 | 25 |
| First release | Nov 2014 | Nov 2018 | Jun 2016 | Jun 2014 |
| Python versions | 3.9 – 3.14 | – | – | 3.8 – 3.14 |
| License | MIT | Apache-2.0 | MIT | MIT |
| 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.