Skip to main content

High-performance Aerospike Python client with sync and async APIs, built with PyO3 and Rust

Project description

aerospike-py

PyPI Downloads CI Python Rust PyO3 License

High-performance Aerospike Python Client built with PyO3 + Rust, powered by the Aerospike Rust Client v2.

Features

  • Sync and Async (AsyncClient) API
  • CRUD, Batch, Query, UDF, Admin, Index, Truncate
  • CDT List/Map Operations, Expression Filters
  • Full type stubs (.pyi) for IDE autocompletion

Documentation — API reference, usage guides, integration examples

Quickstart

pip install aerospike-py

Sync Client

import aerospike_py as aerospike

with aerospike.client({
    "hosts": [("127.0.0.1", 3000)],
    "cluster_name": "docker",
}).connect() as client:

    key = ("test", "demo", "user1")
    client.put(key, {"name": "Alice", "age": 30})

    record = client.get(key)
    print(record.bins)      # {'name': 'Alice', 'age': 30}
    print(record.meta.gen)  # 1

    client.increment(key, "age", 1)
    client.remove(key)

Async Client

import asyncio
from aerospike_py import AsyncClient

async def main():
    async with AsyncClient({
        "hosts": [("127.0.0.1", 3000)],
        "cluster_name": "docker",
    }) as client:
        await client.connect()

        key = ("test", "demo", "user1")
        await client.put(key, {"name": "Bob", "age": 25})
        record = await client.get(key)
        print(record.bins)  # {'name': 'Bob', 'age': 25}

        # Concurrent operations
        tasks = [client.put(("test", "demo", f"item_{i}"), {"idx": i}) for i in range(10)]
        await asyncio.gather(*tasks)

asyncio.run(main())

Performance

Benchmark: 5,000 ops x 100 rounds, Aerospike CE (Docker), Apple M4 Pro

Operation aerospike-py sync official C client aerospike-py async Async vs C
put (ms) 0.140 0.139 0.058 2.4x faster
get (ms) 0.141 0.141 0.063 2.2x faster

Sync is on par with the official C client. Async is 2.2-2.4x faster via native Tokio async/await.

Claude Code Skills & Agents

This project has Claude Code automation configured.

Ecosystem Plugin Installation

Install aerospike-ce-ecosystem-plugins to access the full ecosystem skill set, including the aerospike-py API reference and deployment guides.

From GitHub (recommended)

Add the repository as a marketplace, then install:

# Step 1: Add as marketplace
claude plugin marketplace add aerospike-ce-ecosystem/aerospike-ce-ecosystem-plugins

# Step 2: Install the plugin
claude plugin install aerospike-ce-ecosystem

Project-scoped install

To install only for the current project:

claude plugin marketplace add aerospike-ce-ecosystem/aerospike-ce-ecosystem-plugins
claude plugin install aerospike-ce-ecosystem -s project

Verify installation

claude plugin list
# Should show: aerospike-ce-ecosystem@aerospike-ce-ecosystem ✔ enabled

Contributing

See CONTRIBUTING.md for development setup, running tests, and making changes.

License

Apache License 2.0 — see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aerospike_py-0.5.3.tar.gz (140.2 kB view details)

Uploaded Source

Built Distributions

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

