{"library":"filelock","type":"library","category":null,"description":"filelock is a platform-independent file locking library for Python that provides inter-process synchronization via OS-level primitives (fcntl on Unix, msvcrt on Windows) with automatic fallback to soft (file-existence) locking. It supports exclusive locks (FileLock, SoftFileLock), SQLite-backed read-write locks (ReadWriteLock, added in 3.21.0), and async variants (AsyncFileLock, AsyncReadWriteLock, added in 3.25.0). The current stable version is 3.25.2, released March 2026; the project ships multiple releases per month and requires Python ≥ 3.10.","language":"python","status":"active","version":"3.25.2","tags":["file-locking","ipc","concurrency","cross-platform","async","threading","multiprocessing"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install filelock","imports":["from filelock import FileLock","from filelock import Timeout","from filelock import SoftFileLock","from filelock import ReadWriteLock","from filelock import AsyncFileLock","from filelock import AsyncReadWriteLock"]}],"homepage":null,"github":"https://github.com/tox-dev/py-filelock","docs":"https://py-filelock.readthedocs.io","changelog":null,"pypi":"https://pypi.org/project/filelock/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.5,"avg_import_s":0.25,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/filelock/compatibility"}}