Software Development

Datamodel Code Generator

Use this skill when the user wants Python data models, Pydantic models, dataclasses, TypedDicts, msgspec structs, or type-safe Python classes generated from OpenAPI, AsyncAPI, JSON Schema, GraphQL, JSON/YAML/CSV sample data, MCP tool schemas, Protocol Buffers, XML Schema, Apache Avro, or existing Python model objects. Use it for requests such as "Pydantic models from this schema", "types for this API", "parse this JSON into classes", or "convert this spec into Python models". Prefer the datamodel-codegen CLI over hand-written model code whenever an input schema, API spec, sample data file, or Python model object exists.

Publisher / source
datamodel-code-generator/datamodel-code-generator (found on GitHub top repositories)
Upstream record
datamodel-code-generator/datamodel-code-generator
Version
Version 1
Published
Publication review
Approved for publication
Content fingerprint
997f065bd070e9ed2f259115be474d36066af01eae0f493fbb510102ef1bcd78