Skip to content

Commit

Permalink
Merge branch 'release/v0.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
singulared committed Apr 20, 2016
2 parents 989150b + 9758ab3 commit 2b25129
Show file tree
Hide file tree
Showing 14 changed files with 225 additions and 293 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
## 0.0.3 (2016-04-20)

Fix:

- Fix pip install process

## 0.0.2 (2016-04-01)

Features:
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -0,0 +1 @@
include commands.py
7 changes: 0 additions & 7 deletions Makefile

This file was deleted.

10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -39,3 +39,13 @@ bucket = bucket_type.bucket('example')
obj = await bucket.get('key')
print(obj.data)
```

## Testing ##

### Docker based testing ###

You can use docker for running:

```bash
DOCKER_CLUSTER=1 python setup.py test
```
12 changes: 0 additions & 12 deletions aioriak/transport.py
Expand Up @@ -22,18 +22,6 @@ async def create_transport(host='localhost', port=8087, loop=None):
return conn


class AsyncPBStream:
'''
Used internally by RiakPbcAsyncTransport to implement streaming
operations. Implements the async iterator interface.
'''
async def __aiter__(self):
return self

async def __anext__(self):
raise StopIteration


class RPBPacketParser:
''' Riak protobuf packet parser.'''
HEADER_LENGTH = 4
Expand Down
70 changes: 0 additions & 70 deletions docs/aioriak.datatypes.rst

This file was deleted.

70 changes: 0 additions & 70 deletions docs/aioriak.rst

This file was deleted.

54 changes: 0 additions & 54 deletions docs/aioriak.tests.rst

This file was deleted.

56 changes: 56 additions & 0 deletions docs/client.rst
@@ -0,0 +1,56 @@
.. highlight:: python

.. module:: aioriak.client

====================
Client & Connections
====================

To connect to a Riak cluster, you must create a
:py:class:`~aioriak.client.RiakClient` object. The default configuration
connects to a Riak node on ``localhost`` with the default
ports. The below instantiation statements are all equivalent::

from aioriak import RiakClient


client = RiakClient()

async def go():
client = await RiakClient.create(host='127.0.0.1', port=8087)

.. note:: Connections are not established until you attempt to perform
an operation. If the host or port are incorrect, you will not get
an error raised immediately.

--------------
Client objects
--------------

.. currentmodule:: aioriak.client
.. autoclass:: RiakClient

.. autoattribute:: resolver

-----------------------
Client-level Operations
-----------------------

Some operations are not scoped by buckets or bucket types and can be
performed on the client directly:

.. autocomethod:: RiakClient.ping
.. autocomethod:: RiakClient.get_buckets

----------------------------------
Accessing Bucket Types and Buckets
----------------------------------

Most client operations are on :py:class:`bucket type objects
<aioriak.bucket.BucketType>`, the :py:class:`bucket objects
<aioriak.bucket.Bucket>` they contain or keys within those buckets. Use the
``bucket_type`` or ``bucket`` methods for creating bucket types and buckets
that will proxy operations to the called client.

.. automethod:: RiakClient.bucket_type
.. automethod:: RiakClient.bucket

0 comments on commit 2b25129

Please sign in to comment.