openlock
A locking library not depending on inter-process locking primitives in the OS.
Consider a simple situation where multiple processes with the same working directory are trying to access a shared resource.
Create the lock.
l = FileLock()
Acquire the lock.
l.acquire()
Release the lock.
l.release()
Alternatively we may use the context manager protocol.
with FileLock():
...
That's it!
For comprehensive documentation about openlock see https://www.cantate.be/openlock (canonical reference) or https://openlock.readthedocs.io.
Release files for openlock 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openlock-1.2.1.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openlock-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / openlock-1.2.1.tar.gz
| Download URL | openlock-1.2.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0823f5f7c3f18fe83722efcd4550ad9bcd8171a2112b2677fa079cf56136e028
|
|
BLAKE2b-256 checksum How to use checksums |
5a36b3034d55025133b04ec4e5b4c0d828cee6ad18c55c26b0aada4dec119567
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / openlock-1.2.1-py3-none-any.whl
| Download URL | openlock-1.2.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ef71cf236531069214845731be2c92199bdd9044ded0383157676f57e2255a3
|
|
BLAKE2b-256 checksum How to use checksums |
6b234399ec694e43c500f881dc357e69cd3adc0e0db217f7eba628a5afbb97c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|