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
- Lockable website: https://lockable.dev
- Lockable Python client on GitHub: https://github.com/lockable-dev/lockable-py
- Docs: https://docs.lockable.dev
- Docs on GitHub: https://github.com/lockable-dev/lockable-docs
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
Release history Release notifications | RSS feed
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.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for lockable.dev-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74e99a2be9f34a538b01ba7a9d35f5cf0248af9e0e4c39776ab7e08f541930fb |
|
MD5 | b5fca7da9c18972ae5ee88f23c515050 |
|
BLAKE2b-256 | 1a483d617f17722f2ad8879454df3c82e1302d52ff05532fff7814af75884509 |