FreeBSD.software
Home/devel/py311-lockfile

py311-lockfile

0.12.2_1devel

Platform-independent file locking module

The lockfile module exports a FileLock class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the Unix fcntl.flock, fcntl.lockf and the deprecated posixfile module, the API is identical across both Unix (including Linux and Mac) and Windows platforms. The lock mechanism relies on the atomic nature of the link (on Unix) and mkdir (on Windows) system calls.

$pkg install py311-lockfile
github.com/smontanaro/pylockfile
Origin
devel/py-lockfile
Size
111KiB
License
MIT
Maintainer
bofh@FreeBSD.org
Dependencies
1 packages
Required by
2 packages

Dependencies (1)

Required By (2)