Skip to main content

Cross-process lock using TCP port binding

Project description

k3portlock

Action-CI 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.6.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.6-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: k3portlock-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 cde736fc426804e9873eea2c5d7333fbaa562d9a9180a28531cb8ec6585608f2
MD5 63eb7bf8f298b7712b26f8c11722fbbc
BLAKE2b-256 4abac758696cd18b8305cf2c10981999190a1210f93030220157ce521b3f30ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k3portlock-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 153ac0802990c1295bbfd757980dae45cee6dbdd2be2a88549c5fa7598f70f4a
MD5 6772e7266e129e1bb4d8a6d7b4d0980a
BLAKE2b-256 519ba01083e12ec30abca13acbaf7be82509fe73f7f417fe6a3687cda6ec15fd

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