Comparison
fasteners vs locket vs portalocker
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 fastenersFile-based locks for Python on Linux and Windows
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install locketCross-platform file locking, with Redis, PID-file and bounded-semaphore locks
Actively maintained. Last release 5 weeks ago, commits in 15 of the last 26 weeks. A safe choice.
$
pip install portalockerIn short
- locket looks abandoned: avoid it for new projects.
- portalocker is the most used: 47.2M downloads a month.
- portalocker also has the best Pythie’s Index (85).
- Safe default for a new project: portalocker.
Side by side
| Metric | fasteners | locket | portalocker |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 24 | 14 |