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
Hashes for k3portlock-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 077bb62ce23b8315691bb84d95a093cd9a572f546d20298a02129b809cce2aa8 |
|
MD5 | 567b71e5f679529ac74b81760ee05f9e |
|
BLAKE2b-256 | 9534b40ba10a685ee2639c8652dcaeaddb337eaea53b1c7da9dab5b99b9606c6 |