FastAPI
Setup
# Other imports ...
from pyot.conf.utils import import_confs
# FastAPI stuff ...
@app.on_event("startup")
async def startup_tasks():
import_confs("<pyotconf_import_path>")Last updated
# Other imports ...
from pyot.conf.utils import import_confs
# FastAPI stuff ...
@app.on_event("startup")
async def startup_tasks():
import_confs("<pyotconf_import_path>")Last updated