# datamodel-code-generator

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

Canonical page: https://www.reposhelf.co.uk/projects/github/datamodel-code-generator/datamodel-code-generator.html

- Project ID: datamodel-code-generator/datamodel-code-generator
- Source: GitHub
- Original project: https://github.com/datamodel-code-generator/datamodel-code-generator
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: Python
- Licence: MIT
- Repository availability checked: 2026-11-04T06:30:10.968Z
- Demo page loaded: 2026-11-06T00:36:08.184Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 🚀 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.



## Author-documented requirements and 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.

Source: https://github.com/datamodel-code-generator/datamodel-code-generator/blob/main/README.md

Extraction checked: 2026-10-22T11:49:30.544Z

Last recorded source update: 2026-11-04T05:34:52.000Z

Saved release: 0.83.0 — 2026-09-24T08:55:36.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=datamodel-code-generator%2Fdatamodel-code-generator). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
