Comparison
ruff vs yapf
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
An extremely fast Python linter and code formatter, written in Rust.
Actively maintained. Last release 11 days ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install ruffA formatter for Python code
Low maintenance activity. Last release over 2 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install yapfIn short
- ruff is the most used: 442.1M downloads a month, 83× more than yapf.
- ruff also has the best Pythie’s Index (83).
- ruff is growing fastest: downloads +15% over the last month.
- Safe default for a new project: ruff.
Side by side
| Metric | ruff | yapf |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 83 | Pythie’s Index: 21 |
| Verdict | Actively maintained | Low maintenance activity |
| Downloads / month | 442.1M | 5.3M |
| Downloads, month over month | +15% | -5% |
| GitHub stars | 51.5K | 14K |
| Stars, last 7 days | – | – |
| Direct dependents | 1.2K | 178 |
| Last release | Nov 19, 2026 | Nov 14, 2024 |
| Releases, 12 months | 49 | 0 |
| Weeks with commits | 26 / 26 | 0 / 26 |
| Recent contributors | 11 | 13 |
| First release | Aug 2022 | Apr 2015 |
| Python versions | 3.7 – 3.15 | 3.7 – 3.11 |
| License | MIT | Apache-2.0 |
| Known vulnerabilities | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.