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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2275d0b0f4efd5b53859f483090ebcde02fa50f4ca0540964f4caa92de227fea |
|
MD5 | 5b49dd55d5183ce700583535e7421894 |
|
BLAKE2b-256 | d1a509f5537127c7887681440fd8fd34939ea6f1b256233881283ec7e1c0c581 |