Comparison
filelock vs portalocker
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 3 days ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install filelockCross-platform file locking, with Redis, PID-file and bounded-semaphore locks
Actively maintained. Last release 5 weeks ago, commits in 14 of the last 26 weeks. A safe choice.
$
pip install portalockerIn short
- filelock is the most used: 634M downloads a month, 13× more than portalocker.
- Maintenance is comparable: portalocker 85, filelock 80 on Pythie’s Index.
- Safe default for a new project: filelock.
Side by side
| Metric | filelock | portalocker |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 80 | 85 |