Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    riakasaurus 1.0.6

    Download button

    No screenshots available
    Downloads: 143  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Colin Alston | More programs
    The Apache License 2.0 / FREE
    September 27th, 2012, 12:38 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    riakasaurus description

    Riakasaurus is a Twisted client library for Riak

    riakasaurus is based on the fork of txriak from https://bitbucket.org/asi/txriak, which in turn draws most of it's work from the Riak python library by Basho.

    Currently tested under Python 2.6, Python 2.7, and Linux.

    Installation

    From source

    git clone git://github.com/calston/riakasaurus.git # cd riakasaurus # python setup.py install

    From PyPi

    easy_install riakasauru

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



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Riak client | Python library | Python | Riak | client

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM