Skip to main content

Aerospike-based checkpoint saver for LangGraph

Project description

LangGraph Checkpoint Aerospike

Store LangGraph checkpoints in Aerospike using the provided AerospikeSaver.

Installation

pip install -U langgraph-checkpoint-aerospike

Usage

  1. 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
  1. Point the saver at your cluster (Default):

    • AEROSPIKE_HOST=127.0.0.1
    • AEROSPIKE_PORT=3000
    • AEROSPIKE_NAMESPACE=test
  2. Use in workflow:

    import aerospike
    from langgraph.checkpoint.aerospike import AerospikeSaver
    
    client = aerospike.client({"hosts": [("127.0.0.1", 3000)]}).connect()
    saver = AerospikeSaver(client=client, namespace="test")
    
    compiled = graph.compile(checkpointer=saver)  # graph is your LangGraph graph
    compiled.invoke({"input": "hello"}, config={"configurable": {"thread_id": "demo"}})
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langgraph_checkpoint_aerospike-0.2.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file langgraph_checkpoint_aerospike-0.2.0.tar.gz.

File metadata

File hashes

Hashes for langgraph_checkpoint_aerospike-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a5d0bd67559b416a84cbe2a4fd5d7b076b610780e4a8502d9a3c4cebe8eff4c0
MD5 231b117ff331739ebe52a8f98e57ef52
BLAKE2b-256 bc22343b140d9e0115a1ba0911234cef06a774611716a4e789bff8b490e5e12f

See more details on using hashes here.

Provenance

The following attestation bundles were made for langgraph_checkpoint_aerospike-0.2.0.tar.gz:

Publisher: release-checkpoint.yml on aerospike/langgraph-aerospike

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langgraph_checkpoint_aerospike-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langgraph_checkpoint_aerospike-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ecb5d454be8e212cd46e23d7841df5ba210ae507d6547824ca2b08543816ddf
MD5 7dea4bb1e896576cd23f323e423ccb79
BLAKE2b-256 67ad141515dd3b36be70b90017a9dd0c65122f56c2bcef3a4c3d6645e97e78e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for langgraph_checkpoint_aerospike-0.2.0-py3-none-any.whl:

Publisher: release-checkpoint.yml on aerospike/langgraph-aerospike

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page