Comparison
fasteners vs flufl.lock vs locket vs lockfile
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A python package that provides useful locks
Low maintenance activity. Last release 16 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install fastenersNFS-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 locketPlatform-independent file locking module
Likely abandoned. No release or commit for years (last release over 11 years ago).
pip install lockfileIn short
- locket looks abandoned: avoid it for new projects.
- lockfile looks abandoned: avoid it for new projects.
- fasteners is the most used: 14.3M downloads a month.
- flufl.lock is better maintained: Pythie’s Index 77 against 24.
Side by side
| Metric | fasteners | flufl.lock | locket | lockfile |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 24 | 77 |