FAST API 시작하기

BackEnd_Ash.log·2022년 4월 20일
0

FASTAPI

목록 보기
1/3

FAST API??

python 웹 프레임 워크

좋아 ?? 왜써

시작하기 좋음 , 간편함
https://fastapi.tiangolo.com/ko/

공홈에 들어가본다.
간단히
pip install fastapi
pip install uvicorn

하면 설치가 됨

main.py

from fastapi import FastAPI

app = FastAPI()

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

실행을 하게 되면

localhost:8000/docs

짠~~~ 이와같은 화면을 볼 수있다.

profile
꾸준함이란 ... ?

0개의 댓글