Skip to main content

Distributed lock with postgres.

Project description

Installing

To install :

pip install tusk

Usage

Tusk tries to be as simple as possible

l = Lock("inspector", "postgres://localhost/noclue")
l.acquire(blocking=True)
l.release()
with l:
    process()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tusk, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size tusk-0.3.0.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page