Open gnthibault opened 1 year ago
Nice blog article about it: https://towardsdatascience.com/how-to-make-the-most-of-pydantic-aa374d5c12d
Use of pydantic ecosystem: https://docs.pydantic.dev/latest/usage/schema/ https://docs.pydantic.dev/latest/datamodel_code_generator/
Draw data model with: https://erdantic.drivendata.org/v0.2/examples/pydantic/
In particular, we expect to use from functools import singledispatch with @singledispatch and @process.register
from functools import singledispatch
@singledispatch
@process.register
Decorators, to save proper data object to the DB through SQLAlachemy, see a nice demo here: https://fastapi.tiangolo.com/tutorial/sql-databases/
Nice blog article about it: https://towardsdatascience.com/how-to-make-the-most-of-pydantic-aa374d5c12d
Use of pydantic ecosystem: https://docs.pydantic.dev/latest/usage/schema/ https://docs.pydantic.dev/latest/datamodel_code_generator/
Draw data model with: https://erdantic.drivendata.org/v0.2/examples/pydantic/
In particular, we expect to use
from functools import singledispatch
with@singledispatch
and@process.register
Decorators, to save proper data object to the DB through SQLAlachemy, see a nice demo here: https://fastapi.tiangolo.com/tutorial/sql-databases/