Skip to main content

Aerospike Client Library for Python

Project description

Build Release Wheel Downloads License

Dependencies

The Python client for Aerospike works with Python 2.7, 3.4, 3.5, 3.6 running on 64-bit OS X 10.9+ and Linux.

NOTE: The following dependencies only apply to installations that build from source on linux, or OS X installations. For client>=3.8.0 and pip>=19.0 on linux platforms, can skip to “Install” section.

The client depends on:

  • Python devel package

  • OpenSSL

  • The Aerospike C client

RedHat 6+ and CentOS 6+

The following are dependencies for:

  • RedHat Enterprise (RHEL) 6 or newer

  • CentOS 6 or newer

  • Related distributions which use the yum package manager

sudo yum install python-devel
sudo yum install openssl-devel

Debian 6+ and Ubuntu 14.04+

The following are dependencies for:

  • Debian 6 or newer

  • Ubuntu 14.04 or newer

  • Related distributions which use the apt package manager

sudo apt-get install python-dev
sudo apt-get install libssl-dev
  • You may also need libz:

sudo apt-get install zlib1g-dev

OS X

By default OS X will be missing command line tools. On Mavericks (OS X 10.9) and higher those can be installed without Xcode.

xcode-select --install # install the command line tools, if missing

OpenSSL can be installed through the Homebrew OS X package manager.

brew install openssl

Install

Aerospike Python Client can be installed using pip:

pip install aerospike

# client >=3.8.0 will attempt a manylinux2010 wheel installation for linux distros
# to force a pip install from source:
pip install aerospike --no-binary :all:

# to troubleshoot pip versions >= 6.0 you can
pip install --no-cache-dir aerospike

# to trouleshoot installation on OS X El-Capitan (10.11) or OS X Sierra (10.12)
pip install --no-cache-dir --user aerospike

If you run into trouble installing the client on a supported OS, you may be using an outdated pip. Versions of pip older than 7.0.0 should be upgraded, as well as versions of setuptools older than 18.0.0.

OS X Installation

Upgrading pip on OS X El-Capitan (10.11) or OS X Sierra(10.12) runs into SIP issues with pip install --user aerospike as the recommended workaround to install aerospike on those versions of OS X.

Attempting to install the client with pip for the system default Python may cause permissions issues when copying necessary files. In order to avoid those issues the client can be installed for the current user only with the command: pip install --user aerospike

If the version of Python is not in the officially supported list, or the --install-option argument is provided, pip will attempt to compile the client from source. Please see the build directions in the GitHub repository to troubleshoot any issues caused by compiling the client.

Build

For instructions on manually building the Python client, please refer to the BUILD.md file in this repo.

Documentation

Documentation is hosted at aerospike-python-client.readthedocs.io and at aerospike.com/apidocs/python.

Examples

Example applications are provided in the examples directory of the GitHub repository

For examples, to run the kvs.py:

python examples/client/kvs.py

Benchmarks

To run the benchmarks the python module ‘tabulate’ need to be installed. In order to display heap information the module guppy must be installed. Note that guppy is only available for Python2. If guppy is not installed the benchmarks will still be runnable. Benchmark applications are provided in the benchmarks directory of the GitHub repository

By default the benchmarks will try to connect to a server located at 127.0.0.1:3000 , instructions on changing that setting and other command line flags may be displayed by appending the –help argument to the benchmark script. For example:

python benchmarks/keygen.py --help

License

The Aerospike Python Client is made availabled under the terms of the Apache License, Version 2, as stated in the file LICENSE.

Individual files may be made available under their own specific license, all compatible with Apache License, Version 2. Please see individual files for details.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

