Comparison
filelock vs locket
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A platform independent file lock.
Actively maintained. Last release 3 days ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install filelockFile-based locks for Python on Linux and Windows
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install locketIn short
- locket looks abandoned: avoid it for new projects.
- filelock is the most used: 634M downloads a month, 21× more than locket.
- filelock also has the best Pythie’s Index (80).
- Safe default for a new project: filelock.
Side by side
| Metric | filelock | locket |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 80 | Pythie’s Index: 14 |
| Verdict | Actively maintained | Likely abandoned |
| Downloads / month | 634M | 30.7M |
| Downloads, month over month | +10% | +8% |
| GitHub stars | 991 | 27 |
| Stars, last 7 days | – | – |
| Direct dependents | 0 | 47 |
| Last release | Nov 27, 2026 | Apr 20, 2022 |
| Releases, 12 months | 71 | 0 |
| Weeks with commits | 26 / 26 | 0 / 26 |
| Recent contributors | 5 | 4 |
| First release | Jul 2014 | Feb 2013 |
| Python versions | 3.11 – 3.15 | 3.5 – 3.10 |
| License | MIT | BSD-2-Clause |
| Known vulnerabilities | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.