BSD Ports

devel/py-lockfile 0.12.2_1 DragonFly

Platform-independent file locking module

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
19.3 KiB, 111.4 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlydevel/py-lockfile0.12.2_1
FreeBSDdevel/py-lockfile0.12.2_1
NetBSDdevel/py-lockfile0.12.2nb3
MidnightBSDdevel/py-lockfile0.12.2_1
HardenedBSDdevel/py-lockfile0.12.2_1
GhostBSDdevel/py-lockfile0.12.2_1

Install

Binary package:

pkg install py311-lockfile

From DPorts:

cd /usr/dports/devel/py-lockfile && make install clean

Dependencies

Run dependencies 1
Required by 1