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.1.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b13bb26e3eda54d884e09cb9c61e1fa6f393133e3cc52acb318f826639e9c618 |
|
MD5 | fa3c16d397cd07eefc7e4c11e43e8f53 |
|
BLAKE2b-256 | 29363a80cce117be52aeeb894a16a79f0632e2f28465ae6062964f1544f4a245 |
Hashes for aerospike-15.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a1238bf819f49b15a6605f7e2bb36797db9e3311691e9350a200778073a2db |
|
MD5 | 873ea6304a2195f50d5264d216827f86 |
|
BLAKE2b-256 | d25b94bbc2611e450ef7c307e91cc4dd0d5f487b4c3183cebb028d2af89e6bab |
Hashes for aerospike-15.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1dbff7bcdeb798de7a3edb3983d279cf28879edb46718849c3d5518007aae2c |
|
MD5 | fbaa78c1d18c200e484dcc33d628da45 |
|
BLAKE2b-256 | b01b83acefcee7bd504e12de111fce5629907a748c29c4d876f2a97223e4d70b |
Hashes for aerospike-15.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2520592af5a2c7887d051b6c0f1f081014a96a60a3f988d5bc87b0e51df99d03 |
|
MD5 | 1e17340f5191f3191620a65d9ba9cd91 |
|
BLAKE2b-256 | 5ee4ea8b8e2439515d98b1f9860001034cbc665fd41700bac89766fe49f5013e |
Hashes for aerospike-15.1.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 460aed89a4379712822a2eb3f3e6eb3261ff3c0ac98f63e51123df9ec99c052f |
|
MD5 | 625ee3d2a5782e10a6d43fabad04fa98 |
|
BLAKE2b-256 | bece2ddfd654604c12a536d99d045834a297309491d627507ccccee51a468e63 |
Hashes for aerospike-15.1.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4949c79b66aa3a2a70d864552c717bf0bdf359588cda90f8686cc75dec58db0b |
|
MD5 | fa5d875b4de08bb8f95e9b71dc1cbceb |
|
BLAKE2b-256 | c35a2624cc77ff84c145ee10dfdc1523e13a51357179c7ead17399e7f8eae8d5 |
Hashes for aerospike-15.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d69a3c06d116a3c61cb3a455e1d7a40456b1c081df5807cc67571be281bb231 |
|
MD5 | ca282103b654f819b36dc9232eb9121c |
|
BLAKE2b-256 | 48df70d69818d54083862fc4eea89cb26c505f179ab9c3beff937ea3d5451f73 |
Hashes for aerospike-15.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e9cc96ac7f71b7cf384c6d1589542f05c56d5cff9bce5320bb924beea6db3e6 |
|
MD5 | 1cb5571e9814e6b35344415257b51612 |
|
BLAKE2b-256 | f9b64fb5a6e671148a98067da1d7791e349d88c0f8491f4a94a33e828645aa7d |
Hashes for aerospike-15.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32befc767f731de0845b112c080d639d911f77879bcce6615e315fb8f094340b |
|
MD5 | f1bbb6f3d98ea6f118f0212b3978de8c |
|
BLAKE2b-256 | 648be0610a3cfc5e539c3c22908d363639ee1e36978d2dd0133a967e28035a9c |
Hashes for aerospike-15.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b8c80fa0017e33d4c27a70509c2ff3e79e3373f5dc702b31f1f78ddf582accf |
|
MD5 | 1ace42348fa4ce08fd5dc98ffe55cced |
|
BLAKE2b-256 | 3c5d7278062f117a0a0468945a360ca7014c4a292cd62ec01186d9fca55d69e5 |
Hashes for aerospike-15.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 696934fe39f8a35b3418b2f99edf802b81b3aa50bf9a35abf5fe4f14cc644c56 |
|
MD5 | db1965b27c3f2d5ead3d5cc98ae8274c |
|
BLAKE2b-256 | b7b00a10c0ce3e39eda8ba7c73f6ed16e2018d1bbdfb285ef3082b8c3ff0ad2b |
Hashes for aerospike-15.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac4477e6cc9b797a54bc03344fe3572672e8ad96c32070773c753d209261103e |
|
MD5 | cee70cf2536bd382e968e695a96bc0c0 |
|
BLAKE2b-256 | a5f61cc41541aedf917517ba1ddcebf124857dd5ec283f27422ed2d633ad3c4f |
Hashes for aerospike-15.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bba9d266d362d2d0295109387f3ff42ea8f801d09ded45bf7f3d1c726f94b3c |
|
MD5 | 166e070e0cc59a3c158710c13d58a4bf |
|
BLAKE2b-256 | 6e874673206e53df5817fc4033f7b910bf9ce194e8ab33d3cde6c89c92f5ca80 |
Hashes for aerospike-15.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5bd832e8f09305294704548e2f867880c6791df8bd24d1318adc17f4b8a2d00 |
|
MD5 | 18d990b6ae65fbd086e6e1970a4869cb |
|
BLAKE2b-256 | b557189e50b558779a5007c19937a17cd81fab46383157c097c0c9cd10e649eb |
Hashes for aerospike-15.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b740cbe24bd7f91290d87a05076b47630b56bfbcbea5aac53bddabe5fe8dcfb8 |
|
MD5 | 130858bb0aae0b81b42ddca689dce5e5 |
|
BLAKE2b-256 | 7e555930ca8ed3c45221c4568511aaa8bb5cdbe528c5894a478b4602409af826 |
Hashes for aerospike-15.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ae2b9100c72f088f1f54c4c789eacef15152bec5783df05b42c37e401e9837 |
|
MD5 | 6720c89b6e3ff020c2a2e5087fd43811 |
|
BLAKE2b-256 | 76790195c60cb7e9f5364accf4c71d66ae82eeea9a31eb7992acfdc6f5b1439d |
Hashes for aerospike-15.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07eac7fe9ea13cdbde73c25e6bb59bd8416cc407606829e3ddb3a4bb572b3a90 |
|
MD5 | c642c00afe1c4bd7468263c499d00cbb |
|
BLAKE2b-256 | 893526885d832bfad64fea043e32acf4cdcbbdd67243ad60c013f07139de9f22 |
Hashes for aerospike-15.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9720b08f8cf292644a7434758e0f28fdd90c4dce69b0caf0070d34a7f609efad |
|
MD5 | ad6aed628d8f8a646334b79940949442 |
|
BLAKE2b-256 | 89a40880630c06147410355babd6db3e5f338d5cfc801c11d42aaf2601df1898 |
Hashes for aerospike-15.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60537bcb72f03272963e33c732927768aa7618af79e4d1fedd5309b0833a2801 |
|
MD5 | 9fa5d7262ec6041743cf8995310e3bc3 |
|
BLAKE2b-256 | 49b1afb3fcdf7f4427c1a88866f01f6e05f74a79dbecb0a63057c97d1cb1ff20 |
Hashes for aerospike-15.1.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78b55820bcb682fcd09c43909163accfa3e43a4e2578fa3e2e1695dc764f0a8d |
|
MD5 | f1c075f89f445ccfd4a4b1e2be02333a |
|
BLAKE2b-256 | 61838d21b2888eca9e2b42441f9f356abd84faec8750e101c4aac890b031d858 |
Hashes for aerospike-15.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfe3fa84886dfde06984c71f8d40e2ac71fe9086350cb322fbcbced388969834 |
|
MD5 | 9ac771e93e660d5296407d8f00cc2cd3 |
|
BLAKE2b-256 | 6cd04f7e09caa839d2df6b0fe179a4f1595164e102f0d068e27faf8151d2aea1 |
Hashes for aerospike-15.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01ee8592ef752f5050954ad46ff8b947b58a93553a1fb0817e28ed9a804d2385 |
|
MD5 | 1e54ddff258d5183d2c9b54ee1340722 |
|
BLAKE2b-256 | c8a6e9cb7792fcae7dcb11fcecff8b95907dcc0d62ab46ff25c6a72a70d6ee8d |
Hashes for aerospike-15.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbbfda3c6e38d9a7518342406534aab9d6d737ee57ae3ba2580b207f72bdfded |
|
MD5 | c70e59609c8b3c77ec37f3a8b10d0b51 |
|
BLAKE2b-256 | 701bc89b16f5e92ae1551762eb814a30970834fbe2d993fdbc794b98cf51546e |
Hashes for aerospike-15.1.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2504ce2084416ef21dfaa09d20b86838f2679786642cf3aca8469da8755fa3db |
|
MD5 | 6493e9141f85f67dc4dedef61157fabc |
|
BLAKE2b-256 | c2d311c2ea731d7f0597212c2bc3dadfb6be2bccd7ee095a995ea32d625a2d66 |
Hashes for aerospike-15.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4572c365fbe60dab915ca7bc0c4e88dd0e54933a6488e2b1f64398c9495ebd27 |
|
MD5 | 22d95c00f4b731c09a015b5c07b13abe |
|
BLAKE2b-256 | 0f68c402e26d9158bf97a4aed706bbfcb570be2ac12eb458e8d578c2778d290a |