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 — connect, create sessions, manage lifecycle |
|
Cluster handle returned by |
|
Scoped reads and writes with a fixed |
|
Build and execute read queries (point, set, batch) |
|
Build and execute writes (upsert, insert, update, replace, delete) |
|
Read operations on list and map CDTs |
|
Write operations on list and map CDTs |
|
Low-level batch operation builder |
|
Create and drop secondary indexes |
|
Server-side background jobs (update, delete, touch, UDF) |
|
Foreground UDF execution |
|
Aerospike info protocol commands |
|
Multi-record transactions |
Sync API¶
Synchronous wrappers for the async API. Same functionality, no async/await.
Class |
Description |
|---|---|
Sync entry point |
|
Sync cluster handle |
|
Sync session |
|
Sync query builder |
|
Sync write builder (upsert, insert, update, replace, delete) |
|
Sync batch operation builder |
|
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 |
|
Sync cluster connection configuration |
|
Sync TLS configuration builder |
Core¶
Shared types used by both async and sync APIs.
Class |
Description |
|---|---|
Namespace + set pair, key factory |
|
Single result from a query or batch |
|
Async iterator over query results |
|
Policy presets (timeouts, consistency) |
|
Cluster connection configuration |
|
TLS configuration builder |
|
Global system-level tunables |
|
Error handling strategies |
|
Exception hierarchy |
|
Query optimization hints |
|
Background secondary index discovery |
AEL¶
Aerospike Expression Language parsing and filter generation.
Class / Function |
Description |
|---|---|
Parse AEL strings into filter expressions |
|
Secondary index filter generation |
|
Programmatic expression builder |