Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

HTTP Riak connector for aiohttp

Project Description


riakhttp protocol implementation for aiohttp.web.


import asyncio
import aiohttp
from aiohttp_riak import RiakHTTP, Bucket

async def riak_requests(client):
    bucket = Bucket(client, 'example')

    # Secondary indexes
    indexes = [
        ('example_bin', 'ex'),
        ('example_int', '1')
    await bucket.put('key', 'val', [indexes[0]])
    await bucket.put('key2', 'val2', [indexes[1]])
    await bucket.put('key3', 'val3', indexes)

    keys = await bucket.keys()
    print('KEYS', keys)

    keys = await bucket.index('example_bin', 'ex')
    print('INDEX_BIN', keys)

    keys = await bucket.index('example_int', '1')
    print('INDEX_INT', keys)

    print('GET', await bucket.get('key2'))
    print('DEL', await bucket.delete('key2'))
    print('GET', await bucket.get('key2'))

    print('BUCKETS', await bucket.buckets())
    print('PING', await

    props = await bucket.props()
    print('PROPS', props)

loop = asyncio.get_event_loop()
rh = RiakHTTP('',loop=loop)

content = loop.run_until_complete(



aiohttp_riak BSD license.


0.0.1 (2016-02-03)

  • Init release


aiohttp_riak is written by Veniamin Gvozdikov.


Please add yourself here alphabetically when you submit your first pull request.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.4 kB) Copy SHA256 Hash SHA256
Wheel py3 Feb 3, 2016
(3.9 kB) Copy SHA256 Hash SHA256
Source None Feb 3, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate