Files
wecom_it_smart_desk/docs/11-历史归档/deploy-nas-archived-20260704/backend/requirements.txt
T

61 lines
2.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# =============================================================================
# 企微智能IT支持服务台 — Python 依赖声明
# =============================================================================
# 说明:列出后端所有 Python 包依赖及版本
# 用法:pip install -r requirements.txt
# =============================================================================
# --------------------------------------------------------------------------
# Web 框架
# --------------------------------------------------------------------------
# FastAPI: 高性能异步 Web 框架,自动生成 Swagger API 文档
fastapi==0.111.0
# Uvicorn: ASGI 服务器,支持热重载和 WebSocket
uvicorn[standard]==0.30.1
# python-multipart: FastAPI 文件上传支持(处理 multipart/form-data 请求)
python-multipart==0.0.9
# --------------------------------------------------------------------------
# 数据库
# --------------------------------------------------------------------------
# SQLAlchemy: Python SQL 工具包和 ORM2.0 版本支持 async session
sqlalchemy==2.0.31
# psycopg2-binary: PostgreSQL 数据库驱动(binary 版本无需编译,用于 Alembic 同步迁移)
psycopg2-binary==2.9.9
# asyncpg: PostgreSQL 异步驱动(用于 SQLAlchemy 2.0 async engine
asyncpg==0.29.0
# Alembic: 数据库迁移工具,与 SQLAlchemy 配合使用
alembic==1.13.1
# --------------------------------------------------------------------------
# 缓存
# --------------------------------------------------------------------------
# redis: Redis 客户端,用于 access_token 缓存和会话状态管理
redis==5.0.7
# --------------------------------------------------------------------------
# 数据验证
# --------------------------------------------------------------------------
# pydantic: 数据验证和设置管理,FastAPI 的核心依赖
pydantic==2.7.4
# pydantic-settings: 从环境变量读取配置,支持 .env 文件
pydantic-settings==2.3.4
# --------------------------------------------------------------------------
# HTTP 客户端
# --------------------------------------------------------------------------
# httpx: 异步 HTTP 客户端,用于调用企微 API(替代同步的 requests
httpx==0.27.0
# --------------------------------------------------------------------------
# 加密
# --------------------------------------------------------------------------
# cryptography: 企微消息 AES-CBC-256 加解密(官方推荐库)
cryptography==42.0.8
# --------------------------------------------------------------------------
# 工具
# --------------------------------------------------------------------------
# python-dotenv: 从 .env 文件加载环境变量到 os.environ
python-dotenv==1.0.1