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.1.0.tar.gz (16.2 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.1.0.tar.gz.

File metadata

File hashes

Hashes for langgraph_checkpoint_aerospike-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8b3ba161ae7a931059476faec5472e895982d2b4cad8dcdaee9c453c511f6a24
MD5 fd7f2b1fd20eea7ace66db6dffb16401
BLAKE2b-256 ec017cbde98041218afebc1cd4d4a959a60923ec8954793cc82d411af5e3b215

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langgraph_checkpoint_aerospike-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac9ecefbc09af57c3490a99ee8355585c2af8b881a1ff586e9a920f45a98374c
MD5 d1d5348e53d16dcb01ac850e6a2540b8
BLAKE2b-256 e6f777cfe3d80f38b826537d7eeb9a780305e6c773b80f70375d49931a98b98f

See more details on using hashes here.

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