Skip to main content

strands-dynamodb-storage

An Amazon DynamoDB implementation of the Strands Agents unified Storage interface — durable bytes-under-string-keys that backs session snapshots, context offloading, memory stores, and anything else that consumes strands.storage.Storage.

pip install strands-dynamodb-storage
from strands.storage import Storage
from strands_dynamodb_storage import DynamoDBStorage

storage = DynamoDBStorage("strands_storage")   # table auto-created if absent
assert isinstance(storage, Storage)

await storage.write("sessions/abc/state.json", b"...bytes...")
data = await storage.read("sessions/abc/state.json")   # -> bytes | None
keys = await storage.list("sessions/")                 # sorted, prefix-matched
await storage.delete("sessions/abc/state.json")        # no-op if absent

Interface

Method Behaviour
write(key, data) Upsert bytes under a /-separated key
read(key) Return the bytes, or None if absent
delete(key) Delete the key (no-op if missing)
list(prefix) Full keys matching the prefix, sorted ascending

Data model

A single table with string keys PK (HASH) / SK (RANGE), billed PAY_PER_REQUEST and auto-created. Every value shares one partition (partition_value, default "storage") with the storage key as the sort key, so list(prefix) is an ordered begins_with query. For very large or high-throughput datasets this concentrates load on one partition — use separate tables or partition_values per namespace to spread it. Blocking boto3 calls run in a thread so the async interface never blocks the event loop.

License

MIT

Metadata

Release files for strands-storage-dynamodb 0.2.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 strands-storage-dynamodb 0.2.0
File Size Uploaded Provenance
strands_storage_dynamodb-0.2.0.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for strands-storage-dynamodb 0.2.0
File Interpreter ABI Platform
strands_storage_dynamodb-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / strands_storage_dynamodb-0.2.0.tar.gz

Download URL strands_storage_dynamodb-0.2.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
58fa46273cb12693d17d8f2f81e30376baec83d9b109d28872f96dcd16993739
BLAKE2b-256 checksum
How to use checksums
50d21bec0a24bd37d0ee09d45eed33952c48c012b109d1f8b6d0f0208c159b73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / strands_storage_dynamodb-0.2.0-py3-none-any.whl

Download URL strands_storage_dynamodb-0.2.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9fda039dcf004164298472713201809d3ffb640bbddb4e39385909cebcb680f
BLAKE2b-256 checksum
How to use checksums
d074d8b9c0038829c53e14ce45432afb0111e937c40563e23376ba1406d766c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for strands-storage-dynamodb 0.2.0

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