DEV Community

kunal dodiya
kunal dodiya

Posted on

PyInstaller + FastAPI

I have created a simple FastAPI Project.

`from fastapi import FastAPI

app = FastAPI()

@app.get("/")
async def home():
return {"success": True}`

After that I am compile it using PyInstaller inside binary folder called app.

How can I run this binary using uvicorn ASGI server ?

Previously i was using uvicorn to run server inside binary file, it was running fine but the issue was it was not running in Reload Mode, I need to set reload = False to run.

Anyway I just want to create a fastapi binary that can be run with reload = True.

Top comments (0)