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, 3.7, 3.8 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-4.0.0.tar.gz (154.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-4.0.0-cp38-cp38-manylinux2010_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

aerospike-4.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 (473.4 kB 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-4.0.0-cp37-cp37m-manylinux2010_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

aerospike-4.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 (470.4 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-4.0.0-cp36-cp36m-manylinux2010_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

aerospike-4.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 (470.4 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-4.0.0-cp35-cp35m-manylinux2010_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

aerospike-4.0.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 (470.4 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-4.0.0-cp34-cp34m-manylinux2010_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.4mmanylinux: glibc 2.12+ x86-64

aerospike-4.0.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 (472.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-4.0.0-cp27-cp27mu-manylinux2010_x86_64.whl (4.0 MB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

aerospike-4.0.0-cp27-cp27m-manylinux2010_x86_64.whl (4.0 MB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: aerospike-4.0.0.tar.gz
  • Upload date:
  • Size: 154.7 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-4.0.0.tar.gz
Algorithm Hash digest
SHA256 4255b316879152cc73523dd7699f2e251397052bf81fc83b838320ab076a325d
MD5 41230f74c919ddb450b19071d0df5f08
BLAKE2b-256 7608919848c5a1243d6b5443747a73ce5df0572aafb4f6600579ecaaaba143ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-4.0.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 3.8, 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-4.0.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 922530996c4f5be3388506612e100aaa91ed25728f70954f90fb09951ff9e9a6
MD5 2ada632a62b0e3727d616716da9dc595
BLAKE2b-256 4d32b7b06d7adb2754c1c5cdcecbe0b6571de229914570f633846d6194050201

See more details on using hashes here.

File details

Details for the file aerospike-4.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-4.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 f88597257c41866cb6a8b79eacfb9d01a58d7077874ff5aeebfbb6240fb1a013
MD5 10307b7dac49bd86669b3ea84b6660ba
BLAKE2b-256 0ac64bc45d7bde13459d04ff19968ca9d1044476567d50134a0d999b9c69fa70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-4.0.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 3.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-4.0.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 09f64ff0c0f1efed9ee3af8523f6006880c2f269342ccd0bfc244480ea31848e
MD5 1d1fa42e49d525ef3bdc598d2fab76aa
BLAKE2b-256 9ce343331f48137b4b5aee5f8557e1d63ea6178c9c906ddca23d2b1cd6a19b3c

See more details on using hashes here.

File details

Details for the file aerospike-4.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-4.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 06b826f2a602fc164f2df6e3ae9b60890199da01bf3598578138e52c2baf6773
MD5 1fef2b934f360e653437b31d82a9bbb1
BLAKE2b-256 6811ad8498d8faffec6ca2ee089ae1b540048ed80cc5dd2be485308b76620e69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-4.0.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.0 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-4.0.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ac30d1a51547a5effb13dfd465dc7f0f6e36a1eb1609f527be3a67a3ce0c3fde
MD5 6eb4df65798274c988cb2953acd1ac0d
BLAKE2b-256 ab81feb401cf9635412dc0e4f5df2f0b5021dcb710ea4028657986772b663d64

See more details on using hashes here.

File details

Details for the file aerospike-4.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-4.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 6a71eba6dcc969b7c9969c7be15282501eaf09830d2296a4554010fabaa2363d
MD5 31076b684ececa11c46d66eab081950e
BLAKE2b-256 212980453b94b12256716c8089c8fb238b2e5cdc2dea1249c111f51ec9f4b883

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-4.0.0-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.0 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-4.0.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e18daba5a2324c39f57584b990a275eca389ba9a3557806bbedaca62e19119dd
MD5 c059237b13b0e4b8d19705e6c6af538b
BLAKE2b-256 06b29bbd420d7659f6f304cf3b660a0e05346e30a7288c7333325e5a1592c5c9

See more details on using hashes here.

File details

Details for the file aerospike-4.0.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-4.0.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 881ca3d1f8957713f9722dd54bf71910d97fe5ee13fb70ab4325b0e15c6bff95
MD5 7388e16bdb4c402b6c21b5d3fd2ca046
BLAKE2b-256 59974ca9cea7f96776bfc4442f22895991bfc80b644492ea793bf93541ef274f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-4.0.0-cp34-cp34m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.0 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-4.0.0-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d2b30bd752c7db64e5deea612976a68ccd6e373b3f9671989c4c2e81d042cc70
MD5 367ab0cde53cab7d559b3678af88dab9
BLAKE2b-256 fba5a4bd3dc0e4eedef700d979266d066255e4cb5e61574f89626b45f01b62e7

See more details on using hashes here.

File details

Details for the file aerospike-4.0.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-4.0.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 978e37e8dbb173d804a230bfd3a4b32ede31998be72093efc0aeb1b829daa0bc
MD5 e009df3b71761acaa68810782b51e41d
BLAKE2b-256 ab06e90b00a0716697be5104f0eed6b64f5e68b9f3c2f09f049869afe5c8c67a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-4.0.0-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.0 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-4.0.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 edded540d758c0ec200ffd4eb20a1e145a7a0d56299810270a8ebaa9ba106f63
MD5 1dc29fbdfb57e14705437494c00a8503
BLAKE2b-256 fd50a0b537fee7d569f2a6259fb1a355ef9ece1a5e78af7e4764767e7f3abb67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aerospike-4.0.0-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.0 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-4.0.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 105e0c08f2f2d75672e1dd81412a6f69fb3a4eeb7fee379ca0b839761b2f717f
MD5 91812180c9e34697969b938f0ca28cad
BLAKE2b-256 2bb692a6dfa4e22d72ef53ea848c03df8807b8245f317f785519c3c586ee9f94

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