Datstore Saver for LangGraph Checkpoints
Project description
langgraph-checkpoint-datastore
Implementation of a LangGraph CheckpointSaver that uses a GCP's Datastore
Inspiration
Based on: https://github.com/justinram11/langgraph-checkpoint-dynamodb
Required Datastore Tables
To be able to use this checkpointer, two Datastore kinds are needed, one to store checkpoints and the other to store writes.
Using the Checkpoint Saver
Default
To use the datastore checkpoint saver, you only need to specify the names of the checkpoints and writes kinds. In this scenario the datastore client will be instantiated with the default configuration, great for running on AWS Lambda.
from langgraph_checkpoint_datastore import DatastoreSaver
...
checkpoints_table_name = 'YourCheckpointsTableName'
writes_table_name = 'YourWritesTableName'
memory = DatastoreSaver(
checkpoints_table_name=checkpoints_table_name,
writes_table_name=writes_table_name,
)
graph = workflow.compile(checkpointer=memory)
Providing Client Configuration
If you need to provide custom configuration to the datastore client, you can pass in an object with the configuration options. Below is an example of how you can provide custom configuration.
memory = DatastoreSaver(
checkpoints_table_name=checkpoints_table_name,
writes_table_name=writes_table_name,
client_config={
'region': 'us-west-2',
}
)
Important note, you will need to add an index to your kinds:
- kind: IntegrationCheckpoint
properties:
- name: thread_id
- name: checkpoint_id
direction: desc```
Project details
Release history Release notifications | RSS feed
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_datastore-0.1.0.tar.gz.
File metadata
- Download URL: langgraph_checkpoint_datastore-0.1.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74830ea99716f165e954208f8c2d31cf7d39c836e9adbdd64f4e21864ebd0ebe
|
|
| MD5 |
31196fd1ee5ab4cdf03961219c489924
|
|
| BLAKE2b-256 |
a909df3faaccf64da9a11f8e69f7a7182da9b885d791f180440cdf0f8d6021b1
|
Provenance
The following attestation bundles were made for langgraph_checkpoint_datastore-0.1.0.tar.gz:
Publisher:
publish.yml on rynmccrmck/langgraph-checkpoint-datastore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langgraph_checkpoint_datastore-0.1.0.tar.gz -
Subject digest:
74830ea99716f165e954208f8c2d31cf7d39c836e9adbdd64f4e21864ebd0ebe - Sigstore transparency entry: 168828086
- Sigstore integration time:
-
Permalink:
rynmccrmck/langgraph-checkpoint-datastore@4cba40a5a64a9905cf2ec93ff872cb7d15d3b4b9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/rynmccrmck
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4cba40a5a64a9905cf2ec93ff872cb7d15d3b4b9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file langgraph_checkpoint_datastore-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langgraph_checkpoint_datastore-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69efaf5f7c6d98c6a2d11473c65e7cfb515c28691d582e82172f8ac7e93b782b
|
|
| MD5 |
d77fdfbfb814ccd7d7d472e1120e7bc3
|
|
| BLAKE2b-256 |
fb7e8f22d31c04a13df0e97d4465e212073adac1e3ae7e2ea9e5eeb94e3ffecd
|
Provenance
The following attestation bundles were made for langgraph_checkpoint_datastore-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on rynmccrmck/langgraph-checkpoint-datastore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langgraph_checkpoint_datastore-0.1.0-py3-none-any.whl -
Subject digest:
69efaf5f7c6d98c6a2d11473c65e7cfb515c28691d582e82172f8ac7e93b782b - Sigstore transparency entry: 168828087
- Sigstore integration time:
-
Permalink:
rynmccrmck/langgraph-checkpoint-datastore@4cba40a5a64a9905cf2ec93ff872cb7d15d3b4b9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/rynmccrmck
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4cba40a5a64a9905cf2ec93ff872cb7d15d3b4b9 -
Trigger Event:
release
-
Statement type: