Contents

pydantic-gen generates pydantic schemas from YAML files

0

Code generator for pydantic schemas

pydantic-gen is a code generation python package that takes a YML file containing a OpenAPI Schema and generates python pydantic models. pydantic-gen can get used in your codebase to dynamically regenerate your pydantic models or it can be used one time to generator python code. The author of the pydantic-gen module is Mikhail Beliansky. Code generator for pydantic schemas

Stars: 12, Watchers: 12, Forks: 3, Open Issues: 0

The licht1stein/pydantic-gen repo was created 2 years ago and was last updated 3 months ago. The project is not very popular with only 12 github stars!

How to Install pydantic-gen

You can install pydantic-gen using pip

pip install pydantic-gen

or add it to a project with poetry

poetry add pydantic-gen

Package Details

Author
MB
License
MIT
Homepage
https://github.com/licht1stein/pydantic-gen
PyPi
https://pypi.org/project/pydantic-gen/
GitHub Repo
https://github.com/licht1stein/pydantic-gen

Classifiers

No  pydantic-gen  pypi packages just yet.

Errors

A list of common pydantic-gen errors.

Code Examples

Here are some pydantic-gen code examples and snippets.

Related Packages & Articles

pydantic 1.9.2

Data validation and settings management using python type hints

jsonargparse 4.13.1

Parsing of command line options, yaml/jsonnet config files and/or environment variables based on argparse.

fastapi 0.79.0

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

typing - Support for type hints

This module provides runtime support for type hints as specified by PEP 484, PEP 526, PEP 544, PEP 586, PEP 589, PEP 591, PEP 612 and PEP 613. The most fundamental support consists of the types Any, Union, Tuple, Callable, TypeVar, and Generic. For full specification please see PEP 484. For a simplified introduction to type hints see PEP 483. import typing # preferred from typing import Dict, List, Union, Any myvar: Dict = {} # non-preferred import typing myvar: typing.

orjson 3.7.11

Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy