Comparison
locket vs lockfile vs zc.lockfile
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
File-based locks for Python on Linux and Windows
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install locketPlatform-independent file locking module
Likely abandoned. No release or commit for years (last release over 11 years ago).
$
pip install lockfileBasic inter-process locks
Maintained. Last release 4 weeks ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install zc-lockfileIn short
- locket looks abandoned: avoid it for new projects.
- lockfile looks abandoned: avoid it for new projects.
- zc.lockfile is the most used: 2.6M downloads a month.
- zc.lockfile also has the best Pythie’s Index (58).
Side by side
| Metric | locket | lockfile | zc.lockfile |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 14 | Pythie’s Index: 19 | Pythie’s Index: 58 |
| Verdict | Likely abandoned | Likely abandoned | Maintained |
| Downloads / month | 31.9M | 12.9M | 2.6M |
| Downloads, month over month | +12% | -11% | +1% |
| GitHub stars | 27 | – | 21 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 47 | 164 | 23 |
| Last release | Apr 20, 2022 | Nov 25, 2015 | Nov 5, 2026 |
| Releases, 12 months | 0 | 0 | 1 |
| Weeks with commits | 0 / 26 | – | 2 / 26 |
| Recent contributors | 4 | – | 16 |
| First release | Feb 2013 | Aug 2013 | Jul 2007 |
| Python versions | 3.5 – 3.10 | 3.3 | 3.11 – 3.15 |
| License | BSD-2-Clause | MIT | ZPL-2.1 |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.