Files
012-kaopeilian/backend/requirements.txt
yuliang_guo 2f47193059
All checks were successful
continuous-integration/drone/push Build is passing
feat: 集成MinIO对象存储服务
- 新增storage_service.py封装MinIO操作
- 修改upload.py使用storage_service上传文件
- 修改course_service.py使用storage_service删除文件
- 适配preview.py支持从MinIO获取文件
- 适配knowledge_analysis_v2.py支持MinIO存储
- 在config.py添加MinIO配置项
- 添加minio依赖到requirements.txt

支持特性:
- 自动降级到本地存储(MinIO不可用时)
- 保持URL格式兼容(/static/uploads/)
- 文件自动缓存到本地(用于预览和分析)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-03 14:06:22 +08:00

65 lines
1009 B
Plaintext
Raw Permalink 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.
# Web框架
fastapi==0.104.1
uvicorn[standard]==0.24.0
python-multipart==0.0.6
sse-starlette==1.8.2
# 数据库
sqlalchemy==2.0.23
aiomysql==0.2.0
alembic==1.12.1
# Redis
redis==5.0.1
aioredis==2.0.1
# 数据验证
pydantic==2.5.0
pydantic-settings==2.1.0
email-validator==2.1.0
# 认证和安全
python-jose[cryptography]==3.3.0
passlib==1.7.4
bcrypt==4.1.2
python-dotenv==1.0.0
PyJWT==2.8.0
PyMySQL==1.1.0
# HTTP客户端
# 与 cozepy==0.19.0 兼容cozepy 依赖 httpx >= 0.27.0 且 < 0.28.0
httpx==0.27.2
aiofiles==23.2.1
# 对象存储MinIO
minio>=7.2.0
# 日志
structlog==23.2.0
# AI平台SDK
cozepy==0.19.0
# 工具库
python-dateutil==2.8.2
tenacity==8.2.3
# 定时任务调度
apscheduler==3.10.4
# Excel文件处理用于课程资料预览
openpyxl==3.1.2
# LLM JSON 解析(知识点分析服务)
json-repair>=0.25.0
jsonschema>=4.0.0
# 文档提取
PyPDF2>=3.0.0
python-docx>=1.0.0
python-pptx>=0.6.21
# 证书生成
Pillow>=10.0.0
qrcode>=7.4.0
weasyprint>=60.0