Skip to content
generated from pykit3/tmpl

k3protlock is a cross-process lock that is implemented with `tcp` port binding.

License

Notifications You must be signed in to change notification settings

pykit3/k3portlock

Repository files navigation

k3portlock

Action-CI Build Status Documentation Status Package

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

About

k3protlock is a cross-process lock that is implemented with `tcp` port binding.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published