Skip to main content

A lock library with multiple backends

Project description

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!

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

padlock-0.0.2.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file padlock-0.0.2.tar.gz.

File metadata

  • Download URL: padlock-0.0.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for padlock-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a8817ada785259f5741b14f94716c25ca9d3ec7bc7d1dc73fea463438334caf4
MD5 cd6802b6dcba1fa750f9173135f56545
BLAKE2b-256 aaa5623274be0c9c04daafd75f275e6c06b3de465c603716200af5547a63931f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page