Skip to content

A locking library for Python with various backend implementations

Notifications You must be signed in to change notification settings

samuraisam/padlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

padlock

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!

Who/What/When/Where

Author: Samuel Sutch (@ssutch)

PyPi: http://pypi.python.org/pypi/padlock/

Docs: http://packages.python.org/padlock/

License: Apache 2.0

I am definitely open to contributions. Please feel free to submit your lock implementation.

About

A locking library for Python with various backend implementations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages