Skip to main content

Official Python client for https://lockable.dev

Project description

Lockable-dev

Official Python client for https://lockable.dev

Lockable is an easy-to-use, language-independent locking mechanism for multi-process workloads. Think of it as flock, but for distributed systems which may not be sharing a filesystem.

Learn more

Installation

pip install lockable-dev

Usage

from lockable import Lock
with Lock('my-lock-name'):
    #do stuff

Development

Testing

make test

Building and pushing changes

If you want to push to PiPy, credentials go in .env.local. See .env.example for a template.

# Just build
make build

#Build and upload latest version to TestPyPi
make test-publish

#Build and upload latest version to TestPyPi
make publish

Project details


Download files

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

Source Distribution

lockable.dev-0.1.2.tar.gz (4.3 kB view hashes)

Uploaded source

Built Distribution

lockable.dev-0.1.2-py3-none-any.whl (5.2 kB view hashes)

Uploaded py3

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