Padlock is a Python library that provides a lock through a single, simple interface and offers several backends (actually, for now, only one, until someone contributes another) so you can choose the backend that best fits your needs.
It’s really easy to use. Here, for example, is how to create a cassandra row lock:
>>> import padlock, pycassa
>>> pool = pycassa.ConnectionPool('my_keyspace')
>>> with padlock.get('cassandra, pool=pool, column_family='my_column_family'):
... do_important_shit()
"success!"
Huzzah!
Metadata
Release files for padlock 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| padlock-0.0.2.tar.gz | 2.0 kB | Details |
Release files / padlock-0.0.2.tar.gz
| Download URL | padlock-0.0.2.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8817ada785259f5741b14f94716c25ca9d3ec7bc7d1dc73fea463438334caf4
|
|
BLAKE2b-256 checksum How to use checksums |
aaa5623274be0c9c04daafd75f275e6c06b3de465c603716200af5547a63931f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |