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.0

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.0.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.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9macOS 12.0+ x86-64

aerospike-7.1.0-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.0-cp38-cp38-macosx_12_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.8macOS 12.0+ x86-64

aerospike-7.1.0-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.0-cp37-cp37m-macosx_12_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7mmacOS 12.0+ x86-64

aerospike-7.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

aerospike-7.1.0-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.0.tar.gz.

File metadata

  • Download URL: aerospike-7.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 af83f221d24bc5eccd2d895632c283d1882c88380c636b1d481f59aa25dc00eb
MD5 7456b8fae2fdc59bb982622ffa395069
BLAKE2b-256 7960e6292fa8898d6be21acbd36deff764768fcd79d6b9a909e4ec5f4ad5a4b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ce1b4424c700d3957ee7cc9abe81921b76c1a5b911e4387c144f76344621236
MD5 6d9bf61182cf3c0161447a119658b6f2
BLAKE2b-256 d423702a071294d88e35a8afdb696972e697dd1bedbfa62ac61509e7abaa652d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 855bf0e6ce6fc0e89fc6b2394d9bf951b11e895174e1d3e41adb145c62c852df
MD5 6bd88492b7ff339d1eb3d81f02bb5c65
BLAKE2b-256 1a3b25fcde980f496a7781dac8802ab6cbec8f7dabee42a9836874befc512b99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 100b468b50e8a8e1d237562add375ab51abec6aad9fefb5ed14563f07f1571e5
MD5 434be93e82a381bcd44510e0bf1aca5f
BLAKE2b-256 8b7b2b04cf29d47510169afb7141ee3315867ca9d7fd375eb348df5b8a206b53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.0-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 219a0f3757e25c835ac74656c2c902607f9e99e8e910f8d70e5d85194d6987c5
MD5 54992798b0cb4cbb1d8fb43ea32c9af5
BLAKE2b-256 68edad94d2863aae6d7791d944982a482cc408c2c3ddc0a105f8834dd19e7329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a8b7d7c5026679ab35e905664c9a6a4aa43ffd58d39f2c0c753238a104978f2
MD5 1dfe430db4b6c710d4e0d29da0c94d3c
BLAKE2b-256 d2d71b1c89a92dde93a436048eef1b6b669fd1521d1d1020025a1d7c773193cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.0-cp37-cp37m-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 ae7236e422122ccccf70669c50c564bd41c625689ea6c3931df29e2d476c9c3b
MD5 a6afcb32c517aaf7bc9940b842b48caf
BLAKE2b-256 1a261c1b963a591edefb5137a396b0418358bdb2613d975ec3a2fc1f216c5417

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7f470f31b96760c7d33a5cc88294764248ead64dc797ef5584491aef133ebd84
MD5 239d447d6d0752b9b8d19dca2d05df1e
BLAKE2b-256 02c4e53aefb86c34b04a95364435f46ca22bf317e7873e87f471ccb89493dd50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-7.1.0-cp36-cp36m-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 174f2bd38a063ab359e77b63c79872358b445881de2d585d4fd26da7f25792c2
MD5 ed6f72b473a1e82438f506f4e336ad29
BLAKE2b-256 c3e999a07bf0054fd4dc9cfe72c46992659fac9b3cc9e2edb2ce6775e6060f79

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