Cross-process lock using TCP port binding
Project description
k3portlock
k3portlock is a cross-process lock that is implemented with tcp port binding.
k3portlock is a component of pykit3 project: a python3 toolkit set.
k3portlock is a cross-process lock that is implemented with tcp port binding.
Since no two processes could bind on a same TCP port.
k3portlock tries to bind 3 ports on loopback ip 127.0.0.1.
If a k3portlock instance succeeds on binding 2 ports out of 3,
it is considered this instance has acquired the lock.
Install
pip install k3portlock
Author
Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com
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
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 k3portlock-0.1.3.tar.gz.
File metadata
- Download URL: k3portlock-0.1.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79313f91ab478cc1e7a82adb98101157f8d0c4e0e64f0e35710c30f03dd172cc
|
|
| MD5 |
a0f9658695d6dd8b8bce79ad666c0847
|
|
| BLAKE2b-256 |
780687cc43212bfb059730be2e83f0e19a51d41c7b0bc9873f4510205d7ab64e
|
File details
Details for the file k3portlock-0.1.3-py3-none-any.whl.
File metadata
- Download URL: k3portlock-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0641c155cf30a06f576fbabecf6776f78b7d3c56520180cfd84f94fa68e97967
|
|
| MD5 |
d4aba8f42eef5c3261bef1a8762dc94a
|
|
| BLAKE2b-256 |
ad6d0d3344115ae9c8f54d1795e3ff3f1b7b80aa0e80f15a0d959396697ab5f4
|