[Python] FastAPI 설치 및 간단한 웹 API 구현하기
FastAPIFastAPI란 빠르고 간단한 python 기반의 웹 프레임워크이다.비동기 방식을 사용하기 때문에 Uvicorn이나 Hypercorn의 ASGI Server가 필요하다.예제에서는 Uvicorn을 사용하려 한다. 1) FastAPI 및 Uvicorn 설치pip install fastapipip install "uvicorn[standard]" 2) main.py 예제 파일 생성하기from typing import Unionfrom fastapi import FastAPIapp = FastAPI()@app.get("/")def read_root(): return {"Hello": "World"}@app.get("/items/{item_id}")def read_item(item_id: int..
Study/FastAPI
2024. 7. 3.
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
TAG
- boj
- 파이썬
- Algorithm
- COLAB
- 수학
- dfs
- Transformer
- padding mask
- 누적합
- greedy
- 그리디
- 코드트리
- 구현
- 이분탐색
- Prefix sum
- BFS
- 트랜스포머
- 코딩테스트실력진단
- lis
- 분리집합
- MySQL
- FastAPI
- 알고리즘
- DP
- python
- disjoint set
- 코딩테스트
- Look-ahead Mask
- pytorch
- 백준
링크