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.7 - 3.11 running on:

  • macOS 11 and 12

  • CentOS 7 Linux

  • RHEL 8 and 9

  • Amazon Linux 2023

  • Debian 10, 11, and 12

  • Ubuntu 20.04 and 22.04

  • 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-12.0.0.tar.gz (3.0 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aerospike-12.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

aerospike-12.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

aerospike-12.0.0-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

aerospike-12.0.0-cp311-cp311-macosx_10_9_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

aerospike-12.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

aerospike-12.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

aerospike-12.0.0-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

aerospike-12.0.0-cp310-cp310-macosx_10_9_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

aerospike-12.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

aerospike-12.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

aerospike-12.0.0-cp39-cp39-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

aerospike-12.0.0-cp39-cp39-macosx_10_9_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

aerospike-12.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

aerospike-12.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

aerospike-12.0.0-cp38-cp38-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

aerospike-12.0.0-cp38-cp38-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

aerospike-12.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

aerospike-12.0.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

aerospike-12.0.0-cp37-cp37m-macosx_10_9_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file aerospike-12.0.0.tar.gz.

File metadata

  • Download URL: aerospike-12.0.0.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for aerospike-12.0.0.tar.gz
Algorithm Hash digest
SHA256 33f231eed8aeb3cc7d4938bb26c613401081aba800d9dcf6cff670ca9cc5029c
MD5 f1eb0d81d67efad25f8eab03fd3fc6cb
BLAKE2b-256 505da7f0167bb6ad0cc794e18f89616c4f22ed5101af5f6e5ff828a1b3d7d939

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 57df20df299aab9b4f30f43780ae819387b3d1138f035b00d48926bce593f0b3
MD5 e5a926a9a0b396ae9b6591f68e09c477
BLAKE2b-256 d8f02b7f9d89c3bc4660d2dedc99197b8f3fcb44487d4f6b9c3f0237b24c24cb

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 47ef12cc0a84ae1e39a6e04be231eb8f464972fde23ce7952d9032db3412d1ae
MD5 5d685cbaae3d8502bd42a6fbbca54f61
BLAKE2b-256 4c709902ce09da8a254d2e83440f8d9258fc2c3cf521c823293b4f0320e254b2

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5857a454f2e69743d58317e2505edca0f5171c98a83d6c500948a40982bea4f9
MD5 5301865665bb827d4a7d53473e22fa09
BLAKE2b-256 55e7df69bf5f058fc8c3f35c88e84062df7bdf1161731575a0d7fcef951e6f19

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 41c1ff0e6491d65e6dca1f8d6620aad395e412a17e410421e349d2d79667cec6
MD5 5e2ff66f2b91b359f464c71442dd667f
BLAKE2b-256 c139d727c99b2a4a2418a34cd6c843abf356f6fed6b296272e8a59504a7231ad

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3b1dc18e0efa98ee019f424bf4e7c70df0f4ab626debd7e326da42059a5157f
MD5 821fa723d662924f44ad07b440604f49
BLAKE2b-256 41fdc44336b0072297628c1cadea5ba9b44cfaddba48b494cd12211ed3914a10

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3ec5e14de28e5544fb2c001e08975fe178125fd77672ce37b739a5fe7c157586
MD5 778c3e8bb5d27e53109c918faf5df450
BLAKE2b-256 8aaffacea32b88e2470f959a5997857e968701025010b27f8c31345122a6c6c2

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47c0ba98b9153349594099f259ff6f6f3dd9ecc341aaf3e6522da697bf07cbc4
MD5 8ffb3b4bdc2f68c668c0970bacf36b78
BLAKE2b-256 e94d6cb87eb28530facaed8b5562234ca3836657b7965f15ab13805166072096

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 99329a13d11d655550b0a53dda847104a8084106a08921cc0baf9adde8a7c7ae
MD5 8e7399fcd66149f3c7df0f2fe7082473
BLAKE2b-256 4b323b8bdb45bee32d46c23d307a33f5ac1e4dce86a5b79ff3c39423f91a204d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-12.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 00387cc9f84c285ce6d04812966448aa96d116a6402385f14b6ef5e19320e6bd
MD5 bc7a33e009243b4643da73090697151f
BLAKE2b-256 de8bbe5a4106f63c456feb4cabe98b7bef9067c9674ee56c6030dbae25f40099

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9dae14144446d02ec24d6d6435a6ced6662de47f610d55c75c99390dcfb8cad7
MD5 988bb3377fc5be66908583258c2c2eeb
BLAKE2b-256 819da8d9ae9edfd1e900f09a6bdcd6d7f86c3c48e37743f76d419a3573b7f33e

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56e427413a9e97b2a4e397e44290676973f811a68c1c370a0c05f0452d6c30dc
MD5 0ef8b68b623d2e808b314333cd8c8af3
BLAKE2b-256 7db17b15dc1e226465e3414f545439be01e53645e9f379cba8d972f0cdebb10f

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e8e06e2e71d355d14455b38f963f5de8c500622e62b207e71322048a67994e26
MD5 1c2221226c8e75c5629c0bdd92de6d4b
BLAKE2b-256 4b698d89b4bd328f0992e86320754d1d746d1569836783489b6b935d702e14ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-12.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01b72d8eabbc9988199a786eb1980e7d30a35558cdd9703f6a9090f8eaaa6979
MD5 b39b143c604c3fa435300e2ba6f34147
BLAKE2b-256 45f468b0c2249899dea0de73b9b41c586e492345500b7e7313053906f7d5afed

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b9a7ff01cc1be31105f291bca242b56e91135cb682cabc110122367c904e21b1
MD5 4e8d9730ab0ab9e4494b177722ad27f0
BLAKE2b-256 179e53cdf3162f6d259d0ca7faeef0d63f0239aaa34a87e1a73ba4838de745b5

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab4936d0e840471468b132949fe124743c684581dde3bea33e0d69632de0d176
MD5 bef54fceab9afa6327891583665c8a16
BLAKE2b-256 a1e29687844474cc7320afffb5838cc3f95ae0e1b849b893580f1d0e4c0b339c

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7c924e0603a676497706d83960a39724d811669d1f9d864c42b60fb520e6a7eb
MD5 ecf91ede364dce4de755aad70f307148
BLAKE2b-256 f7810e501f8510939d2f2764c8ebfb8b4f8c75c9e1fa418a8b4a74e3c03acce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aerospike-12.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f42a0bea062c46fc4a0e21a1918bfcb2b42a481bfb6c36e93764098497c13b08
MD5 8eb32f80dcd6a8211ccfd4c68ab29a80
BLAKE2b-256 d497aca78fbd8b3c0e2007f1fd83c15889ea237d62c1aba3c2602346a9ed9ba3

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4f8a01213f30b493585bc64e1c7471eafbdd50a210f2bfe293c74df1a419e56e
MD5 3931518ad6d97621b322b40250772b46
BLAKE2b-256 5cedc665d0a455a356e4b83b58c65b9feefa9260515c5c15a97f4adb1499ce6e

See more details on using hashes here.

File details

Details for the file aerospike-12.0.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for aerospike-12.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f8c08135d7dde99cb64902674a5dd0685cd637a8ff19ca2c77cee27d49d2c38a
MD5 ed7ed3e90dbb45003653be66d287d376
BLAKE2b-256 ea93ae54b3dccc3271991927062b45a0a0aecf76c578cdf46d7504662a5cb9ab

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