File-based locks for Python for Linux and Windows
37.49 KB
built 2026-10-17 10:51:50 GMT
Description
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.
Dependencies
16 totalRequires15
- (python3dist(spur) < 0.4~~ with python3dist(spur) >= 0.3.7)
- pyproject-rpm-macros
- python3-devel
- python3-devel
- python3dist(packaging)
- python3dist(pip) >= 19
- python3dist(pytest)
- python3dist(setuptools) >= 40.8
- python3dist(tox)
- python3dist(tox-current-env) >= 0.0.16
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(DynamicBuildRequires) <= 4.15.0-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(RichDependencies) <= 4.12.0-1
- rpmlib(TildeInVersions) <= 4.10.0-1
Provides1
- python3-locket = 1.0.0-21.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
3Name ![]() |
Size |
|---|---|
| 17.patch | 490.00 B |
| locket-1.0.0.tar.gz | 6.39 KB |
| python-locket.spec | 8.31 KB |
Files 1–3 of 3
Component of
buildroots that installed this RPMNo Buildroots
