python-lockfile | file locking library for Python | Mehr ... |
The ‘lockfile’ module exports a ‘FileLock’ class which provides a simple API for locking files. . Other back ends are possible with the same semantics; an example ‘SQLiteFileLock’ class is included, that uses an SQLite database for the lock implementation. . Unlike other Python locking libraries (the Windows ‘msvcrt.locking’ function, the Unix ‘fcntl.flock’, ‘fcntl.lockf’, and the deprecated ‘posixfile’ module), the API is identical across both Unix (including GNU/Linux and MacOS) and Windows platforms. |