A package to lock ports
Project description
portlock
A simple library you can use to ensure that only one copy of your script is running at once
Works on *NIX systems, not sure about Windows.
from portlock import ensure_singleton
def main():
ensure_singleton(6000)
# If you reach here, you can ensure that no other proccess
# is running on port 6000
...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
portlock-0.0.5.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file portlock-0.0.5.tar.gz.
File metadata
- Download URL: portlock-0.0.5.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
730b33fc8b969fd1257b6762938e36e277e2558651cfb046671cb133afd7f8b1
|
|
| MD5 |
a298c1931931f045e4723c88bc4a7e19
|
|
| BLAKE2b-256 |
f668d1532c7cb898a7095b1359d94888b27d826190e93bf96928212f29c099ec
|
File details
Details for the file portlock-0.0.5-py3-none-any.whl.
File metadata
- Download URL: portlock-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5da2733df2b505084d8f6e89a8a16a4b10dfb5302e55a865b40f6a89cb72bab9
|
|
| MD5 |
df2a9f87dd7ff6acdf247264aa4d47c2
|
|
| BLAKE2b-256 |
8e5f86a806649d95fdc00948888414191ea209f71a4c6c146bf214dc1bcb6a28
|