Skip to content
r.

datamodel-code-generator

datamodel-code-generator/datamodel-code-generator · Public GitHub repository

Generate Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON/YAML/CSV.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

datamodel-code-generator live demo screenshot
Captured from the live demo · 2026-11-06

About this project

Author-written excerpt from the project README.

🚀 Generate Python data models from schema definitions in seconds.

📚 Documentation · 🧪 Playground · 💼 Lead maintainer available for work

Playground privacy: Generation runs locally in your browser with Pyodide. Your schema and options are not sent to a backend. Shared repro URLs encode them in the URL fragment (#state=...), which browsers do not send to the server; the full URL can still be stored in your browser history or wherever you share it.

Requirements and intended audience

🚀 Generate Python data models from schema definitions in seconds.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-22. Source: https://github.com/datamodel-code-generator/datamodel-code-generator/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-11-04. Saved release: 0.83.0 · 2026-09-24. These dates do not guarantee ongoing maintenance.

Technologies
Python
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-06. This does not test every feature.

Browse related categories