aerospike-3.8.0.tar.gz (134.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aerospike-3.8.0-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl (434.1 kB view details)

Uploaded CPython 3.7mmacOS 10.10+ Intel (x86-64, i386)macOS 10.10+ x86-64macOS 10.11+ Intel (x86-64, i386)macOS 10.11+ x86-64macOS 10.12+ Intel (x86-64, i386)macOS 10.12+ x86-64macOS 10.6+ Intel (x86-64, i386)macOS 10.9+ Intel (x86-64, i386)macOS 10.9+ x86-64

aerospike-3.8.0-cp36-cp36m-manylinux2010_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

aerospike-3.8.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl (434.1 kB view details)

Uploaded CPython 3.6mmacOS 10.10+ Intel (x86-64, i386)macOS 10.10+ x86-64macOS 10.11+ Intel (x86-64, i386)macOS 10.11+ x86-64macOS 10.12+ Intel (x86-64, i386)macOS 10.12+ x86-64macOS 10.6+ Intel (x86-64, i386)macOS 10.9+ Intel (x86-64, i386)macOS 10.9+ x86-64

aerospike-3.8.0-cp35-cp35m-manylinux2010_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

aerospike-3.8.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl (434.1 kB view details)

Uploaded CPython 3.5mmacOS 10.10+ Intel (x86-64, i386)macOS 10.10+ x86-64macOS 10.11+ Intel (x86-64, i386)macOS 10.11+ x86-64macOS 10.12+ Intel (x86-64, i386)macOS 10.12+ x86-64macOS 10.6+ Intel (x86-64, i386)macOS 10.9+ Intel (x86-64, i386)macOS 10.9+ x86-64

aerospike-3.8.0-cp34-cp34m-manylinux2010_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.4mmanylinux: glibc 2.12+ x86-64

aerospike-3.8.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl (436.1 kB view details)

Uploaded CPython 2.7macOS 10.10+ Intel (x86-64, i386)macOS 10.10+ x86-64macOS 10.11+ Intel (x86-64, i386)macOS 10.11+ x86-64macOS 10.12+ Intel (x86-64, i386)macOS 10.12+ x86-64macOS 10.6+ Intel (x86-64, i386)macOS 10.9+ Intel (x86-64, i386)macOS 10.9+ x86-64

aerospike-3.8.0-cp27-cp27mu-manylinux2010_x86_64.whl (3.8 MB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

aerospike-3.8.0-cp27-cp27m-manylinux2010_x86_64.whl (3.8 MB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

File details

Details for the file aerospike-3.8.0.tar.gz.

File metadata

  • Download URL: aerospike-3.8.0.tar.gz
  • Upload date:
  • Size: 134.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/19.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.10

File hashes

Hashes for aerospike-3.8.0.tar.gz
Algorithm Hash digest
SHA256 f76314fffe1c9c42a0e17253f8678148d8a4c9d4fccf704216747fa9a418cbb4
MD5 5af1d1801ce117df34ba63e20e2f1901
BLAKE2b-256 989e0bddce8e521d07f1903a54bc9bf1fd9679dcf9080d546ae060d99e80caf1

See more details on using hashes here.

File details

Details for the file aerospike-3.8.0-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-3.8.0-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9242c140f9c581b73ee95dab56ab67f1b229202991178f3f042ea340692172e9
MD5 7de3c1f1e170ad069154dc7f83722142
BLAKE2b-256 733c999aeaafaf1cf67aac213c96202714a55452437c3fe41a443298a32ba228

See more details on using hashes here.

File details

Details for the file aerospike-3.8.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: aerospike-3.8.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/19.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.10

File hashes

Hashes for aerospike-3.8.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8c494c7f6dc82c8207a50c021f92b4c943545ee0c7ca15054e7a7aea9e28160a
MD5 483fdfead0b0e11b2aefa2b852d94b80
BLAKE2b-256 5c35b53b8cf4efd90c6b93bd5491e5d42a11c49027d9b086a2b166f308bef703

See more details on using hashes here.

File details

Details for the file aerospike-3.8.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-3.8.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7a40802aa9b2ff14675ed936d6fc01bdb967c38f117415f11e14dd3ce1134ed5
MD5 ed1f8e0f32440babb5438a13f18fbbb7
BLAKE2b-256 fc7233e782beb84a841b457dc8f4000676fba3979488dc1c059fb9da24a17ddd

See more details on using hashes here.

File details

Details for the file aerospike-3.8.0-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: aerospike-3.8.0-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/19.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.10

File hashes

Hashes for aerospike-3.8.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 de543bd15ba7f741eb74f9e4007c9ee1c3efc6b508d1746bb3efba4c800dd207
MD5 f8e276104f710906cd02f2f40acc9a6f
BLAKE2b-256 00ffb8bdc1560696eb65f7f8af868c7477b5ed746708404aafdfb81ad8860276

See more details on using hashes here.

File details

Details for the file aerospike-3.8.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-3.8.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bab6b1a5c597104783bda26a0f43356946f20a511e714614cbd16871787091ca
MD5 1c4a6232104f6e4ea222566af579d353
BLAKE2b-256 2d3078c242559250154165b5a0bfc157060177b62817e3e47fbd5f9bc88bf051

See more details on using hashes here.

File details

Details for the file aerospike-3.8.0-cp34-cp34m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: aerospike-3.8.0-cp34-cp34m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.4m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/19.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.10

File hashes

Hashes for aerospike-3.8.0-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 be208bfa3ace869abdc39a6eca29f575837b57bed776b4061cee549d482a0ae9
MD5 67a93fd3f14bf5d8714b3e260781434f
BLAKE2b-256 2b7af23bcd3ac49716427321c40c12164e995116f2ef3d0dc14abd9875e67517

See more details on using hashes here.

File details

Details for the file aerospike-3.8.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-3.8.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.macosx_10_12_intel.macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 29ed2af9a4fdc2a7d85673d28e95fd465953385e7c62795aed9d9faa4dce0b6a
MD5 a97950eae04ac8a8f1a023849b59a5de
BLAKE2b-256 42d8208aecfe5c6c2045a9e3dab144c8fba8766c4d1411bc96de4a7cb8b2cc13

See more details on using hashes here.

File details

Details for the file aerospike-3.8.0-cp27-cp27mu-manylinux2010_x86_64.whl.

File metadata

  • Download URL: aerospike-3.8.0-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/19.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.10

File hashes

Hashes for aerospike-3.8.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d644952912af24e1cb130476947d3c62fd0dc519150e331970bdec5ed708c3c7
MD5 1691c7e10fbde0dbe74a12e0a61b9c6e
BLAKE2b-256 1ea464bc1ad512a2c03753fdf0811ad1962dd125b64a7a36958d690bac983a12

See more details on using hashes here.

File details

Details for the file aerospike-3.8.0-cp27-cp27m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: aerospike-3.8.0-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/19.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.10

File hashes

Hashes for aerospike-3.8.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4e659b3920fe7bb396e8a4bb19c26f44e53b1873c9af575ed20142580e14ceed
MD5 4365fadcd383f6dad5c2a8a9ff515537
BLAKE2b-256 a43b3f3fe6fdec086c7342d3f8f00cc42d9a93d5b7eeac0a3789f919325c21d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page