Comparison
modernize vs pyupgrade vs refurb
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A hack on top of fissix (lib2to3 fork) for modernizing code for hybrid codebases.
Low maintenance activity. Last release over 6 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install modernizeA tool to automatically upgrade syntax for newer versions.
Maintained. Last release 8 weeks ago, commits in 12 of the last 26 weeks. Weaker on release cadence and contributor spread.
pip install pyupgradeA tool for refurbishing and modernizing Python codebases
Low maintenance activity. Last release 8 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install refurbIn short
- pyupgrade is the most used: 2M downloads a month, 21× more than refurb.
- pyupgrade also has the best Pythie’s Index (70).
- modernize is growing fastest: downloads +32% over the last month.
- Safe default for a new project: pyupgrade.