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.9.0.tar.gz (142.0 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.9.0-cp36-cp36m-manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

aerospike-3.9.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 (445.2 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.9.0-cp35-cp35m-manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

aerospike-3.9.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 (445.2 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.9.0-cp34-cp34m-manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.4mmanylinux: glibc 2.12+ x86-64

aerospike-3.9.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 (448.3 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.9.0-cp27-cp27mu-manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

aerospike-3.9.0-cp27-cp27m-manylinux2010_x86_64.whl (3.9 MB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: aerospike-3.9.0.tar.gz
  • Upload date:
  • Size: 142.0 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.9.0.tar.gz
Algorithm Hash digest
SHA256 b466c28e9c66dda3d4fb5b25b7dd0371cfa0177f56b1da62eabe6f350a0d291f
MD5 98f97f2c72816955a6ea3467f950a703
BLAKE2b-256 424e6adf90884672d50a5f2743b810b5292ea184f92b9df8cddbb1e75c3cdcaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-3.9.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.9 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.9.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1bccacfe767b8500b2f892c70b76101c1b1337d7ab4e70c4fb0056c957e61de6
MD5 0a49ec6088dd5da4f43cb11ad7307a54
BLAKE2b-256 6895119f7082a2737c5fb18e53d120964cab7ece6508405bd6924e22bf9aaa2a

See more details on using hashes here.

File details

Details for the file aerospike-3.9.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.9.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 e67bd6f9f027e181c3509128fd32345881eab9bcbf5c9b49eccb0f477374eec6
MD5 f5155a02a80019dded64e3c2535492b3
BLAKE2b-256 268653fb5eb2f41903bb2b40cd58962e3fc5994beaeb1ac1b6fa96d7dbf9336b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-3.9.0-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.9 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.9.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dbbfa0e64172e1566bb9e95936fdb7312622fb6a913677ba7d67b0b95e3c6213
MD5 d17ef43efe84cae271bba1179a4034ef
BLAKE2b-256 011a04bffb1554f9f05c18c154161d5a29a7f81b4cdd49b62c43c0bed4b72ce7

See more details on using hashes here.

File details

Details for the file aerospike-3.9.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.9.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 fc88993066e5ddfe22bc0e3485806c474fbaac74f08c887c6903e0088cac6d3a
MD5 24dd520403332dc10207581fdc1ec26e
BLAKE2b-256 4985707c3295ce419c973e81d73b794fa21e40c512e5d69498fe5505db084613

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-3.9.0-cp34-cp34m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.9 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.9.0-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8d1f3da37b1c40dc0e07f1dcdd15ddee0ec3ddf6deda64f02666cb55e3bdeb59
MD5 d3362f438cf1e3ea67a110182e62b73a
BLAKE2b-256 0dac4f07557a897aad86b4583916eb17a46a9963d9e64901cd3c92f38781ba11

See more details on using hashes here.

File details

Details for the file aerospike-3.9.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.9.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 1dd149146decc825dafe6d44da716e897c498089a3da40cedf1289bbc868819a
MD5 2ac8bb2e572f7580613f650a3da03979
BLAKE2b-256 e1c0d16cf8a37c68f82db5de139a04597d7f6773110e192c84242f904a56548b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-3.9.0-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.9 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.9.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 49a0305df2861184242607c77ac8c1f447c414aea454591fe2de0f26f2c9fa18
MD5 bb287eed600f1b85dbef8791d47854e9
BLAKE2b-256 d10c5a0d30f7597e8d7a9de79575c7e2ec68e08471a62edffc67f037d238901e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-3.9.0-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.9 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.9.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 64e8b7550a085f814e71e483399bca9c6a9add0575670ef806ac19f37fea86f0
MD5 478daa2e46d3e25174838ada520c3566
BLAKE2b-256 a8d5104367fbcb203254d411634319aff7673f3ba837feda103f6e86920717a9

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