vincentporte / fastapi_sqlachemy2_async

FastAPI x sqlAlchemy 2 x postgresql, async mode
MIT License
2 stars 0 forks source link

automate form generation #7

Open vincentporte opened 1 year ago

vincentporte commented 1 year ago

ref: templates.organizations.form.html

question: how to automate form generation based on pydantic models/schemas, to make it reusable ?

vjousse commented 1 year ago

Not sure why you would like to automate the form generation? There is this library that I've never used but it could do the trick: https://github.com/boardpack/reforms Otherwise you could use WTForms https://wtforms.readthedocs.io/en/3.0.x/ in combination with https://github.com/wtforms/wtforms-sqlalchemy for example.