Comparison
flufl.lock vs locket vs zc.lockfile
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
NFS-safe file locking with timeouts for POSIX and Windows
Actively maintained. Last release 7 weeks ago. A safe choice.
$
pip install flufl-lockFile-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.
- zc.lockfile is the most used: 2.6M downloads a month.
- flufl.lock is better maintained: Pythie’s Index 77 against 58.
Side by side
| Metric | flufl.lock | locket | zc.lockfile |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 77 | 14 |