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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langgraph_checkpoint_cosmosdb-0.1.5.tar.gz.
File metadata
- Download URL: langgraph_checkpoint_cosmosdb-0.1.5.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08dce1d098c1b5728d8cde904800a2c34657dfd3815321b3ec5ea2e2073eddc6
|
|
| MD5 |
fad9db5cc2d7c2c620a8360359804891
|
|
| BLAKE2b-256 |
131d6b3d60c98f8e269004dcee8758c5cf01a2a5875f972cc63789156a6a217a
|
File details
Details for the file langgraph_checkpoint_cosmosdb-0.1.5-py3-none-any.whl.
File metadata
- Download URL: langgraph_checkpoint_cosmosdb-0.1.5-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b20ab28e7fe50699114aef74d4dd983e99d1e8ba071146348332e5be4f55e6e0
|
|
| MD5 |
83b1c87040076e5f684cf901250018d9
|
|
| BLAKE2b-256 |
8738f5004f716aedaedbb2565e232103c82e2df09f3aa11b8f8a30b03cbe68f8
|