Comparison
black vs yapf
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
The uncompromising code formatter.
Actively maintained. Last release 7 weeks ago, commits in 22 of the last 26 weeks. A safe choice.
$
pip install blackA 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
- black is the most used: 113.3M downloads a month, 21× more than yapf.
- black also has the best Pythie’s Index (94).
- Safe default for a new project: black.
Side by side
| Metric | black | yapf |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 94 | Pythie’s Index: 21 |
| Verdict | Actively maintained | Low maintenance activity |
| Downloads / month | 113.3M | 5.3M |
| Downloads, month over month | -8% | -5% |
| GitHub stars | 42.2K | 14K |
| Stars, last 7 days | – | – |
| Direct dependents | 1.4K | 178 |
| Last release | Oct 10, 2026 | Nov 14, 2024 |
| Releases, 12 months | 9 | 0 |
| Weeks with commits | 22 / 26 | 0 / 26 |
| Recent contributors | 52 | 13 |
| First release | Mar 2018 | Apr 2015 |
| Python versions | 3.10 – 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.