aerospike is a package which provides a Python client for Aerospike database clusters. The client enables applications to interact with Aerospike, managing connections and handling database operations like CRUD, queries, and scans. It is a CPython module built on the Aerospike C client. The current version is 19.2.0, and the library maintains an active release cycle with frequent updates and major version increments.
pip install aerospikeVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to connect to an Aerospike cluster, write a record with a key and bins, read the record, update a bin, and finally close the client connection. It assumes an Aerospike database is running on localhost:3000.
Ensure your Aerospike server version is 4.9 or newer before upgrading the Python client.
Always check the official documentation for the supported Python range. The current client (19.x.x) supports Python 3.10 - 3.14.
Use `client.scan()` and `client.query()` methods on an `aerospike.Client` instance instead.
Use `info_single_node()` instead.
Ensure all port numbers in the host configuration are integers.
Install the Aerospike client using pip: `pip install aerospike`.
Rename the script to avoid naming conflicts, e.g., 'aerospike_test.py'.
Use the correct method 'info' instead: `client.info('sets')`.1. Verify the `hosts` (IP address and port, typically 3000) in your client configuration. 2. Ensure the Aerospike server is running and accessible from the client machine. 3. Check firewall rules blocking the connection. 4. If using Python client version 5.0.0 or newer, ensure your Aerospike server is version 4.9 or later.
No dependency data recorded yet.