Registry / database / aerospike-py

aerospike-py

JSON →
library0.10.5pypypiunverified

High-performance Aerospike Python client with sync and async APIs, built with PyO3 and Rust. Latest version 0.10.5; requires Python >=3.10. Active development with monthly releases.

pip install aerospike-py
INSTALL
IMPORT
SIG · AEROSPIKE-PY
A
aerospike-py
databasepythonv0.10.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AerospikeClient
from aerospike_py import AerospikeClient
from aerospike import AerospikeClient

Connect, write, and read a record with default settings.

import os from aerospike import AerospikeClient, WritePolicy client = AerospikeClient( seeds=[(os.environ.get('AEROSPIKE_HOST', 'localhost'), 3000)], username=os.environ.get('AEROSPIKE_USER', ''), password=os.environ.get('AEROSPIKE_PASSWORD', '') ) policy = WritePolicy() key = ('test', 'demo', 'hello') bins = {'name': 'World'} client.put(key, bins, policy=policy) print(client.get(key)) client.close()
Debug
Known issues
breakingThe import path changed from 'aerospike.client' to 'from aerospike import AerospikeClient' in v0.9.0.
fix
Use 'from aerospike import AerospikeClient' instead of 'import aerospike; client = aerospike.client(...)'.
affects: <0.9.0
gotchaThe library requires Python >=3.10. Installing on older Python versions will fail.
fix
Upgrade Python to 3.10 or later.
affects: all
deprecatedThe old 'aerospike' package (C client) is not compatible. aerospike-py is a separate, Rust-based client.
fix
Uninstall the old package: pip uninstall aerospike; then pip install aerospike-py.
affects: all
gotchaPolicy objects must be passed as keyword arguments, not positional. E.g., client.put(key, bins, policy=WritePolicy())
fix
Always use keyword arguments for policies: client.put(key, bins, policy=my_policy).
affects: >=0.9.0
Upgrade
Version history
0.10.5latest on PyPI · released May 8, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
28
OpenAI (training)
1
Resources
aerospike-py — pip install aerospike-py · libregistry