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.