Google Firestore checkpoint saver implementation for LangGraph
Project description
LangGraph Checkpoint Firestore
This project provides an implementation of a checkpoint saver for LangGraph using Google Firestore.
Features
- Save and retrieve langgraph checkpoints in Google Firestore.
Installation
To install the package, ensure you have Python 3.9 or higher, and run:
pip install langgraph-checkpoint-firestore
Usage
Setting Up CosmosDBSaver
To use the FirestoreSaver, you need to provide google default application authenmtication via environment
Example
python
from langgraph_checkpoint_firestore import FirestoreSaver
Initialize the saver
Collections - write and checkpoint - are created if it does not exists
#memory = FirestoreSaver(project_id=<project_id>, checkpoints_collection='langchain', writes_collection='langchain_writes')
with FirestoreSaver.from_conn_info(project_id=<project_id>, checkpoints_collection='langchain', writes_collection='langchain_writes') as memory:
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.
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_firestore-0.1.3.tar.gz.
File metadata
- Download URL: langgraph_checkpoint_firestore-0.1.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ef4c1dd44ef9b48ca1995678330aeebd1b9638623ed63914fe79e0fc9e4a9fc
|
|
| MD5 |
c2e9e5d862376ef5a5ee98f2b32a0ea4
|
|
| BLAKE2b-256 |
ab9deac74cc6e733420ffa3620fafe150041b0916337c378b3dbc7e7908ae751
|
File details
Details for the file langgraph_checkpoint_firestore-0.1.3-py3-none-any.whl.
File metadata
- Download URL: langgraph_checkpoint_firestore-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aefba2462190b83a4f1c38b9c15bb337c9dcc8f4b429b76cb6aba245917d4201
|
|
| MD5 |
abbabd7d912b3eef2041fc79d9204fc9
|
|
| BLAKE2b-256 |
67c541fb61ceedbda6213b7d2c89837ec79d9a581ba18722a72bcc36e3f3c865
|