Comparison
filelock vs locket vs zc.lockfile
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 4 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 locketBasic 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.
- filelock is the most used: 628.5M downloads a month, 20× 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 | zc.lockfile |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 80 | 14 |