Comparison
fasteners vs filelock vs flufl.lock vs zc.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 fastenersA platform independent file lock.
Actively maintained. Last release 5 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install filelockNFS-safe file locking with timeouts for POSIX and Windows
Actively maintained. Last release 7 weeks ago. A safe choice.
pip install flufl-lockBasic 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
- filelock is the most used: 638.8M downloads a month, 44× more than fasteners.
- Maintenance is comparable: filelock 80, flufl.lock 77, zc.lockfile 58, fasteners 24 on Pythie’s Index.
- fasteners is growing fastest: downloads +14% over the last month.
- Safe default for a new project: filelock.
Side by side
| Metric | fasteners | filelock | flufl.lock | zc.lockfile |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 24 | 80 |