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.1

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.1
File Size Uploaded Provenance
strands_storage_dynamodb-0.2.1.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 10.1 kB

Release files / strands_storage_dynamodb-0.2.1.tar.gz

Download URL strands_storage_dynamodb-0.2.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cac29ab7fb6b9a9df4d7916c1c57527974f906a9a861a4eda50e9251740dd6d1
BLAKE2b-256 checksum
How to use checksums
5bcf1498a82f47199f641d2e9486cc36120d6fe0c42cdf6c83aae61c75dbbbef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL strands_storage_dynamodb-0.2.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2db42e2827f67babfac74e265fda576fc359cb1faf7eaea404e0a4ca98acce47
BLAKE2b-256 checksum
How to use checksums
4ada68cf6486e53081068fd894f7ab0737898d01096130a75f41976b82978db9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for strands-storage-dynamodb 0.2.1

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