skip to navigation
skip to content

Not Logged In

padlock 0.0.2

A lock library with multiple backends

Package Documentation

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()


File Type Py Version Uploaded on Size
padlock-0.0.2.tar.gz (md5) Source 2012-11-19 1KB
  • Downloads (All Versions):
  • 2 downloads in the last day
  • 29 downloads in the last week
  • 126 downloads in the last month