Skip to main content
Built with Rust + PyO3

The Fastest Aerospike Python Client

High-performance Aerospike Python client built in Rust — native performance, zero extra dependencies, full Sync & Async support.

pip install aerospike-py
Faster than Official
0Python Dependencies
Sync + AsyncBoth APIs
PyO3Native Rust Binding

Why aerospike-py?

Built for production workloads where every millisecond counts

Rust Performance

Native binary via PyO3 — zero Python overhead on the hot path.

Sync & Async

Both Client and AsyncClient. Works with FastAPI, Django, Gunicorn, and more.

Zero Python Deps

Ships as a compiled wheel. No native C extensions to install separately.

Full Type Hints

PEP 561 compliant with bundled .pyi stubs. First-class IDE auto-complete.

NumPy Support

Batch results directly as NumPy arrays — ideal for analytics workloads.

Sync & Async Support

Use Client for synchronous workloads or AsyncClient for async frameworks like FastAPI, Starlette, and Django Channels — same API, both fully supported.

from aerospike_py import Client

with Client({"hosts": [("127.0.0.1", 3000)]}).connect() as client:
key = ("test", "users", "ada")
client.put(key, {"name": "Ada", "active": True})
record = client.get(key)
print(record.bins)