Skip to main content

aiohttp_riak

https://travis-ci.org/zloidemon/aiohttp_riak.svg?branch=master https://coveralls.io/repos/zloidemon/aiohttp_riak/badge.svg https://badge.fury.io/py/aiohttp_riak.svg

riakhttp protocol implementation for aiohttp.web.

Example

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 client.ping())

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

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

content = loop.run_until_complete(
    riak_requests(rh))

rh.close()

License

aiohttp_riak BSD license.

CHANGES

0.0.1 (2016-02-03)

  • Init release

Credits

aiohttp_riak is written by Veniamin Gvozdikov.

Contributors

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

Metadata

Release files for aiohttp-riak 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiohttp-riak 0.0.1
File Size Uploaded Provenance Actions
aiohttp_riak-0.0.1.tar.gz 3.9 kB Without provenance Details for aiohttp_riak-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiohttp-riak 0.0.1
File Interpreter ABI Platform Actions
aiohttp_riak-0.0.1-py3-none-any.whl Python 3 none any Details for aiohttp_riak-0.0.1-py3-none-any.whl

Total release size: 10.4 kB

Release files / aiohttp_riak-0.0.1.tar.gz

Download URL aiohttp_riak-0.0.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e40cf0615372774b9d962325f32eecf231ce0eddecfd2c909c7d13f12a12c72b
BLAKE2b-256 checksum
How to use checksums
c13a94d3c5089bcb77abaf993055d52ba2949f5fefb6eb9ed74188a27f7d61f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / aiohttp_riak-0.0.1-py3-none-any.whl

Download URL aiohttp_riak-0.0.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
432d46c730b6c498ff29f7cf2a5bcbbddfde827f60cf2424c65dede4aacf55ee
BLAKE2b-256 checksum
How to use checksums
611f6b247dfc4e04f8833b602736eb641b5ad6ae82a31ff59354a5bcf066dcb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for aiohttp-riak 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page