Skip to main content

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```

Release files for langgraph-checkpoint-datastore 0.1.0

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-datastore 0.1.0
File Size Uploaded
langgraph_checkpoint_datastore-0.1.0.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langgraph-checkpoint-datastore 0.1.0
File Interpreter ABI Platform
langgraph_checkpoint_datastore-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / langgraph_checkpoint_datastore-0.1.0.tar.gz

Download URL langgraph_checkpoint_datastore-0.1.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
74830ea99716f165e954208f8c2d31cf7d39c836e9adbdd64f4e21864ebd0ebe
BLAKE2b-256 checksum
How to use checksums
a909df3faaccf64da9a11f8e69f7a7182da9b885d791f180440cdf0f8d6021b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 5, 2025.

Transparency log

Release files / langgraph_checkpoint_datastore-0.1.0-py3-none-any.whl

Download URL langgraph_checkpoint_datastore-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69efaf5f7c6d98c6a2d11473c65e7cfb515c28691d582e82172f8ac7e93b782b
BLAKE2b-256 checksum
How to use checksums
fb7e8f22d31c04a13df0e97d4465e212073adac1e3ae7e2ea9e5eeb94e3ffecd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 5, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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