Distributed lock with postgres.
To install :
pip install tusk
Tusk tries to be as simple as possible
l = Lock("inspector", "postgres://localhost/noclue") l.acquire(blocking=True) l.release() with l: process()
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.