Contents

datamodel-code-generator 0.54.0

0

Datamodel Code Generator

Datamodel Code Generator

Stars: 3759, Watchers: 3759, Forks: 427, Open Issues: 35

The koxudaxi/datamodel-code-generator repo was created 6 years ago and the last code push was 3 days ago.
The project is very popular with an impressive 3759 github stars!

How to Install datamodel-code-generator

You can install datamodel-code-generator using pip

pip install datamodel-code-generator

or add it to a project with poetry

poetry add datamodel-code-generator

Package Details

Author
None
License
None
Homepage
None
PyPi:
https://pypi.org/project/datamodel-code-generator/
GitHub Repo:
https://github.com/koxudaxi/datamodel-code-generator

Classifiers

No  datamodel-code-generator  pypi packages just yet.

Errors

A list of common datamodel-code-generator errors.

Code Examples

Here are some datamodel-code-generator code examples and snippets.

GitHub Issues

The datamodel-code-generator package has 35 open issues on GitHub

  • Use title for enum naming
  • Self referencing classes leading to undefined-name (F821)
  • Generate OpenAI OpenAPI for python pydantic2.datamodel
  • RecursionError: maximum recursion depth exceeded
  • Extra underscore for an enum variant named replace
  • Wrong parent and field type with aliased import
  • Fix use_union_operator with Python builtin type field names
  • use_union_operator=True does not work with specific field names
  • Add ryaml as optional YAML parser dependency
  • Drop Pydantic v1 runtime support
  • Migrate to Ruff as the default formatter for improved performance
  • Being able to generate the object instead of Any for TypedDict
  • date-time format incorrectly allows integers in generated Pydantic model
  • Support for attrs
  • Add documentation about --aliases option - how to use the --aliases option?

See more issues on GitHub

Related Packages & Articles

fastapi 0.129.0

FastAPI framework, high performance, easy to learn, fast to code, ready for production

apispec 6.9.0

A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification).