{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools"}],"enrichment":{"capability":"Generates Python data models (Pydantic, dataclasses, TypedDict, msgspec) from schema definitions like OpenAPI, JSON Schema, Protocol Buffers, GraphQL, and raw data formats.","skillfed_tags":["code-generation","schema-driven","cli-tool"],"use_cases":["Generate Pydantic models from OpenAPI specs to keep API clients and servers synchronized with schema changes.","Convert JSON Schema definitions into dataclasses for configuration file parsing with type safety.","Transform Protocol Buffer definitions into Python models for gRPC service development.","Generate TypedDict or msgspec models from raw JSON/YAML/CSV data for rapid prototyping.","Retarget existing Pydantic models to dataclass output for environments that don't use Pydantic.","Automate model generation in CI/CD pipelines to enforce schema-driven code generation."],"what_it_does":"Datamodel-code-generator is a CLI tool and library that converts schema definitions into type-safe Python model code. It reads from OpenAPI 3, AsyncAPI, JSON Schema, Apache Avro, XML Schema, Protocol Buffers, GraphQL, MCP tool schemas, and raw data (JSON/YAML/CSV), then outputs Pydantic v2, Pydantic v2 dataclass, dataclass, TypedDict, or msgspec models. The generated code handles complex schema features like $ref, allOf, oneOf, anyOf, enums, and nested types.\n\nIt's designed for developers who need to keep Python models in sync with external schema definitions or who want to avoid hand-writing boilerplate. The tool supports both standalone CLI use and integration as a development dependency in projects. It can also retarget existing Python types (Pydantic, dataclass, TypedDict) to different output formats via the --input-model flag. Output is formatted by default with black and isort, though faster builtin or ruff formatters are available.","worth_installing":"Yes. Active maintenance, no known vulnerabilities, low install friction, and permissive MIT license make it a safe choice. The tool solves a real problem\u2014keeping Python models in sync with external schemas\u2014and supports a wide range of input formats. Install as a dev dependency or standalone CLI depending on your workflow."},"id":"datamodel-code-generator","links":{"html":"https://skillfed.io/packages/datamodel-code-generator","md":"https://skillfed.io/packages/datamodel-code-generator.md","pypi":"https://pypi.org/project/datamodel-code-generator/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-12","license_spdx":"MIT","license_treatment":"permissive","name":"datamodel-code-generator","python_support":"supports_current","summary":"Datamodel Code Generator"},"popularity":{"monthly_downloads":17555589,"position":1113,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.72.4"}
