Roiei 2022. 4. 22. 19:29
반응형

Python 기반의 web framework

 

 

설치

pip install fastapi

pip install "uvicorn[standard]"

 

hello

from fastapi import FastAPI


app = FastAPI()


@app.get("/")
async def root():
    return {"message": "hello"}

 

실행

uvicorn test:app --reload

 

 

 

반응형