Skip to main content

Python module for an atomic named interprocess lock which is local to the machine.

This means that this lock works across process boundries, so you can use it to lock objects that multiple processes would use.

NamedAtomicLock works by taking advantage of the fact that POSIX defines mkdir to be an atomic operation. So a directory is used as the name.

All UNIX systems are supported, overhead is light, and the lock is global to the system.

The NamedAtomicLock module provides a class NamedAtomicLock which implements the “lock” interface, with familiar “acquire” and “release” methods.

Documentation

See http://htmlpreview.github.io/?https://github.com/kata198/NamedAtomicLock/blob/master/doc/NamedAtomicLock.html

Example

A basic usage example

from NamedAtomicLock import NamedAtomicLock

myLock = NamedAtomicLock(‘myLock’)

if myLock.acquire(timeout=15):

doWork()

myLock.release()

Metadata

Release files for NamedAtomicLock 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NamedAtomicLock 1.1.3
File Size Uploaded Provenance Actions
NamedAtomicLock-1.1.3.tar.gz 16.5 kB Without provenance Details for NamedAtomicLock-1.1.3.tar.gz

Release files / NamedAtomicLock-1.1.3.tar.gz

Download URL NamedAtomicLock-1.1.3.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fe0fd055422ffc16f290625417a953322dd1defe6070cdcd8c65123246237aa9
BLAKE2b-256 checksum
How to use checksums
ae613733fc4c371ece0fa820d8c3186e2d5c7b679bb32f37745508339e8c773e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for NamedAtomicLock 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page