Aerospike Client Library for Python
Project description
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
Built Distributions
Hashes for aerospike-15.0.1rc2-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9feaa9e061993d0c4c740b5127cec06dcf41671559083a4ea9f24a29b568966d |
|
MD5 | 9117c81e91af742b49f3eae3b4c37482 |
|
BLAKE2b-256 | c3c20bfd3b8f6c7beae1dedd33bc76d151cc41c41b2ee5fcd43590206763999e |
Hashes for aerospike-15.0.1rc2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9829473140349452b11e7fc2b109f65f20deae5cbf276835ecb7d72f4ffbc820 |
|
MD5 | 669c8779d6a01e78f13cee5f0c78118f |
|
BLAKE2b-256 | 1b43d3db0ff4aed4448b416e0b048055cdb40bcb30319672c2e897d8bbdc3529 |
Hashes for aerospike-15.0.1rc2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4337814ececd948cc0cf930323ec2f22a67ed146d7801b8e0669def5e940a4d2 |
|
MD5 | 11c50f5d30bf3177aa674b1b91ea1dc2 |
|
BLAKE2b-256 | f9b62897d96fedfe9f1d48d2a216d36d7a63e694473a6bf08d5ddb01bb780e24 |
Hashes for aerospike-15.0.1rc2-cp312-cp312-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de9ea2bad59363fbdd285baa64d6c6f07969b22dd06eb0362f618f8954dd4b9e |
|
MD5 | 19f198f4df5e146d86b826a05c034000 |
|
BLAKE2b-256 | 4a83afc8690d1a68551cb632c057a070e04b9f74afae250f7a54a9e3fb8416f5 |
Hashes for aerospike-15.0.1rc2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac7e95be730c79ce7c1a4733b1b6963c695539ccff1cf6e787a8e7e4d3447140 |
|
MD5 | 2b21c0e5179e93530c0d72f505330094 |
|
BLAKE2b-256 | deadfdef053c06138233f65f28b78e2e35696058e580a40d635bbb0bad3e89b2 |
Hashes for aerospike-15.0.1rc2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c7189eb96d95f28fc42b343113001a6a954536c714dd39fbd3a4427f3d7b65c |
|
MD5 | 064c455e9cd7121da88a8bb8a412117e |
|
BLAKE2b-256 | e7ffbd0a5ecfa20fa03fe82599094e626a37dee01ca54c834a21c8ebefc41008 |
Hashes for aerospike-15.0.1rc2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d8c497ab980333ef8a1f23432c11c719ee00507cc64ad304ac5b8d9343ee5e6 |
|
MD5 | 90439d2eea764007de354dc30276d9bc |
|
BLAKE2b-256 | 8a6c276ed81f93edc1622b547da4facaadcc1bf9e76344c244ebfb0a54ce1dea |
Hashes for aerospike-15.0.1rc2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af904188dad2b94e8d5beb72cea35a90c2a85fbd6966dbaaa623500caf7d4d92 |
|
MD5 | f4bcdb8af86e5b6c143ee28b672d369e |
|
BLAKE2b-256 | 88d301314255f27123333e663ba0b07960ec109d495fed7af8d3630fd825551d |
Hashes for aerospike-15.0.1rc2-cp311-cp311-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a209b1be065a38feb8505dbfe3fb21de34c0588cc85db6379ccd7885a85f59 |
|
MD5 | 2da76cbc284af50904d6797bd15c46ab |
|
BLAKE2b-256 | 6e7df4a4903149b5950537dc3528d5bd92f3ca40023efe6472c1fcbef51e62e9 |
Hashes for aerospike-15.0.1rc2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84ad83de90804fb3c9d843e71170e2bf14defd88b885ea9a041fd28a3aafb835 |
|
MD5 | 9388ff50ed88ca318df81abd078a301c |
|
BLAKE2b-256 | 105aedc745b252466083593cd91f08b31ccda3e898d9ff73369515aa87591ef6 |
Hashes for aerospike-15.0.1rc2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2946c7ee3e3bf2b25aa8dd5fa1ea89f7eac5898772252756fa0088d31fbf8af |
|
MD5 | 5953c69a42befad71de6f5372faba1da |
|
BLAKE2b-256 | 8ad3bebfb62dda7337f112ffaa9ce1d5479fa04e8bab78b0be16a3361cfb9348 |
Hashes for aerospike-15.0.1rc2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26c72442dd1390dd164c33a39a23723b7a00fd1f00b3e51423e827da50c7d5be |
|
MD5 | c944a76ced9dd40997553858ba331871 |
|
BLAKE2b-256 | a86dd142aa34e273fc1e66bf3f6c0dc885ea60764e0de00ea3b24a71d75063c2 |
Hashes for aerospike-15.0.1rc2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b70019eb0c5f46f98bf89238e9e88a23cd42b5e52ad5b70448584520ec5f51 |
|
MD5 | e847f5f58c4cd5faa76cd5a82a93e9e0 |
|
BLAKE2b-256 | 95f418afd9ddc2c784ef975abe48ea2bf69e7561948bf337a9319bc2d1f74d73 |
Hashes for aerospike-15.0.1rc2-cp310-cp310-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc86ca682089c405ad14e26c5c072e997ae284ffce63fbf6af57f078bf11d916 |
|
MD5 | b1f8a0ee1c161b33d600ff56cbafb1f1 |
|
BLAKE2b-256 | 01e286f829c957645160dc59b41fcd9f9b0329abc13ece4902d6b8f13cdbac2c |
Hashes for aerospike-15.0.1rc2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de00d0518d3b128dccead3a92443b723f850b73b5d4d6da0153246a617749471 |
|
MD5 | cb91f124609278f24cac007dddcebf75 |
|
BLAKE2b-256 | 81dfb3ba0d2b6d6de394462c049447c19b063a15027849e30061d108821b2ff9 |
Hashes for aerospike-15.0.1rc2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bb10e8b5cb832cc9f5740206b5bc32db8d29bfceae0e408422e67d0a3b87be0 |
|
MD5 | d5d254f10c2bb4d6c015f9ff2c0e9a26 |
|
BLAKE2b-256 | 5b74c528de88377bd0ffdca8b964c7046ecfee2864f9271b325101f29f2489c7 |
Hashes for aerospike-15.0.1rc2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad5740aeaff5b2668b09a89c0b4c2dbb7a0e60625002fbb95b11de823c0bb98a |
|
MD5 | 8716d7a3976b693cc05e1b4e7d19de80 |
|
BLAKE2b-256 | 85b1ed7d142ce6df4883be01e86ccd83327291f3aba9e6b8d4ba519392ac99b1 |
Hashes for aerospike-15.0.1rc2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52d8f2d52ef61105344eef45407c2f1b6d0552339b7038b88f7ea480e6901ad |
|
MD5 | fc9895d13222baf10de20946b579e396 |
|
BLAKE2b-256 | 2ad6e6f0d7d786e9d774e7a6b0b66d406b6f11f7ef4c09e47ec489be81210fa1 |
Hashes for aerospike-15.0.1rc2-cp39-cp39-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52e813513a51177b5432dadd21bd87b1bf7ad007c8356870fe46ebd462e604e3 |
|
MD5 | 919f11621b70507cbc11759cd1528b8f |
|
BLAKE2b-256 | c5d3530f9de8ab884bc1346411ecd6ffeed9a578ee71a50ed0be7407ca7f9e3d |
Hashes for aerospike-15.0.1rc2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bfc0417f2defff5fa3328c2046065d3a63aaf8639cefb2ea68ee0bd8ddfc42f |
|
MD5 | 81101876dccd1ebb8cc766377b99df63 |
|
BLAKE2b-256 | 333d0e83c78c99c9debd6caf4bd6f198350b7a9d135e49e6934b41684a9d0eff |
Hashes for aerospike-15.0.1rc2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 042808e5ddd6681440964c0ae43eb08e90a257d91628dc26434d68be7b7c1938 |
|
MD5 | b77a9ef475515738d4935cf0273cfbea |
|
BLAKE2b-256 | bafe968a45d297e530b53b186b37bd4bb66f0330d7b09015d4957326add5f8b8 |
Hashes for aerospike-15.0.1rc2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d2f5a3a91487f6870c2a85c4ef892799a9d2019d113869fcf0600d29754edf5 |
|
MD5 | 64dc3c54ed290d69cd4e8220e8132f3b |
|
BLAKE2b-256 | 2cd8ef08297ede03a83d78f878c518346fceb600e24407d7171a0cf1471d3a12 |
Hashes for aerospike-15.0.1rc2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561e5d8ffe29de9b485fedd89a03403c7bc11b6974f13eb202a1aecaa6b92ff5 |
|
MD5 | e1b7dc093fd5ffd6557d0256552ec53e |
|
BLAKE2b-256 | 30b81e359f05a2c921829d91fe51879885259495e8fa5d7f82894ebc56c8c85a |
Hashes for aerospike-15.0.1rc2-cp38-cp38-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19d054f7db7d21e7a713be65061d2f43b121f684059e4c56795bed860d0c1611 |
|
MD5 | e98206d057682b3631e96c6756fa392c |
|
BLAKE2b-256 | a516c9c595b46439d37ebc466742e094272438edbc3e1f081ef7c1d04f530529 |
Hashes for aerospike-15.0.1rc2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e34022e919834c6b51f3537a5513d1f1bdf01c014c3f944e44a33995df56437 |
|
MD5 | 058c21f141669914b9f328c07bddeb8e |
|
BLAKE2b-256 | 161df6f41ff2c91526aff40a8f0282e2f059fa418cfb5ba617d97e46af01c476 |