Metadata-Version: 2.1
Name: openlock
Version: 1.2.1
Summary: A Python locking library not depending on inter-process locking primitives in the OS
Author-email: "Pasquale Pigazzini, Michel Van den Bergh, Joost VandeVondele" <michel.vandenbergh@uhasselt.be>
Project-URL: Homepage, https://github.com/vdbergh/openlock
Project-URL: Bug Tracker, https://github.com/vdbergh/openlock/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: AUTHORS

# 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.

```python
l = FileLock()
```

Acquire the lock.

```python
l.acquire()
```

Release the lock.

```python
l.release()
```

Alternatively we may use the context manager protocol.

```python
  with FileLock():
    ...
```

That's it!

For comprehensive documentation about `openlock` see [https://www.cantate.be/openlock](https://www.cantate.be/openlock) (canonical reference) or [https://openlock.readthedocs.io](https://openlock.readthedocs.io).