aerospike_py-0.5.3-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl (2.3 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

aerospike_py-0.5.3-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

aerospike_py-0.5.3-cp314-cp314t-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ ARM64

aerospike_py-0.5.3-cp314-cp314-manylinux_2_28_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

aerospike_py-0.5.3-cp314-cp314-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

aerospike_py-0.5.3-cp313-cp313t-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

aerospike_py-0.5.3-cp313-cp313-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.13Windows x86-64

aerospike_py-0.5.3-cp313-cp313-manylinux_2_28_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

aerospike_py-0.5.3-cp313-cp313-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

aerospike_py-0.5.3-cp313-cp313-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

aerospike_py-0.5.3-cp313-cp313-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

aerospike_py-0.5.3-cp312-cp312-manylinux_2_28_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

aerospike_py-0.5.3-cp312-cp312-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

aerospike_py-0.5.3-cp311-cp311-manylinux_2_28_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

aerospike_py-0.5.3-cp311-cp311-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

aerospike_py-0.5.3-cp310-cp310-manylinux_2_28_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

aerospike_py-0.5.3-cp310-cp310-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

File details

Details for the file aerospike_py-0.5.3.tar.gz.

File metadata

  • Download URL: aerospike_py-0.5.3.tar.gz
  • Upload date:
  • Size: 140.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aerospike_py-0.5.3.tar.gz
Algorithm Hash digest
SHA256 0deab4429b34a6aadde63405634276c8aee4f548d997049e030b76746bf5fd28
MD5 3ccd97bd3aa946e0771e6b855d060285
BLAKE2b-256 a03613ec9fd2c295ea22c2d5ad4904441f84882d4c4a51e417eb9a5f1ff297ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3.tar.gz:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0602c26ef0e134fbc692e6235fea74d5071a4f7c70e86625a2e0ac6210f542bb
MD5 11920ba9a5a7f17f1b4d7c86b9c96ebf
BLAKE2b-256 21a90c75ab74449ded6c36c0ff789e83f39889129734e72d345289bc2f0973e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 194655f5c390fc9b5c035c88866885ec52141b0962b633da58ecac872c4668b8
MD5 6fe0af6da9333d8507a2041a6074fcca
BLAKE2b-256 0816449466c439950bb835d91d1681816784866f648d1e6c3cd530b2ee37d6ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp314-cp314t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp314-cp314t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8e7858c8f1b33bd673830b1d178e1d84579add9f5eb8251ab4028d340ad4c266
MD5 6af71546f76b75d77e268b26a526fc7c
BLAKE2b-256 19056b74271258dfe7b0200adcb82e812d40a34170a33f3158961351b123cb0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp314-cp314t-manylinux_2_28_aarch64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e8ab42fb9255f4284055b04b626f320240e26e340310b8e8366c0e25bab9e4dd
MD5 d122b6ff1f5f28eddd407d775c1690cf
BLAKE2b-256 79e763d5293873a679ec1f6222ef88f6f7699b08f0f1dd509e03156e3a0c03e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp314-cp314-manylinux_2_28_x86_64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 172efe85f81f9b52e79a6e110b8067b250ffd7c97ee3f057f10934fbbaa31f1b
MD5 a0de1f7ea675bd0d409031ceab72b3f3
BLAKE2b-256 f94c57578e7773dfc4d3dbe03a81d05110eada7a7c1fd36d3eef239029c24a89

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp314-cp314-manylinux_2_28_aarch64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp313-cp313t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 82d4a6dfc3735166f810f83f4a69c7cea258a58dd4dc8d2688881b600fecc4bc
MD5 dfa4be70c89584e8340fa79d36496f60
BLAKE2b-256 0a9c93c2fccaed5b3043632c4d4509b88ed288305b1166156f2caaf40ed0dfb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp313-cp313t-manylinux_2_28_aarch64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cc9410ab49f5e60b5808b20e9163301703ed8ba337eab7f895e86b48218ec142
MD5 cd060efbcacb4cdca4de96d87c2a1712
BLAKE2b-256 7a67d51b36574049cb30f7b47a6596b310364ce47a77559ddb772fccf49fa0d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp313-cp313-win_amd64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3e49845ed28a7432309c493c630a5899af170cbb0dce652ff14ec50fbbc3915f
MD5 876b36fb6397fabb628fd3544aec6977
BLAKE2b-256 4af38541ee5a0e7c78d4d7f765e3392b5823473783abdd28c288387139aa44df

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6b06c37b19f0430c6fd5da804deea1b9fa63fe73a2c69cfed3a5713915cebdad
MD5 b40847932dfb6dd27e040a24793e9e71
BLAKE2b-256 cc0eeee571f5e7d77a9d76aa9b595d7aa9c4e8cd7df35f222e96f109bc2e22a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp313-cp313-manylinux_2_28_aarch64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc62685e2b0fd6decbc47282105d2d66b40c93b75623d2010be97b73b196add3
MD5 ab147a772e61a736900e774bb4ff6bbe
BLAKE2b-256 efa47b11c53fb9fa206aeccca98ca144874cf0b2870597c1faab27f5e4dfc14b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 391d28445a83e1c5930eafc544f9a952e6d9270b487e37ce64c15292c1c580fb
MD5 da35726f2cef8c5465d20b5569e8f242
BLAKE2b-256 5df73ef8e2c30f9088e9f3f2256ea32b831f5315e4042c0e81ddb8727a4c3053

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 55e2fe6bff80aa04d258bdb8435a243c74f968e85f325ac6767e8170c92f2ffc
MD5 6c3004d8ace62b99c7ef0cfd02330ad4
BLAKE2b-256 08be4ea90c5c79db85c83adc1ac0924557fa183b9afd89e3f85a16233bc569a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ef1b87fc37e51e83b9f4736f8ddb989c7afda5d81fe93509f2d7d129767366fb
MD5 170a08524b22da77f1434ed5e1979a64
BLAKE2b-256 ed5c892ba19a133e90223628a9fbd91d13d7b1e74cb95c42bf15525c225fbc55

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp312-cp312-manylinux_2_28_aarch64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 da27804842c117601395ab80f0bdfc3ec5505ea85fc75fce56d551d9f76fa1b8
MD5 910af3359652d87b9a3c5d5408f73b66
BLAKE2b-256 70be1cd71ba625c3ef0f3ea0c5c7f2979f2522e6961df6e595c05063a62f04d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ea37b6d988ca8e85e9b8e55cf779ff20909462a80150c7846387ce8441211314
MD5 cff66078e991cd567acf176206549569
BLAKE2b-256 2f858191a879800bc9b12c60599af9c81cce69cd07c36dcc895f3d46d7936b18

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp311-cp311-manylinux_2_28_aarch64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fa47c13da6e2125325f8ddde3506d11cef0d51253de1f0aed2aa284a95159fc1
MD5 a60dc749a0830c486792c5df5cb86b14
BLAKE2b-256 7766438d0abd6505d22c76fe7ec5c08941f287c0a4368d066b2a6ab5cfe2e424

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerospike_py-0.5.3-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.3-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 acef964a62ef80df11b33e799d50fdd2e6a20be98216acd7227fc9aed938821c
MD5 7caa8c1ca69be5dd3c769361199cdb48
BLAKE2b-256 9b6ce4bb8bb53a59d89a5d993442832f4b2eae59078290ea88b2558def0147d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.3-cp310-cp310-manylinux_2_28_aarch64.whl:

Publisher: publish.yaml on aerospike-ce-ecosystem/aerospike-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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