<filename>src/app.py
from fastapi import FastAPI
import uvicorn

from api import routes
from settings import envs


app = FastAPI(title=envs.app_title)

app.include_router(routes)

if __name__ == '__main__':
	uvicorn.run(
		app,
		host=envs.app_host,
		port=envs.app_port,
		debug=envs.debug
	)

<filename>src/app.py
from fastapi import FastAPI
import uvicorn

from api import routes
from settings import envs


app = FastAPI(title=envs.app_title)

app.include_router(routes)

if __name__ == '__main__':
	uvicorn.run(
		app,
		host=envs.app_host,
		port=envs.app_port,
		debug=envs.debug
	)
