GitHub
github.com › koxudaxi › datamodel-code-generator
GitHub - koxudaxi/datamodel-code-generator: Python data model generator (Pydantic, dataclasses, TypedDict, msgspec) from OpenAPI, JSON Schema, GraphQL, and raw data (JSON/YAML/CSV). · GitHub
Python data model generator (Pydantic, dataclasses, TypedDict, msgspec) from OpenAPI, JSON Schema, GraphQL, and raw data (JSON/YAML/CSV). - koxudaxi/datamodel-code-generator
Starred by 3.8K users
Forked by 430 users
Languages Python
PyPI
pypi.org › project › datamodel-code-generator
datamodel-code-generator · PyPI
apache/airflow - Generate OpenAPI datamodels for airflow-ctl and task-sdk via pyproject codegen config ... tensorzero/tensorzero - Generate Python dataclasses from JSON Schema in the schema generation pipeline
» pip install datamodel-code-generator
Koxudaxi
koxudaxi.github.io › datamodel-code-generator
Redirecting to datamodel-code-generator.koxudaxi.dev
Redirecting to datamodel-code-generator.koxudaxi.dev...
Koxudaxi
koxudaxi.github.io › datamodel-code-generator › custom_template
Custom template - datamodel-code-generator
$ datamodel-codegen --input {your_input_file} --output {your_output_file} --custom-template-dir {your_custom_template_directory} Replace {your_input_file}, {your_output_file}, and {your_custom_template_directory} with the appropriate paths. Let's say you want to generate a custom Python data model from a JSON Schema file called person.json.
GitHub
github.com › koxudaxi › datamodel-code-generator › releases
Releases · koxudaxi/datamodel-code-generator
Python data model generator (Pydantic, dataclasses, TypedDict, msgspec) from OpenAPI, JSON Schema, GraphQL, and raw data (JSON/YAML/CSV). - Releases · koxudaxi/datamodel-code-generator
Author koxudaxi
Docker Hub
hub.docker.com › r › koxudaxi › datamodel-code-generator
koxudaxi/datamodel-code-generator - Docker Image
usage: datamodel-codegen [options] Generate Python data models from schema definitions or structured data Options: --http-headers HTTP_HEADER [HTTP_HEADER ...] Set headers in HTTP requests to the remote host.
Koxudaxi
datamodel-code-generator.koxudaxi.dev
datamodel-code-generator - datamodel-code-generator
This code generator creates pydantic model from an openapi file and others.
Debian Manpages
manpages.debian.org › testing › datamodel-codegen › datamodel-codegen.1.en.html
datamodel-codegen(1) — datamodel-codegen — Debian testing — Debian Manpages
December 19, 2025 - datamodel-codegen [options] Generate Python data models from schema definitions or structured data · For detailed usage, see: https://koxudaxi.github.io/datamodel-code-generator · --additional-imports ADDITIONAL_IMPORTS · Custom imports for output (delimited list input).
GitHub
github.com › tomercagan › datamodel-code-generator
GitHub - tomercagan/datamodel-code-generator: Pydantic model generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
This code generator creates pydantic model from an openapi file and others. See documentation for more details. ... If you want to resolve $ref for remote files then you should specify http extra option.
Author tomercagan
GitHub
github.com › koxudaxi › datamodel-code-generator › blob › main › docs › using_as_module.md
datamodel-code-generator/docs/using_as_module.md at main · koxudaxi/datamodel-code-generator
Python data model generator (Pydantic, dataclasses, TypedDict, msgspec) from OpenAPI, JSON Schema, GraphQL, and raw data (JSON/YAML/CSV). - koxudaxi/datamodel-code-generator
Author koxudaxi
Stack Overflow
stackoverflow.com › questions › 77064412 › datamodel-code-generator-cant-handle-json-compound-schema-document
jsonschema - datamodel-code-generator can't handle JSON Compound Schema Document - Stack Overflow
I ran on the CLI datamodel-codegen --input schema.json --input-file-type jsonschema --output model.py. I expected the generation of a pydantic model.
PyPI
pypi.org › project › improved-datamodel-codegen
improved-datamodel-codegen · PyPI
This code generator creates pydantic model from an openapi file and others. See documentation for more details. ... If you want to resolve $ref for remote files then you should specify http extra option.
» pip install improved-datamodel-codegen
GitHub
github.com › guardicore › datamodel-code-generator
GitHub - guardicore/datamodel-code-generator · GitHub
usage: datamodel-codegen [options] Generate Python data models from schema definitions or structured data Options: --additional-imports ADDITIONAL_IMPORTS Custom imports for output (delimited list input).
Author guardicore
GitHub
github.com › koxudaxi › datamodel-code-generator › blob › main › pyproject.toml
datamodel-code-generator/pyproject.toml at main · koxudaxi/datamodel-code-generator
Python data model generator (Pydantic, dataclasses, TypedDict, msgspec) from OpenAPI, JSON Schema, GraphQL, and raw data (JSON/YAML/CSV). - koxudaxi/datamodel-code-generator
Author koxudaxi
GitHub
github.com › koxudaxi › datamodel-code-generator › issues › 331
Dynamic creation of BaseModel classes at runtime · Issue #331 · koxudaxi/datamodel-code-generator
February 11, 2021 - But it is tightly coupled with the rendering of Python files that contain the BaseModel child classes source code. I would like to be able to intercept this, and 'render' that structure differently. The most important case would be to generate a Python class dynamically (which should be relatively easy, using type(...). Another use-case (although less important) would be to 'translate' the schema into a different format (I would have a use for Avro, for example). Basically, datamodel-code-generator could become sort of an any-to-any schema translator.
Author makkus