devel/py-lockfile - The NetBSD Packages Collection

Platform-independent file locking module

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.

Build dependencies

devel/py-pbr devel/py-setuptools pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

lang/python312 lang/python312

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64py310-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64py311-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64py312-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64py310-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64py311-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64py312-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64py39-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64ebpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64ebpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64ebpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64ebpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64ebpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64ebpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64ebpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0aarch64ebpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0alphapy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0alphapy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0alphapy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0alphapy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0alphapy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0alphapy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0alphapy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0alphapy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv4py310-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv4py311-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv4py312-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv4py39-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv4py310-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv4py311-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv4py312-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv4py39-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv6hfpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0earmv7hfpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0i386py310-lockfile-0.12.2nb2.tgz
NetBSD 10.0i386py311-lockfile-0.12.2nb2.tgz
NetBSD 10.0i386py312-lockfile-0.12.2nb2.tgz
NetBSD 10.0i386py310-lockfile-0.12.2nb2.tgz
NetBSD 10.0i386py311-lockfile-0.12.2nb2.tgz
NetBSD 10.0i386py312-lockfile-0.12.2nb2.tgz
NetBSD 10.0i386py39-lockfile-0.12.2nb2.tgz
NetBSD 10.0powerpcpy310-lockfile-0.12.2nb1.tgz
NetBSD 10.0powerpcpy311-lockfile-0.12.2nb1.tgz
NetBSD 10.0powerpcpy38-lockfile-0.12.2nb1.tgz
NetBSD 10.0powerpcpy39-lockfile-0.12.2nb1.tgz
NetBSD 10.0powerpcpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0powerpcpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0powerpcpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0powerpcpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0powerpcpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0powerpcpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0powerpcpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0powerpcpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0sh3elpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0sh3elpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0sh3elpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0sh3elpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0sh3elpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0sh3elpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0sh3elpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0sh3elpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparc64py310-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparc64py311-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparc64py312-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparc64py39-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparc64py310-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparc64py311-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparc64py312-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparc64py39-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparcpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparcpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparcpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparcpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparcpy310-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparcpy311-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparcpy312-lockfile-0.12.2nb2.tgz
NetBSD 10.0sparcpy39-lockfile-0.12.2nb2.tgz
NetBSD 10.0x86_64py310-lockfile-0.12.2nb2.tgz
NetBSD 10.0x86_64py311-lockfile-0.12.2nb2.tgz
NetBSD 10.0x86_64py312-lockfile-0.12.2nb2.tgz
NetBSD 10.0x86_64py310-lockfile-0.12.2nb2.tgz
NetBSD 10.0x86_64py311-lockfile-0.12.2nb2.tgz
NetBSD 10.0x86_64py312-lockfile-0.12.2nb2.tgz
NetBSD 10.0x86_64py39-lockfile-0.12.2nb2.tgz
NetBSD 9.0aarch64py310-lockfile-0.12.2nb2.tgz
NetBSD 9.0aarch64py311-lockfile-0.12.2nb2.tgz
NetBSD 9.0aarch64py312-lockfile-0.12.2nb2.tgz
NetBSD 9.0aarch64py310-lockfile-0.12.2nb2.tgz
NetBSD 9.0aarch64py311-lockfile-0.12.2nb2.tgz
NetBSD 9.0aarch64py312-lockfile-0.12.2nb2.tgz
NetBSD 9.0aarch64py39-lockfile-0.12.2nb2.tgz
NetBSD 9.0alphapy310-lockfile-0.12.2nb2.tgz
NetBSD 9.0alphapy311-lockfile-0.12.2nb2.tgz
NetBSD 9.0alphapy39-lockfile-0.12.2nb2.tgz
NetBSD 9.0alphapy310-lockfile-0.12.2nb2.tgz
NetBSD 9.0alphapy311-lockfile-0.12.2nb2.tgz
NetBSD 9.0alphapy39-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv6hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv6hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv6hfpy312-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv6hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv6hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv6hfpy39-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv6hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv6hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv6hfpy39-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv7hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv7hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv7hfpy312-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv7hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv7hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv7hfpy39-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv7hfpy310-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv7hfpy311-lockfile-0.12.2nb2.tgz
NetBSD 9.0earmv7hfpy39-lockfile-0.12.2nb2.tgz
NetBSD 9.0i386py310-lockfile-0.12.2nb2.tgz
NetBSD 9.0i386py311-lockfile-0.12.2nb2.tgz
NetBSD 9.0i386py312-lockfile-0.12.2nb2.tgz
NetBSD 9.0i386py310-lockfile-0.12.2nb2.tgz
NetBSD 9.0i386py311-lockfile-0.12.2nb2.tgz
NetBSD 9.0i386py312-lockfile-0.12.2nb2.tgz
NetBSD 9.0i386py39-lockfile-0.12.2nb2.tgz
NetBSD 9.0powerpcpy310-lockfile-0.12.2nb2.tgz
NetBSD 9.0powerpcpy311-lockfile-0.12.2nb2.tgz
NetBSD 9.0powerpcpy312-lockfile-0.12.2nb2.tgz
NetBSD 9.0powerpcpy39-lockfile-0.12.2nb2.tgz
NetBSD 9.0powerpcpy27-lockfile-0.12.2nb1.tgz
NetBSD 9.0powerpcpy310-lockfile-0.12.2nb1.tgz
NetBSD 9.0powerpcpy311-lockfile-0.12.2nb1.tgz
NetBSD 9.0powerpcpy37-lockfile-0.12.2nb1.tgz
NetBSD 9.0powerpcpy38-lockfile-0.12.2nb1.tgz
NetBSD 9.0powerpcpy39-lockfile-0.12.2nb1.tgz
NetBSD 9.0powerpcpy310-lockfile-0.12.2nb2.tgz
NetBSD 9.0powerpcpy311-lockfile-0.12.2nb2.tgz
NetBSD 9.0powerpcpy312-lockfile-0.12.2nb2.tgz
NetBSD 9.0powerpcpy39-lockfile-0.12.2nb2.tgz
NetBSD 9.0sparc64py310-lockfile-0.12.2nb2.tgz
NetBSD 9.0sparc64py311-lockfile-0.12.2nb2.tgz
NetBSD 9.0sparc64py312-lockfile-0.12.2nb2.tgz
NetBSD 9.0sparc64py39-lockfile-0.12.2nb2.tgz
NetBSD 9.0sparc64py310-lockfile-0.12.2nb2.tgz
NetBSD 9.0sparc64py311-lockfile-0.12.2nb2.tgz
NetBSD 9.0sparc64py312-lockfile-0.12.2nb2.tgz
NetBSD 9.0x86_64py310-lockfile-0.12.2nb2.tgz
NetBSD 9.0x86_64py311-lockfile-0.12.2nb2.tgz
NetBSD 9.0x86_64py312-lockfile-0.12.2nb2.tgz
NetBSD 9.0x86_64py310-lockfile-0.12.2nb2.tgz
NetBSD 9.0x86_64py311-lockfile-0.12.2nb2.tgz
NetBSD 9.0x86_64py312-lockfile-0.12.2nb2.tgz
NetBSD 9.0x86_64py39-lockfile-0.12.2nb2.tgz
NetBSD 9.3x86_64py310-lockfile-0.12.2nb2.tgz
NetBSD 9.3x86_64py311-lockfile-0.12.2nb2.tgz
NetBSD 9.3x86_64py312-lockfile-0.12.2nb2.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.