k3protlock is a cross-process lock that is implemented with `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
Release history Release notifications | RSS feed
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
File details
Details for the file k3portlock-0.1.2.tar.gz
.
File metadata
- Download URL: k3portlock-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dcae8cc2feea0855a49c3813ebf1a3c408f859b2453e8767b29016926f4810b |
|
MD5 | 18cce4efcada532bd4aabcab4b75f76e |
|
BLAKE2b-256 | 5bbbb7eda92d64a1ab57e01fb837863a133ae93d314337a93107f4720eb67caf |
File details
Details for the file k3portlock-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: k3portlock-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 077bb62ce23b8315691bb84d95a093cd9a572f546d20298a02129b809cce2aa8 |
|
MD5 | 567b71e5f679529ac74b81760ee05f9e |
|
BLAKE2b-256 | 9534b40ba10a685ee2639c8652dcaeaddb337eaea53b1c7da9dab5b99b9606c6 |