fastapi-demo/environment.yml

34 lines
701 B
YAML
Raw Permalink Normal View History

name: fastapi-demo
channels:
- defaults
- conda-forge
dependencies:
# Python 版本
- python=3.11
# 基础工具
- pip
# pip 依赖(从 requirements.txt
- pip:
# FastAPI 核心
- fastapi==0.109.0
- uvicorn[standard]==0.27.0
- pydantic==2.8.0
- pydantic-settings==2.1.0
- python-multipart==0.0.6
- email-validator==2.1.0
# 数据库相关
- sqlalchemy>=2.0.30
- alembic>=1.13.1
- pymysql>=1.1.0
- cryptography>=41.0.0
# 开发工具(可选)
- httpx # 用于测试
- pytest # 单元测试
- pytest-asyncio # 异步测试
- black # 代码格式化
- flake8 # 代码检查
- mypy # 类型检查