LangGraph Store Aerospike
Store LangGraph state and data in Aerospike using the provided AerospikeStore.
Installation
pip install -U langgraph-store-aerospike
Usage
- Bring up Aerospike locally using prebuilt Aerospike Docker Image:
docker run -d --name aerospike -p 3000-3002:3000-3002 container.aerospike.com/aerospike/aerospike-server
-
Point the store at your cluster (Default):
AEROSPIKE_HOST=127.0.0.1AEROSPIKE_PORT=3000AEROSPIKE_NAMESPACE=langgraph(default namespace for the store)AEROSPIKE_SET=store(default set name)
-
Compile a LangGraph graph with the store. Nodes reach it through
get_store(), so the same long-term memory is shared across every run and every thread (unlike a checkpointer, which is scoped to a single thread):
from typing import TypedDict
import aerospike
from langgraph.config import get_store
from langgraph.graph import START, END, StateGraph
from langgraph.store.aerospike import AerospikeStore
# 1. Connect to Aerospike and build the store.
client = aerospike.client({"hosts": [("127.0.0.1", 3000)]}).connect()
store = AerospikeStore(client=client, namespace="test", set="langgraph_store")
# 2. Define a graph whose node reads and writes long-term memory.
class State(TypedDict):
user_id: str
food: str
def remember_preference(state: State) -> State:
store = get_store()
namespace = ("users", state["user_id"])
# Persist something we learned about this user.
store.put(namespace, key="profile", value={"favorite_food": state["food"]})
# Read it back (would also be visible in any future run / thread).
profile = store.get(namespace, key="profile")
print(profile.value) # {"favorite_food": "pizza"}
return state
builder = StateGraph(State)
builder.add_node("remember_preference", remember_preference)
builder.add_edge(START, "remember_preference")
builder.add_edge("remember_preference", END)
# 3. Compile with the Aerospike store and run.
graph = builder.compile(store=store)
graph.invoke({"user_id": "user_123", "food": "pizza"})
The store is also a standalone BaseStore, so you can use it directly outside a
graph for the same cross-thread memory:
# Search within a namespace prefix, filtering on stored fields.
results = store.search(("users",), filter={"favorite_food": "pizza"}, limit=10)
# Delete an item.
store.delete(("users", "user_123"), key="profile")
Metadata
Release files for langgraph-store-aerospike 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langgraph_store_aerospike-0.3.0.tar.gz | 19.6 kB | With provenance | Details for langgraph_store_aerospike-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langgraph_store_aerospike-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for langgraph_store_aerospike-0.3.0-py3-none-any.whl |
Total release size: 32.1 kB
Release files / langgraph_store_aerospike-0.3.0.tar.gz
| Download URL | langgraph_store_aerospike-0.3.0.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a92b1daf172dab9ffa9e51f0ddfa5a81cfaa330d828debf2a19f72b8cb5df94
|
|
BLAKE2b-256 checksum How to use checksums |
2a5effb2ac1ea54b9f3c28ba6c42dbc32106f46c3f0f5949b44d77a0fff9f108
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.
Transparency logRelease files / langgraph_store_aerospike-0.3.0-py3-none-any.whl
| Download URL | langgraph_store_aerospike-0.3.0-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df6c17d9f59da15e632ed7e10f68915efc30402724b32839b162b83bb0b6902c
|
|
BLAKE2b-256 checksum How to use checksums |
9460998e38e4acec14d078917c8dc8c7a61efb4a8cc3536e67944c71b7c35576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.
Transparency logSecurity for langgraph-store-aerospike 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for langgraph_store_aerospike-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.