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.8 - 3.12 and supports the following OS’es:

  • macOS 12 - 14

  • CentOS 7 Linux

  • RHEL 8 and 9

  • Amazon Linux 2023

  • Debian 11 and 12

  • Ubuntu 20.04 and 22.04

  • Windows (x64)

The client is also verified to run on these operating systems, but we do not officially support them (i.e we don’t distribute wheels or prioritize fixing bugs for these OSes):

  • Alpine Linux

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

Download files

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

Source Distribution

aerospike-15.1.0.tar.gz (2.2 MB view hashes)

Uploaded Source

Built Distributions

aerospike-15.1.0-cp312-cp312-win_amd64.whl (1.8 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

aerospike-15.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

aerospike-15.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.1 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

aerospike-15.1.0-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

aerospike-15.1.0-cp312-cp312-macosx_10_9_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

aerospike-15.1.0-cp311-cp311-win_amd64.whl (1.8 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

aerospike-15.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

aerospike-15.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.1 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

aerospike-15.1.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

aerospike-15.1.0-cp311-cp311-macosx_10_9_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

aerospike-15.1.0-cp310-cp310-win_amd64.whl (1.8 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

aerospike-15.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

aerospike-15.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

aerospike-15.1.0-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

aerospike-15.1.0-cp310-cp310-macosx_10_9_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

aerospike-15.1.0-cp39-cp39-win_amd64.whl (1.8 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

aerospike-15.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

aerospike-15.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

aerospike-15.1.0-cp39-cp39-macosx_11_0_arm64.whl (1.7 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

aerospike-15.1.0-cp39-cp39-macosx_10_9_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

aerospike-15.1.0-cp38-cp38-win_amd64.whl (1.8 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

aerospike-15.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

aerospike-15.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

aerospike-15.1.0-cp38-cp38-macosx_11_0_arm64.whl (1.7 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

aerospike-15.1.0-cp38-cp38-macosx_10_9_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page