DynamoDB dtore for LangGraph
Project description
LangGraph DynamoDB Store
A DynamoDB-based store implementation for LangGraph that allows long term memory implementation
bash pip install langgraph-store-dynamodb
Usage
Basic Initialization
python from langgraph_store_dynamodb import DynamoDBStore
Initialize the store with a table name
store = DynamoDBStore( table_name="your-dynamodb-table-name", max_read_request_units=10, # Optional, default is 10 max_write_request_units=10 # Optional, default is 10 )
Alternative Initialization Using Context Manager
python from langgraph_dynamodb_checkpoint import DynamoDBStore
with DynamoDBStore.from_conn_info(table_name="your-dynamodb-table-name") as store: # Use the store here pass
Parameters
DynamoDBStore Constructor
table_name(str): Name of the DynamoDB table to use for storing checkpointsmax_read_request_units(int, optional): Maximum read request units for the DynamoDB table. Defaults to 10max_write_request_units(int, optional): Maximum write request units for the DynamoDB table. Defaults to 10
Table Structure
The store automatically creates a DynamoDB table if it doesn't exist, with the following structure:
- Partition Key (PK): String type, used for namespace
- Sort Key (SK): String type, used for memory key
AWS Configuration
Ensure you have proper AWS credentials configured either through:
- Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
- AWS credentials file (~/.aws/credentials)
- IAM role when running on AWS services
The AWS credentials should have permissions to:
- Create DynamoDB tables (if table doesn't exist)
- Read and write to DynamoDB tables
Notes
- The store automatically creates the DynamoDB table if it doesn't exist
- Uses on-demand billing mode for DynamoDB
- Implements methods required by the LangGraph BaseStore interface
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_store_dynamodb-0.1.0.tar.gz.
File metadata
- Download URL: langgraph_store_dynamodb-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d3ac815793ee7c95b234d417efbcfcbbf2cf3640883b2bff8d9a036cfff2785
|
|
| MD5 |
73c0f9dba6da3116de262c09986a542b
|
|
| BLAKE2b-256 |
b672a248123d0707792d485e15d4ad2720b1e978a2886cf426d93e4af877a8ec
|
File details
Details for the file langgraph_store_dynamodb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langgraph_store_dynamodb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.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 |
b922d202fe8489bdde0143e5fd19772d4bda11aaf3ecdf5efc22797ea16c3d2d
|
|
| MD5 |
0df4232a676ebf88479db53b90ecbeb8
|
|
| BLAKE2b-256 |
168572670809fdbec909c5b6a8dddf3310858c4c4d4821bf7fa20dde1bb0936a
|