Part1: #dailyreport #fastapi #webdevelopment #web #html #cookies
#webauthentification #authentification
I made small web site with authentification and simple
forms to allow boss and clients to control our server
with help of FastAPI and Jinja2 templates.
Page is just table <table> with rows that have <form>
with hidden field of id and buttons to save or delete,
add button with <form> at bottom.
pydantic used for forms verification.
All GET and POST functions wrapped with decorator that
catch exception and send notification to Telegram
messanger. It have async_wrapper and sync_wrapper.
if asyncio.iscoroutinefunction(func):
return async_wrapper