dyntastic
A DynamoDB library on top of Pydantic and boto3.
Decision gist · record as of 2026-08-14
Yes, if you are building on DynamoDB and want to avoid raw boto3 boilerplate. The package is stable, has no known vulnerabilities, and integrates cleanly with Pydantic and FastAPI. Maintenance is aging but the repository is active; if you need ongoing updates or encounter issues, be prepared to contribute or maintain a fork. The three dependencies are lightweight and widely used.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires AWS credentials configured (via environment variables, IAM role, or boto3 config) and an existing DynamoDB table matching the model's __table_name__.
- Low friction: pure Python wheel with three runtime dependencies (boto3, pydantic, importlib-metadata).
- Maintenance is aging—last commit was 2025-04-08 and the project has not released since 2025-04-06, but the repository is active and not archived.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
last release 2025-04-06 (495 days) · last repo commit 2025-04-08 · 79 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 238,333 downloads/mo, #8,940 on PyPI
Alternatives
Verify before relying
from dyntastic import Dyntastic
from pydantic import Field
import uuid
class Product(Dyntastic):
__table_name__ = "products"
__hash_key__ = "product_id"
product_id: str = Field(default_factory=lambda: str(uuid.uuid4()))
name: str
price: float
product = Product(name="bread", price=3.99)
product.save()
fetched = Product.get(product.product_id)- Whether the package supports DynamoDB Streams or change data capture.
- Performance characteristics under high-throughput workloads or large result sets.
- Compatibility with DynamoDB local or moto for testing.
What it is and what it does
Dyntastic bridges Pydantic models and DynamoDB by letting you define table schemas as Python classes that inherit from Dyntastic (itself a Pydantic BaseModel). You get automatic serialization, validation, and type hints, plus a fluent API for DynamoDB operations: single-item reads and writes, queries with range-key conditions and filters, scans, batch reads and writes, and transactions. All operations are built on top of boto3, so they integrate with your existing AWS authentication and configuration.
The library handles common DynamoDB patterns—pagination, consistent reads, sparse indexes, and conditional updates—without requiring you to write raw boto3 calls or manage item marshalling. Because it extends Pydantic, models work seamlessly in FastAPI and other frameworks that already know how to serialize and validate Pydantic objects.
Use it for
- Define a DynamoDB table schema as a Pydantic model and perform type-safe CRUD operations without raw boto3 calls.
- Query DynamoDB with range-key conditions and filter expressions using a fluent attribute API (e.g., A.timestamp < datetime(...)).
- Batch read or write multiple items in a single operation, with automatic chunking to respect DynamoDB's 25-item and 16MB limits.
- Use transactional writes to ensure multiple items are updated atomically or fail together.
- Integrate DynamoDB models directly into FastAPI endpoints or other Pydantic-aware frameworks for request/response validation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building on DynamoDB and want to avoid raw boto3 boilerplate.
The package is stable, has no known vulnerabilities, and integrates cleanly with Pydantic and FastAPI. Maintenance is aging but the repository is active; if you need ongoing updates or encounter issues, be prepared to contribute or maintain a fork. The three dependencies are lightweight and widely used.
Install
dyntastic on PyPI
Before you install
Low friction: pure Python wheel with three runtime dependencies (boto3, pydantic, importlib-metadata). Maintenance is aging—last commit was 2025-04-08 and the project has not released since 2025-04-06, but the repository is active and not archived.
Requires AWS credentials configured (via environment variables, IAM role, or boto3 config) and an existing DynamoDB table matching the model's __table_name__.
License in practice
MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
Quickstart
from dyntastic import Dyntastic
from pydantic import Field
import uuid
class Product(Dyntastic):
__table_name__ = "products"
__hash_key__ = "product_id"
product_id: str = Field(default_factory=lambda: str(uuid.uuid4()))
name: str
price: float
product = Product(name="bread", price=3.99)
product.save()
fetched = Product.get(product.product_id)
Verify before relying
- Whether the package supports DynamoDB Streams or change data capture.
- Performance characteristics under high-throughput workloads or large result sets.
- Compatibility with DynamoDB local or moto for testing.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesboto3pydanticimportlib-metadata |
| Maintenance | Aging 495 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 238,333 / month, #8,940 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: PythonProgramming Language :: Python :: 3 |
Evidence: dyntastic-0.18.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “dynamodb orm python”
- dyntasticDyntastic is a DynamoDB object-relational mapper built on Pydantic…
- pynamodbPynamoDB provides a Pythonic ORM-like interface to Amazon DynamoDB,…
- pynamodb-attributesProvides typed attribute classes for PynamoDB that extend DynamoDB's…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also pydynamodb · pydantic_yaml · numpydantic · beanie · python-dynamodb-lock · types-boto3-dynamodb · mypy-boto3-dynamodb · drf-pydantic · pynamodb · aws-cdk.aws-dynamodb