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.6, 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).

Python 3.6 hits End of Life on December 23rd, 2021, and is now deprecated.

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

7.1.1

Download files

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

Source Distribution

aerospike-7.1.1.tar.gz (2.9 MB view details)

Uploaded Source

Built Distributions

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

aerospike-7.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

aerospike-7.1.1-cp39-cp39-macosx_12_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.9macOS 12.0+ x86-64

aerospike-7.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

aerospike-7.1.1-cp38-cp38-macosx_12_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.8macOS 12.0+ x86-64

aerospike-7.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

aerospike-7.1.1-cp37-cp37m-macosx_12_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.7mmacOS 12.0+ x86-64

aerospike-7.1.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

aerospike-7.1.1-cp36-cp36m-macosx_12_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.6mmacOS 12.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for aerospike-7.1.1.tar.gz
Algorithm Hash digest
SHA256 fef60c623b86348cbe4793965aec86cda8b8769e550d0dd5dcd142075da574b6
MD5 585072f35efe4880448f115ca8e1a4d9
BLAKE2b-256 7df5c98ca1e767483ade2555ef187871ad5bd3ca17602ff125011711c787bb22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 13eb4b7f6e00e7d28a1c81fec501c419306091594d9ca6d48c1c1e3e28d0c007
MD5 68d090621478b172eeec356f1464af1c
BLAKE2b-256 28edcc073cec19f55318b06563579d00c2f86d92b36b19f08b4eacc8436f4b17

See more details on using hashes here.

File details

Details for the file aerospike-7.1.1-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-7.1.1-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 851be988480a5fbccb2d37b3746d3bd7f24d9205771acd6ce2eebad3e2302565
MD5 25a4a29b212a786fa4a3f89a2541a3bb
BLAKE2b-256 ae48aa33645baab1be396242ad2a0738bbb31e5517e6b778c9b105674f080d33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aef0568143f5840b733e96bf736ba0c1c3440bc01bd4073474868039b02025dc
MD5 f7421843edf15a820f04cad731ec9136
BLAKE2b-256 a1353c02545605734166a0e0a15d88371145c266ce2b9cf4857ef565e2b34307

See more details on using hashes here.

File details

Details for the file aerospike-7.1.1-cp38-cp38-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-7.1.1-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 6813c36f0c36269f07797cbcb3049f4b37fdb851fc32d16f516771a463f6fd54
MD5 36e76b3e87b5fd81c7806ba73521f0ae
BLAKE2b-256 ebb76e219c4cf81016d4fbdea188e839fbc3bf22baa29df5eaa0dc381ca1fea1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8ca92b6ad8606cb8114445e455f8b4d37d249a656a49ad3c2e105bb4a469a57d
MD5 baf28bfb6d91934f7150f488b0326a44
BLAKE2b-256 35294e56bffb41aa6bbaa594e45b3b7b1fda19d9ebb3be6050e5ee1527be02d1

See more details on using hashes here.

File details

Details for the file aerospike-7.1.1-cp37-cp37m-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-7.1.1-cp37-cp37m-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 781fbf43b75567618c72e4298d5c8b4604346582445b20e85ba4438a442ef294
MD5 2bf96bd07caf5bcf133591c543c1c116
BLAKE2b-256 0fb189855617ea0ce789db9bbda62c8af052cacad6bb7640a8ada961335cb916

See more details on using hashes here.

File details

Details for the file aerospike-7.1.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-7.1.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db2b3af59cbde26b81ab40f5ec649772d206819dbaf99ecd72c17c2a3ad89671
MD5 02e7a395815fdd438cea99fa46f1c07e
BLAKE2b-256 669bba93075e39a31026eaff62c9c2701e32c7ed2e19431f764e618091256f5e

See more details on using hashes here.

File details

Details for the file aerospike-7.1.1-cp36-cp36m-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-7.1.1-cp36-cp36m-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 e60e4dd999ddc7dbb69e03b96b9f9818f8d7c4be5e3c5f5b78da4ddb7c3197ae
MD5 434942d55d3c58cbdc18116de41e05ef
BLAKE2b-256 8a644cc68aaaf1e44e09c7d08cc20f288593116f8aef2bb516f6f01f49b38c03

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