API Reference¶
The Aerospike Python SDK is organized into three layers:
Async API¶
The primary API. All operations are async/await.
Class |
Description |
|---|---|
Entry point — configure seeds/auth/TLS, then |
|
Multi-loop async pool — N event loops × N cluster members for parallel async work (free-threaded Python) |
|
Live cluster connection returned by |
|
One server node: address, version, and per-node info commands |
|
Scoped reads and writes with a fixed |
|
Build and execute read queries (point, set, batch) |
|
Build and execute writes (upsert, insert, update, replace, delete) |
|
Tabular writes: a bin schema, then one row per record |
|
Read operations on list and map CDTs |
|
Write operations on list and map CDTs |
|
Server-side string operation factory + flag types |
|
Create and drop secondary indexes |
|
Server-side background jobs (update, delete, touch, UDF) |
|
Foreground UDF execution |
|
Aerospike info protocol commands |
|
Multi-record transactions |
|
Outcome of a transaction commit or abort |
Sync API¶
Synchronous wrappers for the async API. Same functionality, no async/await.
Class |
Description |
|---|---|
Sync entry point — configure, then |
|
Sync cluster handle |
|
Sync server node view |
|
Sync session |
|
Sync query builder |
|
Sync write builder (upsert, insert, update, replace, delete) |
|
Sync tabular writes |
|
Sync secondary index builder |
|
Sync server-side background jobs |
|
Sync foreground UDF execution |
|
Sync info protocol commands |
|
Sync multi-record transactions |
|
Sync iterator over query results |
Core¶
Shared types used by both async and sync APIs.
Class |
Description |
|---|---|
Namespace + set pair, key factory |
|
HyperLogLog bin precision (index + minhash bit counts) |
|
Declares a map bin key-ordered on a plain write |
|
Single result from a query or batch |
|
Typed-accessor wrapper around a single operation’s value |
|
Async iterator over query results |
|
Policy presets (timeouts, consistency) |
|
Cluster connection configuration |
|
Global system-level tunables |
|
Error handling strategies |
|
Exception hierarchy |
|
Structured expression build trace on |
|
Query optimization hints |
|
Metrics policy, snapshot, and derived latency views |
|
Stable logger names for operator tuning |
Expressions¶
Class / Function |
Description |
|---|---|
Programmatic expression builder |
String AEL for .where() is compiled on the server (field 43) — see the
AEL guide.