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

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14tmanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

aerospike_py-0.5.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: aerospike_py-0.5.4.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.4.tar.gz
Algorithm Hash digest
SHA256 6ef11a291b75ce9a7d6f79d20530c101904f7c427f2489d36f0a2e2a78d84541
MD5 01484b313828e691596ec50049cb33d8
BLAKE2b-256 036f8fdd210cb46b29a95aeca2d06e85273f86ed61f21ae2fa677b5f20a782cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 941bcbfd657e4885e0a3bd00f4b6f20821a424ddd1af5506f5ea2035c1a0e43e
MD5 f86f9ded0333d1b921920f2ff5d871ae
BLAKE2b-256 7a47df48c8e9c92ab6f87902d9fee4dc26651665726a164ce830a518a3b2cb6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 793d3c2c82164d88fd77abd2fc732c8620d5d25cde57e0f46e27677c74d88342
MD5 d76981584011920ca9f5452c871517d6
BLAKE2b-256 ddd517bc450f408d0bf0e03c5d41c56814ee50b6e1463f1c6ad8163f3bbe1934

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp314-cp314t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3c516437713e8deb945d941e6666aafcfe014a11b93c1fe58855813898474a59
MD5 9436cf988263c0317e87eb0a1fd9d5dc
BLAKE2b-256 ccebe3f61130a21b616eca60911787fbe7185e52667fea5c90eb06db2d215cf2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8dedf0079d7710892702dedb31e0937aba963490230347b042d7ca6881528082
MD5 c47ab843c03d7d1bb333f78a52347985
BLAKE2b-256 cd4051c90d892015b217ffcafc391b47978294be3d85eb468db608a3a7943f18

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 45a12b410c419bdb621991c087bdf4fe9e3477f03e504b888fba2cc5c4473cee
MD5 435b6e59f01bea9a6da7e4b76a13c77d
BLAKE2b-256 0053daa7ca27a01877ddfe6c8544558149fd7c071c2bcd00c7921be6c1e9646d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 008c9dad03dda8ce6d59f82361b4cfca405145fc33cc65b29023af43f72d869e
MD5 0be56ac7b0b34a6dda83d9a44081867d
BLAKE2b-256 57f66f36495f97eb75c3e60f3727bb89c6fe1c8a020f925d84b500018d117d62

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7380b87a0e9e80b0d6b74ec83b9f15f73fea8b76547645e6455757c249916429
MD5 3edfaefea56bf04888d10c9a0ac994c7
BLAKE2b-256 756503fd8292929976efa65bb40a4ca17f28107610b257fa60abd5e65f9a82c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0c4f495563fdfc58ba195560c74fe41ae8e66c835ff10781b976ff6603e3c1d4
MD5 0df74dc257382f2ac5f16e2233d45510
BLAKE2b-256 3d916599477a34f30b934bda3a2802084398f0e43013555f816741e7320bba4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 faf8588ea6a6be9a1070c5476a6d599d353693f959a7c42f4decc814a6c40c2a
MD5 37711ff9b6b2a23e3ce1c5a0d3e4017b
BLAKE2b-256 908c4386313c59fe0407c9ab60e21253e125d1e631b162ee1e5b2614d67592f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffdb28a0306413354049291078cdf6abcce3d7e28be9f09130e8851cdd2bdbd7
MD5 ece7fab0913c294ed3a3172b1f48cf48
BLAKE2b-256 bdd5244a119565c7e035f2311a0ab9724d69ee1ed95ad15401fc623b1d8dc19e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 499dd5e56b80e010a7353a1b4429cdc848e1a98c103afd2e33bf3d285b093c61
MD5 46c8083b25ed5a8c38a1222c1bb97e9a
BLAKE2b-256 846b06ce238156a3f90c8feecaa796373617cfce6b67ea414997c988c104ae60

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 79f19d56661f05c6612cb0867d8a10489d0d8dbf2bcb2bfcb6ff1503b1fb12d1
MD5 0bde1b66705f7bd2dc171ccfbfeb7436
BLAKE2b-256 2e7e364e064e014206df24f404177e1689fe2016a41641e1cbca0a83cf3970b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 48376db20e67b2a4973edf82f4630720245ace2469c79afa6e13a5c2d5d526e6
MD5 612fbe883b9d756b6b778e763f330b0a
BLAKE2b-256 db5e6589308db82bdab60f6d94a479c5178206135cef67267e4f6c016dc0749d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 74b959d89f9f818d845ddc82c0d3f7f06364956cfe77f644b1b6bf0712c48194
MD5 3b290f569a3f32db1557a1d6bca2c400
BLAKE2b-256 2940b3e64e2bd24edec56e024b82e85a6085a6ad1e49eb9ac2cad9eeab904630

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f947491d0687264ba61d93e951579f73a01ed8b32e03211adf827a4d0f83bc28
MD5 70ae6d51abbdb11aade04477a7b84048
BLAKE2b-256 676000841415bd5cd1c7515baf6ce16ca3330e3e8291ee4c73b2f8d04f3569e0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 07385373b2e9cfd80af448020f2ea9e2d7e9005bd40fd2d17b4dadbafa6d2cf0
MD5 1a0065e5315be46421b7fd703a4b4765
BLAKE2b-256 d99209b6bac9713c0332c09f3955e3cb24cd9f93f58f9fec09188618e7ce474e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.4-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4e575fb64edbf1bcf3fd795bb03779169a46ef09cd05028af46cc1bdc88fe74c
MD5 6770c0e4c1182dd14e5a624a8e4f3726
BLAKE2b-256 3c2366adc174ac7771bf5ae0f6216d74bb0d279344d963f7319bb9cdc37831bf

See more details on using hashes here.

Provenance

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