UserDonghu's Note

  • 홈
  • 태그
  • 방명록

FastAPI 1

FastAPI 맛보기

FastAPI : 빠르고 단순하고 가벼운 파이썬 프레임워크 실습 라이브러리 설치 pip install fastapi pip install uvicorn pip install jinja2 main.py 생성 # main.py from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} # "/" 주소는 이 딕셔너리를 보여준다 @app.get("/items/{item_id}") def read_item(item_id, q): # item_id와 주소뒤에 ?q="예시" 에서 예시를 q로 받는다. return {"item_id": item_id, "q": q} # "/items/{item_id..

FastAPI 2023.10.09
이전
1
다음
더보기
프로필사진

UserDonghu's Note

락스타가 되고싶다

  • 전체보기 (102)
    • HTML&CSS (16)
      • HTML (6)
      • CSS (10)
    • JS (16)
    • Python (22)
    • Algorithm&CodingTest (4)
      • Algorithm (4)
      • CodingTest (0)
    • Django (20)
      • DRF (6)
    • FastAPI (1)
    • HTTP (0)
    • SQL (1)
    • ERD (0)
    • AWS (2)
    • Git (2)
    • 기타 (4)
      • VSC (3)
    • 나의 일상 (8)

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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
https://github.com/UserDongHu

티스토리툴바