FastAPI and UVICORN server tip or trick
I discovered, a trick that will make my life easier and I thought I'd share. Put this at the end of your main app file to automate the start of the server when you click the run button in your IDE.
from fastapi import FastAPI ... app = FastAPI() ... if __name__ == "__main__": import uvicorn uvicorn.run(app)
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Nice! thanks for sharing