dydantic
Dynamically generate pydantic models from JSON schema.
Decision gist · record as of 2026-08-14
Yes, if you need to generate Pydantic models from JSON schemas at runtime. The low install friction and permissive license make adoption straightforward. However, the dormant maintenance status (562 days since last release) means you should verify compatibility with your pydantic version and be prepared to maintain a fork if critical bugs emerge.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single runtime dependency on pydantic.
- Package is dormant (562 days since last release), which may indicate limited ongoing maintenance or bug fixes.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it safe to adopt in most projects.
last release 2025-01-29 (562 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,020,793 downloads/mo, #4,492 on PyPI
Alternatives
Verify before relying
from dydantic import create_model_from_schema
json_schema = {
"title": "Person",
"type": "object",
"properties": {"name": {"type": "string"}, "age": {"type": "integer"}},
"required": ["name"]
}
Person = create_model_from_schema(json_schema)
person = Person(name="John", age=30)- Whether the package handles all JSON schema draft versions or only a subset
- Performance characteristics when generating models from large or deeply nested schemas
- Compatibility with recent pydantic versions beyond what classifiers declare
What it is and what it does
dydantic is a Python library that takes JSON schema definitions and converts them into Pydantic model classes at runtime. Instead of manually writing Pydantic model classes, you pass a JSON schema to the library and it generates a working model with validation built in. The generated models support nested objects, referenced definitions, and customizable configurations.
The package sits on top of pydantic itself, which means you get all of pydantic's validation and serialization capabilities automatically. It's useful when your data structures are defined externally (in JSON schema format) or when you need to create models dynamically based on user input or configuration files rather than hardcoding them in your source code.
Use it for
- Generate Pydantic models from OpenAPI or JSON Schema specifications without manual class definitions
- Build data validation layers for APIs that accept dynamic schema definitions from clients
- Create model factories in configuration-driven applications where schemas come from external sources
- Reduce boilerplate when working with many similar data structures defined in schema format
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to generate Pydantic models from JSON schemas at runtime.
The low install friction and permissive license make adoption straightforward. However, the dormant maintenance status (562 days since last release) means you should verify compatibility with your pydantic version and be prepared to maintain a fork if critical bugs emerge.
Install
dydantic on PyPI
Before you install
Low install friction with a single runtime dependency on pydantic. Package is dormant (562 days since last release), which may indicate limited ongoing maintenance or bug fixes.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe to adopt in most projects.
Quickstart
from dydantic import create_model_from_schema
json_schema = {
"title": "Person",
"type": "object",
"properties": {"name": {"type": "string"}, "age": {"type": "integer"}},
"required": ["name"]
}
Person = create_model_from_schema(json_schema)
person = Person(name="John", age=30)
Verify before relying
- Whether the package handles all JSON schema draft versions or only a subset
- Performance characteristics when generating models from large or deeply nested schemas
- Compatibility with recent pydantic versions beyond what classifiers declare
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepydantic |
| Maintenance | Dormant 562 days since the last release |
| First released | |
| Downloads | 1,020,793 / month, #4,492 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9 |
Evidence: dydantic-0.0.8-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 › “dynamic model creation from schema”
- dydanticDynamically generates Pydantic models from JSON schemas at runtime,…
- jsonschema-pydantic-converterConverts JSON Schema definitions to Pydantic v2 models at runtime,…
- jamboConverts JSON Schema definitions into Pydantic models dynamically,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also jsonschema-pydantic-converter · pydantic_core · jambo · jsonschema-pydantic · genson · sparkdantic · aiohomematic-config · safety-schemas · pydantic-spark · pydantic-avro