Comparison
lefthook vs pre-commit vs prek
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Git hooks manager. Fast, powerful, simple.
Actively maintained. Last release 4 days ago, commits in 19 of the last 26 weeks. A safe choice.
$
pip install lefthookA framework for managing and maintaining multi-language pre-commit hooks.
Actively maintained. Last release 7 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
$
pip install pre-commitA fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit, reimagined.
Actively maintained. Last release 4 days ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install prekIn short
- pre-commit is the most used: 155M downloads a month, 12× more than prek.
- Maintenance is comparable: lefthook 86, prek 84, pre-commit 77 on Pythie’s Index.
- prek is the newcomer: first released Aug 2025.
- Safe default for a new project: pre-commit.
Side by side
| Metric | lefthook | pre-commit | prek |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 86 | 77 |