Skip to main content
This is a class that tries to limit the number of multiple simultaneous executions of a python script, on a local computer. It works by creating folders (using a pattern) under a folder. If the folder is successfully created, the execution gains the lock. Otherwise the script waits up to a configurable time to try to create the folder.

Example:

from lockdir import LockDir
lock = lockdir.LockDir(parallelruns=5, secondswait=300, lockdir="/tmp/lockdir.lock")
if not lock.acquire_lock():
print "Error acquiring lock"
sys.exit(1)
# do the job
lock.clean_lock()

Metadata

Release files for lockdir 0.11

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

Source distribution (sdist)

Source distribution for lockdir 0.11
File Size Uploaded Provenance Actions
lockdir-0.11.tar.gz 1.9 kB Without provenance Details for lockdir-0.11.tar.gz

Release files / lockdir-0.11.tar.gz

Download URL lockdir-0.11.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fc949f6954890bd21a16adb73f9316513fd11441b945810be557b9d75ffd3b0e
BLAKE2b-256 checksum
How to use checksums
f56a87c13c84edf697a0c5999a370141280b57bf599b6369a34747cadfd30c82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for lockdir 0.11

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.

Release history Release notifications | RSS feed

This release

0.11 This release

1 release file No provenance

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