Comparison
PyYAML vs saneyaml vs strictyaml
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
YAML parser and emitter for Python
Maintained. Last release 11 days ago, commits in 3 of the last 26 weeks. Weaker on commit activity and issue handling.
pip install pyyamlRead 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 strictyamlIn 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.
- PyYAML is the most used: 1.3B downloads a month, 45× more than strictyaml.
- PyYAML also has the best Pythie’s Index (51).
- PyYAML is growing fastest: downloads +19% over the last month.
Side by side
| Metric | PyYAML | saneyaml | strictyaml |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 51 | 23 |