Skip to main content

Azure CosmosDB checkpoint saver implementation for LangGraph

Project description

LangGraph Checkpoint CosmosDB

This project provides an implementation of a checkpoint saver for LangGraph using Azure CosmosDB.

Features

  • Save and retrieve langgraph checkpoints in Azure CosmosDB.

Installation

To install the package, ensure you have Python 3.9 or higher, and run:

pip install langgraph-checkpoint-cosmosdb

Usage

Setting Up CosmosDBSaver

To use the CosmosDBSaver, you need to provide the CosmosDB endpoint and key, along with the database and container names. These can be set as environment variables:

export COSMOSDB_ENDPOINT='your_cosmosdb_endpoint'
export COSMOSDB_KEY='your_cosmosdb_key'

Example

python
from langgraph_checkpoint_cosmosdb import CosmosDBSaver

Initialize the saver

Database and Container is created if it does not exists

saver = CosmosDBSaver(database_name='your_database', container_name='your_container')

License

This project is licensed under the MIT License.

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_cosmosdb-0.1.5.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

langgraph_checkpoint_cosmosdb-0.1.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file langgraph_checkpoint_cosmosdb-0.1.5.tar.gz.

File metadata

File hashes

Hashes for langgraph_checkpoint_cosmosdb-0.1.5.tar.gz
Algorithm Hash digest
SHA256 08dce1d098c1b5728d8cde904800a2c34657dfd3815321b3ec5ea2e2073eddc6
MD5 fad9db5cc2d7c2c620a8360359804891
BLAKE2b-256 131d6b3d60c98f8e269004dcee8758c5cf01a2a5875f972cc63789156a6a217a

See more details on using hashes here.

File details

Details for the file langgraph_checkpoint_cosmosdb-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for langgraph_checkpoint_cosmosdb-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b20ab28e7fe50699114aef74d4dd983e99d1e8ba071146348332e5be4f55e6e0
MD5 83b1c87040076e5f684cf901250018d9
BLAKE2b-256 8738f5004f716aedaedbb2565e232103c82e2df09f3aa11b8f8a30b03cbe68f8

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