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

Uploaded Python 3

File details

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

File metadata

  • Download URL: k3portlock-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 91e688debc5f9ccea064d0de7055f76b091e910107d9ecd7c850b303e8b5fafd
MD5 62134d87f1393424bef119c4434af297
BLAKE2b-256 ef31ef2234af7067b92984eba4d3d79a1726d0c3453688933a4c0419d8a30d61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k3portlock-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8286076b953bdcc95ad9913ce74dc91731c7b3817e8786911b67f28c0047917c
MD5 082aa54672408955df82e1b41a34e517
BLAKE2b-256 68f6f0c56ec38ae175099f1fc2bace597c1ad7c205abb261b71d7b899b131b3c

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