Skip to main content

# Python Client for Riak

## Build Status

[![Build Status](https://travis-ci.org/basho/riak-python-client.svg?branch=master)](https://travis-ci.org/basho/riak-python-client)

## Documentation

[Documentation for the Riak Python Client Library](http://basho.github.io/riak-python-client/index.html) is available [here](http://basho.github.io/riak-python-client/index.html).

Documentation for Riak is available [here](http://docs.basho.com/riak/latest).

## Repository Cloning

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.

# Installation

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.

## Riak TS (Timeseries)

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](https://bugs.python.org/issue23517).

## From Source

`sh python setup.py install `

There are additional dependencies on Python packages setuptools and protobuf.

## From PyPI

Official packages are signed and published to [PyPI](https://pypi.python.org/pypi/riak).

To install from [PyPI](https://pypi.python.org/pypi/riak) directly you can use pip.

`sh pip install riak `

# Testing

## Unit Tests

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 `

## Integration Tests

You have two options to run Riak locally - either build from source, or use a pre-installed Riak package.

### Source

To setup the default test configuration, build a Riak node from a clone of github.com/basho/riak:

`sh # check out latest release tag git checkout riak-2.1.4 make locked-deps make rel `

[Source build documentation](http://docs.basho.com/riak/kv/latest/setup/installing/source/).

When building from source, the protocol buffers port will be 8087 and HTTP will be 8098.

### Package

Install using your platform’s package manager ([docs](http://docs.basho.com/riak/kv/latest/setup/installing/))

When installing from a package, the protocol buffers port will be 8087 and HTTP will be 8098.

### Running Integration Tests

  • Ensure you’ve initialized this repo’s submodules:

`sh git submodule update --init `

  • Run the following:

`sh ./tools/setup-riak make integration-test `

Contributors

Metadata

Release files for riak 2.5.5.post48

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

Built distribution (wheel)

Table of built distributions (wheels) for riak 2.5.5.post48
File Interpreter ABI Platform Actions
riak-2.5.5.post48-py2.7.egg Legacy Egg format - - Details for riak-2.5.5.post48-py2.7.egg

Release files / riak-2.5.5.post48-py2.7.egg

Download URL riak-2.5.5.post48-py2.7.egg
Size 447.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
9fd94edfec648341d3d503e09e476a68e9b7a8e6e04cf7880b8f08350418af37
BLAKE2b-256 checksum
How to use checksums
98a1f2619047c720bd3a668b60f680befb162daabef2973bcdcb743f70d07d24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for riak 2.5.5.post48

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

2.5.5.post48 This release

1 release file 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