Skip to main content

aiodynamodb

Async DynamoDB client + lightweight model layer built on aioboto3 and Pydantic v2.

PyPI Python License: MIT

Features

  • Fully async API built on aioboto3
  • Pydantic v2 models for validation and typed data access
  • Table mapping via @table(...) decorator with GSI/LSI support
  • Persistent connection pooling via context manager
  • Query and scan with typed, paginated results
  • Conditional writes/deletes, transactions, and batch operations

AI Disclaimer

Some code and content in this repository was created with the assistance of AI tools. All code is reviewed thoroughly.

Installation

pip install aiodynamodb

Quickstart

import asyncio
from aiodynamodb import DynamoDB, DynamoModel, HashKey, table


@table("users")
class User(DynamoModel):
    user_id: HashKey[str]
    name: str
    email: str | None = None


async def main() -> None:
    async with DynamoDB() as db:
        await db.create_table(User)
        await db.put(User(user_id="u1", name="Alice", email="alice@example.com"))
        user = await db.get(User, hash_key="u1")
        print(user)


asyncio.run(main())

Documentation

Full documentation is available at aiodynamodb.com, including:

Contributing

Clone the repo and install dev dependencies:

make install-dev

Make your changes, then:

make lint         # lint and format
make typecheck    # type check
make test         # run tests

Release files for aiodynamodb 0.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiodynamodb 0.0.15
File Size Uploaded
aiodynamodb-0.0.15.tar.gz 214.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiodynamodb 0.0.15
File Interpreter ABI Platform
aiodynamodb-0.0.15-py3-none-any.whl Python 3 none any Details

Total release size: 241.3 kB

Release files / aiodynamodb-0.0.15.tar.gz

Download URL aiodynamodb-0.0.15.tar.gz
Size 214.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bd9ffb4d3a8fb934cc6fdd7176b96c71cbfd57bbee1d802b4f3391dcd73d2949
BLAKE2b-256 checksum
How to use checksums
d6f46559866b6b6076a4102b6e5184dc10e8c3df015c88cde84186ae67f1ccac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 8, 2026.

Transparency log

Release files / aiodynamodb-0.0.15-py3-none-any.whl

Download URL aiodynamodb-0.0.15-py3-none-any.whl
Size 26.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28c94aaffd8caed887a397edba608e45bfe03fa982b629142261bb5e126ccd40
BLAKE2b-256 checksum
How to use checksums
beb7a31b729b3b6bb777fda458f78cbbf8c832c1dcb3ef89718e9040fe32fcb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.16

2 release files

This release

0.0.15 This release

2 release files

0.0.13

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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