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 3.5, 3.6, 3.7, 3.8 running on 64-bit OS X 10.9+ and Linux.

NOTE: Python client 5.0.0 and up MUST be used with Aerospike server 4.9 or later. If you see the error “-10, ‘Failed to connect’”, please make sure you are using server 4.9 or later.

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-6.0.0.tar.gz (195.7 kB view details)

Uploaded Source

Built Distributions

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

aerospike-6.0.0-cp39-cp39-manylinux2010_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

aerospike-6.0.0-cp39-cp39-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 (1.8 MB view details)

Uploaded CPython 3.9macOS 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-6.0.0-cp38-cp38-manylinux2010_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

aerospike-6.0.0-cp38-cp38-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 (1.8 MB view details)

Uploaded CPython 3.8macOS 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-6.0.0-cp37-cp37m-manylinux2010_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

aerospike-6.0.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 (1.8 MB 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-6.0.0-cp36-cp36m-manylinux2010_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

aerospike-6.0.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 (1.8 MB 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

File details

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

File metadata

  • Download URL: aerospike-6.0.0.tar.gz
  • Upload date:
  • Size: 195.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for aerospike-6.0.0.tar.gz
Algorithm Hash digest
SHA256 84a743cc7732d56d610d3970fdd837b40f137085384ced88fd1aaa441902b349
MD5 2366653eafa2b852e65d6124cfd9600f
BLAKE2b-256 31977fc0e50d175d368b973095ec6183466147569aa9607675b7dc90ec0e0088

See more details on using hashes here.

File details

Details for the file aerospike-6.0.0-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: aerospike-6.0.0-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for aerospike-6.0.0-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3976383decf736e0f0460a2e1587c0c73655b4856080a6e0925b423d2dec9853
MD5 ac377893545f6fc1c95472ce818e25a1
BLAKE2b-256 c05138d8ff8725f5a9e69172349fa1f71d13e40922fd92591727bd33133be216

See more details on using hashes here.

File details

Details for the file aerospike-6.0.0-cp39-cp39-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-6.0.0-cp39-cp39-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 12b629429cf785dc4a278e26e4c5a4cd70789ef39e0f3f1fb588908838099d11
MD5 45b74990e2a8d93caee33a5a6bd22fe5
BLAKE2b-256 415e3c73e13c619b1b9923be32f2d3f5e6d3441ae2f5593b127fa9650ed592fd

See more details on using hashes here.

File details

Details for the file aerospike-6.0.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: aerospike-6.0.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for aerospike-6.0.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3ec1ad33706ec425079ac3feed04c5a96e4f9bcff864188fbab0347451a0bdf1
MD5 f4259adc2a24906cb7d38d9ee0cd4736
BLAKE2b-256 0c1209d78d16b864b358d95b43f83786b9ea4eb9d1d5b0f32a7a1708dce0792a

See more details on using hashes here.

File details

Details for the file aerospike-6.0.0-cp38-cp38-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-6.0.0-cp38-cp38-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 e398116b924ac7dc6a9344f943ffc3239ff65e2585851abadf4d79d8e7f2fa27
MD5 b74016f2a17a4d0109b169259707a1b7
BLAKE2b-256 a39c609247bfdc6ca5969c47c99bc292f953ca0ee877b50a285a928fad0b9db0

See more details on using hashes here.

File details

Details for the file aerospike-6.0.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: aerospike-6.0.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for aerospike-6.0.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cfb7414e6db62bcbf684c5ad124833de70024f8f61aab2c26a4d55f6ce7cb58f
MD5 9f989c914504f5462e9be262ae22cf7e
BLAKE2b-256 d5eb494ce2e0e1d02ec1f42c8c244da6fcf7760f1e950f79d20bdbdf353d4079

See more details on using hashes here.

File details

Details for the file aerospike-6.0.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-6.0.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 53bfe1a0455fbe33eff27bcd3dfd5ad9bfad136a19be3da4152d379b9c40cacd
MD5 9e515e28c7dc665c8b53acbe1bd476cf
BLAKE2b-256 dcb230e9eec2f1e234d8036d817599bf973e99514a89a609bfba66cd315227f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-6.0.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for aerospike-6.0.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9e6e78214960ab76d3c3fbeb028651ffe1243f79ec79850e822412ba5a15bfff
MD5 8f0cb7e6f25922b0bff205ad86d082ee
BLAKE2b-256 4b4f533d1792c9a659931625bcfb5f17f7e99d9f65394c67ed362a4af95c0f51

See more details on using hashes here.

File details

Details for the file aerospike-6.0.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-6.0.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 5867f9a04a75e47b350d315155769fe406c3b7a1179f12cdba934a8cc9e842bd
MD5 713b5a55031d79226a8375e62bea3460
BLAKE2b-256 5be7d4fe7381d7aa56fecb9fbcab3bc6e2f8824e238c380610aa3a2746a286e8

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