Async DynamoDB ORM with Pydantic
Project description
aiodynamodb
Async DynamoDB client + lightweight model layer built on aioboto3 and Pydantic v2.
AI Disclaimer
Some code and content in this repository was created with the assistance of AI tools. All code is reviewed thoroughly.
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
Installation
pip install aiodynamodb
Quickstart
import asyncio
from aiodynamodb import DynamoDB, DynamoModel, table
@table("users", hash_key="user_id")
class User(DynamoModel):
user_id: 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:
- Getting Started
- Guides — CRUD, queries, scans, transactions, batch ops, custom types, and more
- API Reference
Running Tests
make test
Project details
Release history Release notifications | RSS feed
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 aiodynamodb-0.0.10.tar.gz.
File metadata
- Download URL: aiodynamodb-0.0.10.tar.gz
- Upload date:
- Size: 197.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd211f96d29176194e791eb3b37fae797bdcd0adaa7126d0d9fe8ff0a8319236
|
|
| MD5 |
abb80ea3f228d60a2e05b7f0f7ad51e5
|
|
| BLAKE2b-256 |
92329c792d5588a89972cc6f3f9127da51d8732557c5590065e1999cc230c187
|
Provenance
The following attestation bundles were made for aiodynamodb-0.0.10.tar.gz:
Publisher:
release.yml on nikumar1206/aiodynamodb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiodynamodb-0.0.10.tar.gz -
Subject digest:
bd211f96d29176194e791eb3b37fae797bdcd0adaa7126d0d9fe8ff0a8319236 - Sigstore transparency entry: 1238525060
- Sigstore integration time:
-
Permalink:
nikumar1206/aiodynamodb@56a6702c78009ecb57e514dfe1dc9227722a8d68 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nikumar1206
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@56a6702c78009ecb57e514dfe1dc9227722a8d68 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file aiodynamodb-0.0.10-py3-none-any.whl.
File metadata
- Download URL: aiodynamodb-0.0.10-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd2e1325d8a0fa898ef1a5b3dff2ffacfc22ef1800e2e51ae85e17abbe64227a
|
|
| MD5 |
9c8db9a6862e54ef1a3e95e77de7e3b2
|
|
| BLAKE2b-256 |
847afd7e47f07060bf0ae420d2995d0400474bee8bb3fe4e977ed956952993ad
|
Provenance
The following attestation bundles were made for aiodynamodb-0.0.10-py3-none-any.whl:
Publisher:
release.yml on nikumar1206/aiodynamodb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiodynamodb-0.0.10-py3-none-any.whl -
Subject digest:
cd2e1325d8a0fa898ef1a5b3dff2ffacfc22ef1800e2e51ae85e17abbe64227a - Sigstore transparency entry: 1238525119
- Sigstore integration time:
-
Permalink:
nikumar1206/aiodynamodb@56a6702c78009ecb57e514dfe1dc9227722a8d68 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nikumar1206
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@56a6702c78009ecb57e514dfe1dc9227722a8d68 -
Trigger Event:
pull_request
-
Statement type: