Skip to main content

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.
  • Suppports both sync and async saver functionality

Installation

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

pip install langgraph-checkpoint-cosmosdb

Usage

Setting Up Environment

To use the CosmosDBSaver

  • You need to set CosmosDB endpoint and key if you want it to create your specified database and container.
export COSMOSDB_ENDPOINT='your_cosmosdb_endpoint'
export COSMOSDB_KEY='your_cosmosdb_key'
  • If database and container already exists then this can work via default RBAC credentials. Ex. az login or by setting TENANT_ID, CLIENT_ID and CLIENT_SECRET in environment.
    • For user-assigned managed identity, ensure AZURE_CLIENT_ID environment variable is set to the identity's client ID.
    • Note that in this case error will be thrown if database and container do not exist.

Import

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')

Limitations

List function does not support filters. You can only pass config on thread id to get the list.

print(list(memory.list(config=config)))

License

This project is licensed under the MIT License.

Metadata

Release files for langgraph_checkpoint_cosmosdb 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langgraph_checkpoint_cosmosdb 0.2.6
File Size Uploaded Provenance Actions
langgraph_checkpoint_cosmosdb-0.2.6.tar.gz 177.7 kB Without provenance Details for langgraph_checkpoint_cosmosdb-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langgraph_checkpoint_cosmosdb 0.2.6
File Interpreter ABI Platform Actions
langgraph_checkpoint_cosmosdb-0.2.6-py3-none-any.whl Python 3 none any Details for langgraph_checkpoint_cosmosdb-0.2.6-py3-none-any.whl

Total release size: 185.3 kB

Release files / langgraph_checkpoint_cosmosdb-0.2.6.tar.gz

Download URL langgraph_checkpoint_cosmosdb-0.2.6.tar.gz
Size 177.7 kB
Tags Source
SHA-256 checksum
How to use checksums
365f83a960947a4eeae841f85a19f66d1aefdf8196c7cee05595dbe3594b94d3
BLAKE2b-256 checksum
How to use checksums
a62645c4f42d1c06bf0a9825b8af6b6f90d373ec324548b5f4168e0cf19211a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / langgraph_checkpoint_cosmosdb-0.2.6-py3-none-any.whl

Download URL langgraph_checkpoint_cosmosdb-0.2.6-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57b329d014b14c30e4ff72ad002de492bc0a6948b07d465e019c4ee70161139b
BLAKE2b-256 checksum
How to use checksums
35e2d9dac9f4a5dd944512f388a96ec295c26c475ac47a72f1c32a215a3e857b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for langgraph_checkpoint_cosmosdb 0.2.6

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page