A Riak client library for Twisted
Python
Latest commit e9a91cb Jul 23, 2014 @calston Merge pull request #33 from jerith/explicit-unicode
Explicit unicode handling
Permalink
Failed to load latest commit information.
debian Updating changelog and version Dec 24, 2012
protobuf + protobuf code generation, proto files from riak_pb (couldn't get ri… Nov 27, 2012
riakasaurus
.gitignore + renamed tests, added get/setClientId Nov 28, 2012
.travis.yml Make sure the right tests run Sep 22, 2013
Makefile + protobuf code generation, proto files from riak_pb (couldn't get ri… Nov 27, 2012
README.rst
requirements.pip
setup.py

README.rst

Riakasaurus

The Riak client library for Twisted with a silly name.

riakasaurus-ci

Installation

From source
# git clone git://github.com/calston/riakasaurus.git # cd riakasaurus # python setup.py install
From PyPi
# easy_install riakasaurus
From pip
# pip install riakasaurus

Usage

Riakasaurus uses inline deferreds, any operation that requires connecting to Riak will return a deferred. The usuage follows from the standard python library as much as possible:

from twisted.internet import reactor
from riakasaurus import riak

# Create a client object

client = riak.RiakClient()

# Create a bucket object
bucket = client.bucket('my_bucket')

# Create a new object
object = bucket.new('penguins', {'colors': ['white', 'black']})

def stored(*a):
    print "Object stored"
    reactor.stop()

# Store returns a deferred, it will create the bucket if needed then store the object
object.store().addCallback(stored)

reactor.run()