Skip to main content

Cross-process lock using TCP port binding

Project description

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

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

k3portlock-0.1.5.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

k3portlock-0.1.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file k3portlock-0.1.5.tar.gz.

File metadata

  • Download URL: k3portlock-0.1.5.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

Hashes for k3portlock-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1d458deb6048a9ef14ed8d9db2bcd4a2147e747af741132860a41ab31707e49c
MD5 16cc43231097b5ec48800781974b3688
BLAKE2b-256 afd32887deb52c9d094c7fa048f2e15906d0b4c6935f50297e1954a4aed9b49c

See more details on using hashes here.

File details

Details for the file k3portlock-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: k3portlock-0.1.5-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

Hashes for k3portlock-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b09572cd05084d61f689fc997fa3583ba5949d33bf506db41fecc59b9ddaf3ad
MD5 d7fc44674e1bf3fd44db8686e0a6da4d
BLAKE2b-256 aa1aa255f9392c455dffd9eb951da51963c4fa78e48e2cd7c34a921b42b4f678

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page