FastAPI 환경설정

예찬예찬·2024년 6월 4일

FastAPI

목록 보기
2/10
post-thumbnail

1. Python 3.8이상 버전 설치

2. 가상 환경 설정하기

# 파이썬 가상환경 만들기
python3 -m venv 이름

# Linux or Mac 활성화
source 이름\bin\activate

# Window 활성화
이름\Scripts\activate

#비활성화
deactivate

3. FastAPI 설치하기

# FastAPI
pip install fastapi[all]
pip install uvicorn[standard]

#OAuth2 with Password
pip install python-jose[cryptography]
pip install passlib[bcrypt]

#JWT 토큰을 위한 PyJWT
pip install pyjwt

#SQLAlchemy (SQL 데이터베이스를 위한 ORM)
pip install sqlalchemy

#비동기 데이터베이스 지원
pip install databases

#데이터 베이스 마이그레이션
pip install alembic
profile
나는 오예찬

0개의 댓글