Package Info

python-locket


File-based locks for Python


Development/Languages/Python

Locket implements a lock that can be used by multiple processes provided they use the same path.

Locks largely behave as (non-reentrant) Lock instances from the threading module in the standard library. Specifically, their behaviour is:

  • Locks are uniquely identified by the file being locked, both in the same process and across different processes.
  • Locks are either in a locked or unlocked state.
  • When the lock is unlocked, calling acquire() returns immediately and changes the lock state to locked.
  • When the lock is locked, calling acquire() will block until the lock state changes to unlocked, or until the timeout expires.
  • If a process holds a lock, any thread in that process can call release() to change the state to unlocked.
  • Behaviour of locks after fork is undefined.

License: BSD-2-Clause
URL: http://github.com/mwilliamson/locket.py

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.2.0-bp156.3.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-locket
0.2.0-bp155.2.11 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-locket
0.2.0-bp154.1.30 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-locket
0.2.0-bp153.1.15 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-locket
  • python3-locket
0.2.0-bp152.4.8 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-locket
  • python3-locket
0.2.0-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-locket
  • python3-locket
0.2.0-bp151.2.11 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-locket
  • python3-locket
0.2.0-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-locket
  • python3-locket