Registry / web-framework / dash-pydantic-utils

dash-pydantic-utils

JSON →
library0.18.3pypypiunverified

Utility library for dash-pydantic-form, providing model handling, validation, and serialization helpers for building dynamic forms with Dash and Pydantic v2. Current version 0.18.3, requires Python >=3.10,<3.14. Active development with frequent releases.

pip install dash-pydantic-utils
INSTALL
IMPORT
SIG · DASH-PYDANTIC-UTIL
D
dash-pydantic-utils
web-frameworkpythonv0.18.3
Install
2.9s avg
Import
Disk
26MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.18.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 3.8s
py 3.11
✓ —
✓ 2.9s
py 3.12
✓ —
✓ 2.5s
py 3.13
✓ —
✓ 2.6s
py 3.9
✕ build_error
✕ build_error
26MB installed
● package 26MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ModelForm
from dash_pydantic_utils import ModelForm
from dash_pydantic_utils import ModelForm

Basic usage creating a form from a Pydantic model.

from dash_pydantic_utils import ModelForm import dash from dash import html app = dash.Dash(__name__) class MyModel(BaseModel): name: str = 'World' form = ModelForm(MyModel, id='my-form') app.layout = html.Div([form]) if __name__ == '__main__': app.run_server(debug=True)
Debug
Known issues
breakingdash-pydantic-utils was split from dash-pydantic-form (around v0.17). Imports from dash_pydantic_form may break. Re-import from dash_pydantic_utils.
fix
Change 'from dash_pydantic_form import ModelForm' to 'from dash_pydantic_utils import ModelForm'
affects: >=0.17
deprecatedThe old 'Form' component (from dash_pydantic_form) is deprecated. Use 'ModelForm' from dash_pydantic_utils instead.
fix
Replace 'Form' imports with 'ModelForm' from dash_pydantic_utils.
affects: >=0.17
gotchaModelForm requires a Pydantic v2 model. Using v1 models will cause validation errors.
fix
Ensure your model inherits from pydantic.BaseModel (v2), not v1 BaseModel.
affects: all
Upgrade
Version history
0.18.3latest on PyPI · released Jan 31, 2026
Audit
Dependencies
dashrequiredCore dependency for Dash components and callbacks
pydanticrequiredPydantic model definitions and validation (v2)
Agent activity
11 hits · last 30 days
node
10
Resources
dash-pydantic-utils — pip install dash-pydantic-utils · libregistry