Package: aerospike
CompatibilityThe Python client for Aerospike works with Python 3.8 - 3.12 and supports the following OS’es:macOS 11 and 12CentOS 7 LinuxRHEL 8 and 9Amazon Linux 2023Debian 11 and 12Ubuntu 20.04 and 22.04Windows (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 LinuxNOTE: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.Installpip install aerospikeIn most casespipwill install a precompiled binary (wheel) matching your OS
and version of Python. If a matching wheel isn’t found it, or the--install-optionargument is provided, pip will build the Python client
from source.Please see thebuild instructionsfor 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 aerospikeIf you run into trouble installing the client on a supported OS, you may be
using an outdatedpip.
Versions ofpipolder than 7.0.0 should be upgraded, as well as versions ofsetuptoolsolder than 18.0.0.Troubleshooting macOSIn some versions of macOS, Python 2.7 is installed aspythonwithpipas its associated package manager, and Python 3 is installed aspython3withpip3as the associated package manager. Make sure to use the ones that
map to Python 3, such aspip3 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--useraerospike# to trouleshoot installation on macOS try
pip install --no-cache-dir --user aerospikeBuildFor instructions on manually building the Python client, please refer toBUILD.md.DocumentationDocumentation is hosted ataerospike-python-client.readthedocs.ioand ataerospike.com/apidocs/python.ExamplesExample applications are provided in theexamples directory of the GitHub repositoryFor examples, to run thekvs.py:python examples/client/kvs.pyBenchmarksTo run the benchmarks the python module ‘tabulate’ need to be installed. In order to display heap information the moduleguppymust be installed.
Note thatguppyis only available for Python2. Ifguppyis not installed the benchmarks will still be runnable.
Benchmark applications are provided in thebenchmarks directory of the GitHub repositoryBy 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–helpargument to the benchmark script. For example:python benchmarks/keygen.py --helpLicenseThe Aerospike Python Client is made availabled under the terms of the
Apache License, Version 2, as stated in the fileLICENSE.Individual files may be made available under their own specific license,
all compatible with Apache License, Version 2. Please see individual
files for details.