Skip to main content

Aerospike Client Library for Python

Project description

Build Release Wheel Downloads License

Compatibility

The Python client for Aerospike works with Python 3.7, 3.8, 3.9 running on 64-bit macOS 10.15+ and Linux (RHEL/CentOS 7 & 8; Debian 8, 9 & 10; Ubuntu 18.04 & 20.04).

NOTE: Aerospike 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.

Install

pip install aerospike

In most cases pip will install a precompiled binary (wheel) matching your OS and version of Python. If a matching wheel isn’t found it, or the --install-option argument is provided, pip will build the Python client from source.

Please see the build instructions for more.

Troubleshooting

# client >=3.8.0 will attempt a manylinux 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

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.

Troubleshooting macOS

In some versions of macOS, Python 2.7 is installed as python with pip as its associated package manager, and Python 3 is installed as python3 with pip3 as the associated package manager. Make sure to use the ones that map to Python 3, such as pip3 install aerospike.

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

# to trouleshoot installation on macOS try
pip install --no-cache-dir --user aerospike

Build

For instructions on manually building the Python client, please refer to BUILD.md.

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

This version

9.0.0

Download files

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

Source Distribution

aerospike-9.0.0.tar.gz (3.1 MB view details)

Uploaded Source

Built Distributions

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

aerospike-9.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

aerospike-9.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

aerospike-9.0.0-cp39-cp39-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

aerospike-9.0.0-cp39-cp39-macosx_10_9_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

aerospike-9.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

aerospike-9.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

aerospike-9.0.0-cp38-cp38-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

aerospike-9.0.0-cp38-cp38-macosx_10_9_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

aerospike-9.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

aerospike-9.0.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

aerospike-9.0.0-cp37-cp37m-macosx_10_9_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: aerospike-9.0.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for aerospike-9.0.0.tar.gz
Algorithm Hash digest
SHA256 2abb6c877e683890ab1b5df84046e75c62b333fec659b831481345e11349553f
MD5 19be0918155af77b48e642c8fc86f813
BLAKE2b-256 76e2b2b03dd789481fb087c47937f25e73455bd661edc719c50654fba8ba976b

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf210a61501ef41ec4cf610d84c4b8a4ec4c2cb5330e0c94e2842a6966490789
MD5 9d2608f1b451dfcae5819780eec76cf0
BLAKE2b-256 507293769ab9e0b279862cee0f419788ba1a0013f75845562240efe34a59e882

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7b8b94f17df8f98c0e8355499db72a42d8147801d13e85cc1d70282ff8ebbbf3
MD5 a0f99f85b323cfd38455146f793a03a5
BLAKE2b-256 ec4a11d49655b3876a5f8a9214c7271d8e796fa09611409635fb8c261956b430

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f2c1d7f676c038d909252827e20a93aacdeff9697c8c8e1f72432cd1c05f8a2
MD5 63b77e4c899e82a5223c9640fe9f1f90
BLAKE2b-256 3aa7d26648c15ef921827dcd0cfe2e051edd0fdee0a9bc3f915e318a71730a78

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 487cf210917160c857664d29010072851c6f707c1b02e810dd634dedbd7ddd75
MD5 efcf129d30ded4d05035f3e7403c7b56
BLAKE2b-256 4d531b7a29de480ce9f5c81a2c34f1e305fa89a2ad5aca6f66f6f36e05247255

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 849713c6fe9bb4b10610e2e481e7f4232384ff76d8b20f8f7b156d7396a40c95
MD5 046ca910d961c121a56cfa389d9ffc2f
BLAKE2b-256 2522356d0372db8fa716f037a186e9be64cbfb8a63f7361ec3d319f4686e698e

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 84d267b29183c1dfe477b2851f33265e2734e759212d761dc76b12e41657fff5
MD5 a16f2859648e901e7a08fb3aad0d0ffd
BLAKE2b-256 7f15b483056bda126397012db591bce61c40d005d90112204aa4d6b54853e912

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73a5c3f4407a7616875af3d8ffd05c12f25eca1b74035c62a48fd7351b122f37
MD5 9f797a87336ffa7e6d86951065c36c06
BLAKE2b-256 7731c3cb69bd32b092fb540654f0020e772c2c65089fe8553b8292da5a8e0ca1

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 32b398650bf9545a6fbeae9d9aa5ac64a8c584ffb1e382f5d44dd0511bdb58a3
MD5 68991f41f25c02c43e381a8c8af89778
BLAKE2b-256 59df693c309123bdd636cab53f678c134d511407aa098420d5a1bf88a1df7a8c

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b1cb119237d40a96ad498005363f068b75926a6447322a683e21311d2717390d
MD5 7e154fe409df0e8946b70552713100f9
BLAKE2b-256 52bc1c0eb24922b5637ded79c7e051ac6ac0cce9f9809bcbb35fa505d8343572

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5ff5a284a33d6becc5fe4af77ed12740fdf7a65f17af6e96058638679f356911
MD5 86da41ca93acc5d97d817cb077a941d9
BLAKE2b-256 034bc9f5c0ed9b7dc8ade3434b4f08e6d953d70961fd370beb5225cd0b819897

See more details on using hashes here.

File details

Details for the file aerospike-9.0.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-9.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 84a1404880fc35c3679c6f2b14c2c9095a9189088303b281b1af7c98b5b77652
MD5 df09fdef2beb26c9863ed3d61414d643
BLAKE2b-256 5be3b97e806e363b073f21909d0f5be7aced56dc5261481376028249c1c1602e

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