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.1.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.1-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.1-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14tmanylinux: glibc 2.28+ ARM64

aerospike_py-0.5.1-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.1-cp314-cp314-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13Windows x86-64

aerospike_py-0.5.1-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.1-cp313-cp313-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

aerospike_py-0.5.1-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.1-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.1-cp312-cp312-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

aerospike_py-0.5.1-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.1-cp311-cp311-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

aerospike_py-0.5.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: aerospike_py-0.5.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ba9e27ce0f0496b0c34b8340db42957deb8e90bfb350f96263571f8925697df0
MD5 d0dc7ce495e24e37f59e4b2b7f17e8c6
BLAKE2b-256 46e5dfebea5e9b6eeb61b06acf46271428d104dff372cb7b8fea2d95ae643476

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1.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.1-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e0d96f0598922574ebbe09d85b3c3696fa53363f0db452169edf7c2740a2168f
MD5 6c6178c3b525cf773fa771d0ef2c2f04
BLAKE2b-256 02276bb2123bcad8e678c477fb8ce69da5196d298521acf2206d9df3eaf7186e

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 78509aa40f893a01001258b51c68b2e93cb3c399ae39a95227f5e7f6d26d2d5b
MD5 26087f81216eee3437c0aa54305d1077
BLAKE2b-256 0de24790a2694baab208ee272f3ba829ef39b0d992b2ea4651c7cd16daabd13c

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp314-cp314t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp314-cp314t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 00a4730b3af585fe627774e98ac838527997b2d9c752e8f554313a2ef77a4f25
MD5 d5b6dcbe2f0e1d906001014d3a5faba9
BLAKE2b-256 5939ed7f84a501e325c164fbc12d7b1feda96b42f26e62264b79b13b7365de3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a1fa6b54f734790cac4578deea11dbbdf1e00e0a31b9d06ae803f0967d8b344a
MD5 96db0e37cd89b0ff7272d1d578a7d0f1
BLAKE2b-256 e470b0cc9ed04833eec668c39de12f92c1e9fd469dd6117db2d17c6732f65c62

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 246c488273462af14b6f787144196ef5d82fb0b339fd622c1aebaf79aa93fdb5
MD5 d826e4937424c577577a7782b0c9da95
BLAKE2b-256 1e26ea20a52d2a0a88e597dcdfc669fec03ab4ea8c37393184923307c9ba26b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp313-cp313t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cc715ec7fdf6fad4eefd56c57ee99e273a021365d211fa93d1b26c8c8779d367
MD5 b2fb709462345b03425684f3d65a10cd
BLAKE2b-256 a5fb0b246bab6eb8aeae825ebf90ddb0f30f47dc6a9d222be9ed745c38632bae

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6bc2121b75b06b81ca6ed33f7241a9577e7dc843f2c675fedd09ae49b21f80ae
MD5 198182d4ce4ddd8d6648415afde6f8ad
BLAKE2b-256 91c1742a9caca51c9f3855f0f79b5eca5431659ed686103bc1045f5bea7f06bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9e64d2abfb36b24bfc22949680beea43d28a2e30cce8e83310e4d1e09ec0f7ce
MD5 5372ad8d149de6b66206536b643568e6
BLAKE2b-256 f82843e38f17d41a990f2e34e75c8e1d961057a7267884a37d329a76d474cf79

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0f9a958f60f2b7f876ae16ccd93707d6d4d556ec580fb73cb233f3acd8e085a0
MD5 a03c9dd580db43045feaead5aa062921
BLAKE2b-256 72a1c43d1eeff42f68f8f56af6b8379f535650ab62f7b93f7072cb7488c5ee76

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d2614cc6befa0fe9eb709d71bf46f9677a77b1140d9a27192a25f26d581fc33
MD5 4a1b4124d6d9a08b191282fc2b95a8d2
BLAKE2b-256 3b99dcf9f197a00e578ffeb9c43a62c720835eb5ea469290742ec75095492c9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a91712708447f241ad5e7ae0d18d72a50011efdcdd4af20cb519f5647817e57d
MD5 4da5e3da8f418e198d7e6082a5b3878a
BLAKE2b-256 f62275e0d431bd73b0e77d5102266c2387ab95e916933880dee3538e0b65981e

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c219bb165726a72980f83eeb071b3a093dc1bf69cd8f7d8b2038d4da6bc651f0
MD5 ad2e53597046a1e076045589b5b3bba2
BLAKE2b-256 1c2c56f779d68c6eb2fee45db8515c9dd5c1b50f61114fea5334d9302d3e4d47

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2614c739d5e5d8516f36545eb89e0130673865cb38d7fc372f058f1af9f25fe3
MD5 722a6a31384eab3f3ee9d1e0a6b8227c
BLAKE2b-256 8987f87554cac39c0ea8d2604159e8ae3271b2726dee24847df75b727f957d93

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c257915158eb19983242e67583e20b685497777b55a940394c342009e19ac84c
MD5 c9dce9a2a1a279d90fae8416006b8dc3
BLAKE2b-256 10ae8b973a07da06f0a5b5444c3980607692eaafb31387e03fb08efdb07fb085

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 da1b794b2e09c16eaa6412a9d164989f54c4ebc1e655752ba948508f220e1f36
MD5 f12d8b49001d94efb5e67b3e2c4234a7
BLAKE2b-256 25fafb621d6992826767828d6a5d53e222fe7b8cbb5d82cc7ee80c1b3fff2cfd

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 157d1c3ce4293c2c89a6f44c8811c3c9263cccabe47276669945859484d3a7d7
MD5 1335efbb93101debd8967a52c63f4e91
BLAKE2b-256 c0c0e029359fc05826e06792ed39b09488a8e8db8dcb81e3a6fa50525f348461

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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.1-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for aerospike_py-0.5.1-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 90114db358c9aa9c5bd091d81afb41720af8a843dea3c2e80665249aae8585d2
MD5 ff4c44ca69e7a6465ad78c405767f72a
BLAKE2b-256 c933d0b2d475e41a30dfcfaa9d2c670a009926a1cdff334fa8b40ff15bd873e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerospike_py-0.5.1-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