I have a simple API function as below,
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def read_root():
return {"Hello": "World"}
I am starting the server using uvicorn command as,
uvicorn main:app
Since we are not calling any python file directly, it is not possible to call uvicorn command from Pycharm.
So, How can I run the fast-api server using Pycharm?


