Documentation for the Riak Python Client Library is available here.
Documentation for Riak is available here.
NOTE: please clone this repository using the --recursive
argument to git clone
or follow the clone with git submodule update --init
. This repository uses two submodules.
The recommended versions of Python for use with this client are Python 2.7.8
(or greater, 2.7.11
as of 2016-06-21
), 3.3.x
, 3.4.x
and 3.5.x
. The latest version from each series should be preferred. Older versions of the Python 2.7.X
and 3.X
series should be used with caution as they are not covered by integration tests.
You must use version 2.7.11
, 3.4.4
or 3.5.1
(or greater within a version series). Otherwise you will be affected by this Python bug.
sh
python setup.py install
There are additional dependencies on Python packages setuptools
and protobuf
.
Official packages are signed and published to PyPI.
To install from PyPI directly you can use pip
.
sh
pip install riak
Unit tests will be executed via tox
if it is in your PATH
, otherwise by the python2
and (if available), python3
executables:
sh
make unit-test
You have two options to run Riak locally - either build from source, or use a pre-installed Riak package.
To setup the default test configuration, build a Riak node from a clone of github.com/basho/riak
:
```sh
git checkout riak-2.1.4 make locked-deps make rel ```
When building from source, the protocol buffers port will be 8087
and HTTP will be 8098
.
Install using your platform's package manager (docs)
When installing from a package, the protocol buffers port will be 8087
and HTTP will be 8098
.
sh
git submodule update --init
sh
./tools/setup-riak
make integration-test
tobixx
I'm use riak-python-client 2.7.0. for riak kv 2.1.1 and riak-cs 2.1.0. I created bucket using protocol pbc, but s3cmd don't see them. Bucket exists in Riak KV and my script show me them. How can i create s3 bucket using riak python client and pbc protocol?
my source code ```
set_protocol = 'pbc' set_host = '10.32.101.72' set_pb_port = 8087 set_nodes = [{'host':'10.32.101.72', 'pb_port':8087}]
myclient = riak.RiakClient(protocol = set_protocol, host = set_host, http_port = set_pb_port, nodes = set_nodes)
print(myclient.get_buckets())
mybucket = myclient.bucket('new_bucket')
print(myclient.get_keys(mybucket))
obj = riak.RiakObject(myclient, mybucket, 'test_key' ) obj.data = 'asdfasdfasdf' obj.store()
print(mybucket.get_keys())
fetched1 = mybucket.get('test_key') print(fetched1.data)'
```
Converting string to binary
[x] Bug (Typo)
defintion
, however expect to see definition
.accoring
, however expect to see according
.Semi-automated issue generated by https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md
To avoid wasting CI processing resources a branch with the fix has been prepared but a pull request has not yet been created. A pull request fixing the issue can be prepared from the link below, feel free to create it or request @timgates42 create the PR. Alternatively if the fix is undesired please close the issue with a small comment about the reasoning.
https://github.com/timgates42/riak-python-client/pull/new/bugfix_typos
Thanks.
in riak/codecs/init.py ```
from riak.codecs import Codec Msg = collections.namedtuple('Msg', ['msg_code', 'data', 'resp_code'], verbose=False) ``` TypeError: namedtuple() got an unexpected keyword argument 'verbose'
riak-python-client 2.7.0 https://github.com/basho/riak-python-client/blob/master/RELNOTES.md
riak-python-client 2.6.1 https://github.com/basho/riak-python-client/blob/master/RELNOTES.md
riak-python-client 2.5.5 https://github.com/basho/riak-python-client/blob/master/RELNOTES.md
riak-python-client 2.5.3 https://github.com/basho/riak-python-client/blob/master/RELNOTES.md
riak-python-client 2.5.2 https://github.com/basho/riak-python-client/blob/master/RELNOTES.md
riak-python-client 2.5.1 https://github.com/basho/riak-python-client/blob/master/RELNOTES.md