filelock
A platform independent file lock.
Install
filelock on PyPI
pip
pip install filelockuv
uv add filelockpoetry
poetry add filelockPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the 100 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: filelock-3.32.3-py3-none-any.whl
Keywords: application, cache, directory, log, user
About filelock
from the package's own PyPI description — quoted content, verbatim
filelock
PyPI (image) Supported Python versions (image) Documentation status (image) Downloads (image) check (image)
For more information checkout the official documentation.
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
filelock provides a platform-independent file locking mechanism for coordinating access to files across multiple processes or threads.
Active maintenance with recent releases; zero runtime dependencies and a pure-Python wheel keep installation friction minimal.
MIT license permits unrestricted use, modification, and distribution in both open and closed-source projects.
Usage
pip install filelock==3.32.3
from filelock import FileLock
with FileLock('myfile.lock'):
# Critical section protected by lock
pass
Requires Python 3.10 or later.
Verdict: filelock is a stable, actively maintained top-100 PyPI package with no known vulnerabilities, zero dependencies, and permissive MIT licensing. It is production-ready for any application needing cross-platform file locking.
Similar packages
permissive · top 1,000 on PyPI
toxpermissive · top 1,000 on PyPI
snowballstemmerpermissive · top 1,000 on PyPI
locketpermissive · top 1,000 on PyPI
python-discoverypermissive · top 1,000 on PyPI
portalockerpermissive · top 1,000 on PyPI
diskcachepermissive · top 1,000 on PyPI
xxhashpermissive · top 1,000 on PyPI
msal-extensionspermissive · top 1,000 on PyPI
platformdirspermissive · top 100 on PyPI