uvicorn

    [FastAPI] Fast API 시작하기

    설치 pip install fastapi pip install "uvicorn[standard]" 아래에 있는 uvicorn은 Fast API를 웹 서버에 올려주는 역할을 한다. 만약 CLI앱을 구현하고자 한다면 Typer를 설치하자. https://typer.tiangolo.com/ Typer Typer, build great CLIs. Easy to code. Based on Python type hints. typer.tiangolo.com 구현 main.py 파이썬 파일을 만들어보자. from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} 이러면 엔드포인트에대한 구현은 끝났..