BSD Ports

devel/py-lockfile 0.12.2nb3 NetBSD

Platform-independent file locking module

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
65c9b1c391
License
mit
Categories
devel, python
Package size
20.8 KiB, 107.0 KiB installed

Description

The lockfile package exports a LockFile class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the fcntl.lockf and flock functions, 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. An implementation based on SQLite is also provided, more as a demonstration of the possibilities it provides than as production-quality code.

In the other systems

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

Install

Binary package:

pkgin install py312-lockfile

From pkgsrc:

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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.12.2nb3
NetBSD 10.1 aarch640.12.2nb2
SmartOS / illumos x86_640.12.2nb3
macOS 15 arm640.12.2nb3

Dependencies

Run dependencies 1
Required by 1

Configuration

No options to configure.

Service scripts
none
Flavors
py313-lockfile-0.12.2nb3, py314-lockfile-0.12.2nb3

Commit history 1

DateCommitCreditsLog message
65c9b1c391 adam Forget Python 3.10