Comparison
autopep8 vs black vs yapf
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A tool that automatically formats Python code to conform to the PEP 8 style guide
Low maintenance activity. Last release 23 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install autopep8The uncompromising code formatter.
Actively maintained. Last release 7 weeks ago, commits in 23 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: 110M downloads a month, 14× more than autopep8.
- black also has the best Pythie’s Index (95).
- Safe default for a new project: black.
Side by side
| Metric | autopep8 | black | yapf |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 29 | Pythie’s Index: 95 | Pythie’s Index: 21 |
| Verdict | Low maintenance activity | Actively maintained | Low maintenance activity |
| Downloads / month | 8M | 110M | 5.2M |
| Downloads, month over month | +8% | -9% | -8% |
| GitHub stars | 4.7K | 42.2K | 14K |
| Stars, last 7 days | – | – | – |
| Direct dependents | 236 | 1.4K | 178 |
| Last release | Jan 14, 2025 | Oct 10, 2026 | Nov 14, 2024 |
| Releases, 12 months | 0 | 9 | 0 |
| Weeks with commits | 4 / 26 | 23 / 26 | 0 / 26 |
| Recent contributors | 3 | 52 | 13 |
| First release | Jan 2011 | Mar 2018 | Apr 2015 |
| Python versions | 3.9 – 3.13 | 3.10 – 3.15 | 3.7 – 3.11 |
| License | MIT | MIT | Apache-2.0 |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.