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

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14tmanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

aerospike_py-0.5.5-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.5-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.5.tar.gz.

File metadata

  • Download URL: aerospike_py-0.5.5.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.5.tar.gz
Algorithm Hash digest
SHA256 07586e53fe2e9bac737a425a40158c891fdfb4d25d06779e60869ca68bd75d68
MD5 7d82c7ec6e519e92a2d59322a897be05
BLAKE2b-256 b1f623a94b05f636a46d441e3fceba2891a6b388cbfc4c187ba9b455f2287652

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fcbf65e82028c2bdc9368ccca2ad993dc6b504af72f5b21f2fe4671b91e5b238
MD5 be3e93dfdb4a1c44a932b9ce0f191548
BLAKE2b-256 c5c5a6f8c35f71f477a4508bb59148b52ddaddb7ed12a4ba13babeb5fba7158f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e17434991f286147e21ff4d1b13f2e8bf5bf533592a54ccdba74ad28c6e0b3c3
MD5 bf8a4c5c8358aaf3d47516877b6d66e5
BLAKE2b-256 324ece1fc6246ff832cb14755fb01981225902dfdf3a88d5400508ff7e6fa6c8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp314-cp314t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 31564c6833ab896d36623a62c7f57d671e5dce506c3c0e56caeb30089576cdae
MD5 24d91a9e64de0cdd9830baad53a27a15
BLAKE2b-256 fb59548ddd80e2a50a19a835cf6fc7fe63de60a82b690395b7048d6d15ff9813

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 425bb3c6bb8708fad20cd0ac98e2e9020a822bb583dbbdb0b5824b618a0d0665
MD5 af8c7dbd533722ddbd247f50959ab82b
BLAKE2b-256 dfc8229875e05f1749a155593c21dc4029dc347637434235d3d58c76643595e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7bd62bf5affee48fe0381d33597ab2bc972e7e9ab9514a738d5ed735c09f266e
MD5 b8362a605115c7f97e97e1187e13a51a
BLAKE2b-256 84720000207376097c9b75310bbdd8f0b19ebe766e472151a54d17136b19389a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e742c504559de1b68390b58f17f12e2cf962fe0b905c8925a3a5a478746dd33b
MD5 c57047c4a3f8f0e313050e57b95f7dcb
BLAKE2b-256 a2a22d8afb570a58358b06779b1431c33d666e53709ccef557f61933db85a76a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 63b15db943354826e75515a6d0bdac72ad5a55a9a23f855b1a6dbe8086a05e38
MD5 75450641409eb9c93877fd44daacbfee
BLAKE2b-256 3cfdff42337ea344f5934a83f330bb2f3917198dc15a9f729e4842658fe93b24

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d6de9d1e8637883871a59c59feba89a5ed931c5b3c6d9f388991059660256c0f
MD5 ddcc200b75b5a90c1c626ee798c37488
BLAKE2b-256 3f75cd6f5a41b47ae71a206d1b95a71e5ddc0a8511caeb2a419c8df951162fc2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7f1754e834c3f870b3ebf351e67300bf239f104b073d24079d85befc792f4d3e
MD5 1e402d671c7d6dae84904c5712683b80
BLAKE2b-256 110934e69eda9ef24520ff767c6b28a17047224abab2f1e4133838ad3fc41bd3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f17445e77220a284514d8d12960831e9afc211a37f6e722ab3f418ccdab6e2b1
MD5 80dbf5b885d3fd5b035248c4d3b0f114
BLAKE2b-256 b2c781fe098d93affce4a2731aec0b84353bab87bf9f80d4af61eb549a66016f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f75adccb96e9d1a0455671745b782bdcee8bde328e965813dad6139e8e104d6c
MD5 e407a2950f87e9aad3f1f709e0b841c1
BLAKE2b-256 59d833588b3a61d651913ab528b4493144efd409d6e67eb8c38b334e8221608b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a0c2c58f1f6ff9774d18a4b1221218efa1b59536ae00a9ddcdd0b44db03229c5
MD5 635c8d375a2f1c9e3a8a173bea5debc3
BLAKE2b-256 6f355651bfdba38e137654bab26842fe4537f8c3225e160535d5f57bcb25f3ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0f1ca0ed16ee29c1fe44b0e00b6f97943faab21c0dd093336f92d4ef8f0dfd99
MD5 27e98c818568d9442b3caec56480026f
BLAKE2b-256 58f60df7faef1d1c00972b41b813b136bb6fa40c64670c0930e1500ed1015f3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ff099a4e285f4d274d76207a408499b5e7a0903ebb17aeca20d0e6a295ae3f7c
MD5 e78142292f2538e13af3aa322fbefe0c
BLAKE2b-256 2e0e0b7e6e7e866edd5457154f1a43cca52793cf4b5d7e58feb49791d27928e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b4caeeb9c1fd11626abb34fad49ff94d53d8b5d14a87011da81eccd322951371
MD5 20871cf10e67f46ab27334e7e0d747ec
BLAKE2b-256 300758e49f791ef168941f5344e1f6beeb3a23dbb22b5200a46b9cbc1aa219d4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c9084ae1c3b2be1dd76456fdc4522cee4ba1927f730e4c998ba93706c7fcb906
MD5 765194d4cc552c42dcbc4172d17d2dca
BLAKE2b-256 0fe54f4462b8bae09019292319165423b58c321188b53fe42a18f60c856d8441

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.5-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0ad99cfffc06ba9d3115e4e6680040901eeecba439173249246b15098e0e0832
MD5 02740fabfe7fac3cf0d9aef13deeeefe
BLAKE2b-256 b3cfc3bcbd30262c84890591734a2e90917beaf418f90993b796b01fc61db90a

See more details on using hashes here.

Provenance

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