Skip to main content

Limits the number of running instances of a Python script

pip install lockexclusive

How to use it

import sys
from time import sleep

from lockexclusive import configure_lock

# it can be used like this:
# configure_lock(maxinstances=1, message="More than one instance running",file=sys.argv[0])

# or without the file argument:
configure_lock(maxinstances=1, message="More than one instance running")

sleep(100)

Metadata

Release files for lockexclusive 0.10

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

Source distribution (sdist)

Source distribution for lockexclusive 0.10
File Size Uploaded Provenance Actions
lockexclusive-0.10.tar.gz 3.4 kB Without provenance Details for lockexclusive-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lockexclusive 0.10
File Interpreter ABI Platform Actions
lockexclusive-0.10-py3-none-any.whl Python 3 none any Details for lockexclusive-0.10-py3-none-any.whl

Total release size: 8.2 kB

Release files / lockexclusive-0.10.tar.gz

Download URL lockexclusive-0.10.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c71eb7ffe48e72d95577e17baeada728fa9dbefe27cefce2a63c76e6eddfff57
BLAKE2b-256 checksum
How to use checksums
4a908e2180c3774f207c74fe7acbe9e9189e44bf4ff751cb6b822c270d9d20ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / lockexclusive-0.10-py3-none-any.whl

Download URL lockexclusive-0.10-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7dc1ed2876bcb334a4b1774af9f4c0eb152ad98743ea66aaf5f42fee04351483
BLAKE2b-256 checksum
How to use checksums
409750f785605316fd288a1f99371314e8e6c40d511be4caef1614306aba458f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for lockexclusive 0.10

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.10 This release

2 release files 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