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

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14tmanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

aerospike_py-0.5.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: aerospike_py-0.5.2.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.2.tar.gz
Algorithm Hash digest
SHA256 241c7aa7913236c224d4f4619cbb7cbe8920889e706b2bc3dc787ddd13135f52
MD5 b571e762cfd37663368c724dc14eab4a
BLAKE2b-256 ae44e1026416a6e604f745fd6e857c9e3287ff30a6e7326096d3fb16e6db737e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f6668ee32ab7f49131fe89925adf48a914eec0bdbc0151c54e2c379c80e4eb39
MD5 18f8692767488b7b1763c64a551d6e68
BLAKE2b-256 cd8ff955da28d99d1f0c5059eed477bc4693b9aa33e6ce040532e99eff4146fa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 22167f11859e94eb130832bbb5a40a51e365c4646d065c4060685ad2e3d63b12
MD5 bf5adf45a6869a1ffcab55ed59d816fc
BLAKE2b-256 c34aad19713e77515099a56b47f1e1f23212c966a812912a18c163cd39896930

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp314-cp314t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3b8b74326ceaf70b9361022748e380224f90a1f2c2bc2e437adab58405a80594
MD5 d5d7f726ee32a8f14c679dc2b9cc66a5
BLAKE2b-256 a7c008fe49a679178d97503824d33c92c19d66fa5521bda661bef94d958508f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cc3d0dbad8b29da305e003a2e593244e737edacef1839cb13dbd5be7d5bc6c57
MD5 67f6db40afdc6f4384e02c40de6b84d4
BLAKE2b-256 f4b9c133ea0b0476c1701b03a025f5d681b060d572e5f20ddef58fdbb93aa408

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b6bd1b96e5017358db06e9e149a621537cc8c3aaa0ea291822676c139b7eaaf7
MD5 32bba88d544fdd9ebf6dd8bcfa2354f9
BLAKE2b-256 0fe708cbbc8cbb4147ea8c69ea5ffe4a800fad0a1e85c882cc13e6fc1ecedd31

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9dd411a2cd0172d3e50716fe4a3d7f07b4d1481f09803656e657042b94698c7d
MD5 7ece72c0a4b043c6d40405e2cb955a3d
BLAKE2b-256 a5bef5032d0bbbae2a14666422079d2c1daee5a979518a21661e6aa4463569a6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9cf3c816422f43829aac28ff850638dd8a087ce86f9f94dd953581637cec6036
MD5 9a72f847af799532be1bcfdc3dbd83df
BLAKE2b-256 13af26c0f1433863e4d74c129032a07bc690bbeb209b270927e657fffe908a17

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eb821bc79bb8e0435946f6639cabbd1aa1dda601e9007bd75ddce696cf620f5b
MD5 1e1f49da214fe2d13aca6d4c695b3b64
BLAKE2b-256 e93089565707315891e7a4d63c846d7859c894d2a3030cdfa71b6c4c1e0b5d7e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2a1de5482eaed59785b722019ac86b5517d47b4c99dc6ea12cf086926f84651a
MD5 f359ac4131350568991d9c77f4108965
BLAKE2b-256 6129f5b92efbeb533d98d4a88e7f7ed6908219e49f61fb260f49a310cdbe30ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f896da96c8ac819910b6b62393e3519a25fcf6937f2f81d41ea109486254589
MD5 de2d11d6b5a42c891b9e60abd6db858e
BLAKE2b-256 6ddfe5d9b8baa1a803769e4eb1a282f37daefacdb77018ce40d677e058ca371c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6804e69469fafe1c45d2afeaae3ae2dd891b12420dfa2dff46a127c09b608050
MD5 ad491221e2b7c6ba3f36ae96c8534385
BLAKE2b-256 a6b29e6ea1975576b89fbc45c336c89a8aae86d7311de3a8ef64d4b303f50b52

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 205c806d09c47a2bbeb7079f38e5e50e96b66f156d4b499a6961f76624fa042d
MD5 b1d3d9215966b4667dce25de738062a7
BLAKE2b-256 09316d9e8005d12e860311d4ecbd4c0789773ccc0a862b737c0678696b8115ca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b542fe05cdf1b6087fa7b3a76087c6cd298663554c1effd6a18878b0f1ab9e32
MD5 72b64c02854d02926a310d123bbab3d1
BLAKE2b-256 cf8a6d6d7d576f67d860f3dc576eb018ffd32b0dde4689ae545a9cc28d1536de

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 24379bb4d3dc9def989cfd7751a8858a803817a15164a85b163d299a1d630349
MD5 e142ccfca952e78e7588f73454c5fb8e
BLAKE2b-256 451a4eee90814ca2b66b15dedadb6edd035a42aa26e1dd24653d490378ab2257

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e759976787cf405494163b98e5fab2584d8a4368445f3a0b09dd6d8392bd294c
MD5 eeab6af0a3c9e88f0e42cff28f63cf05
BLAKE2b-256 ded7379a4dffeb1b2420d0c63e6bc5a43e6a6df780077f88f3f276a6603fc97b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6d5121aa64572d3abba56aca408175499287e570ef344d551078de89b7c0df33
MD5 fd657f22923de682bfc666791bff08b9
BLAKE2b-256 303711a50a40afc7e493f239c8b113621079a9c6e08b123d6de32d5c9d81958c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aerospike_py-0.5.2-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4d39d9ef8d819fbc891e99fc5d830456818f8719be73b08cf85b5524cd195ff4
MD5 c902b3be0068fffd8db5c0fb7de6d133
BLAKE2b-256 d4bd5e8f4f7631048487e5bbfdcb4d1558dc4446665fcd4187756807e0ca36bd

See more details on using hashes here.

Provenance

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