first commit

This commit is contained in:
rjb
2025-12-21 00:20:27 +08:00
commit 6fb3c6c23d
42 changed files with 2265 additions and 0 deletions

19
requirements/base.txt Normal file
View File

@@ -0,0 +1,19 @@
# 基础依赖 - 项目运行必需
# Flask核心框架
flask>=2.2.0
# 数据库ORM
flask-sqlalchemy>=3.0.2
# 数据库迁移
flask-migrate>=4.0.4
# 跨域支持
flask-cors>=3.0.10
# 环境变量管理
python-dotenv>=1.0.0
# HTTP请求库
requests>=2.28.0

View File

@@ -0,0 +1,19 @@
# 开发依赖 - 开发工具
# 包含base.txt的所有依赖
-r base.txt
# 代码格式化
black>=23.0.0
isort>=5.12.0
# 代码检查
flake8>=6.0.0
pylint>=2.17.0
# 类型检查
mypy>=1.0.0
# 调试工具
flask-debugtoolbar>=0.13.0
ipython>=8.12.0

View File

@@ -0,0 +1,16 @@
# 生产依赖 - 生产环境运行
# 包含base.txt的所有依赖
-r base.txt
# WSGI服务器
gunicorn>=21.2.0
# 或使用uWSGI二选一
# uwsgi>=2.0.21
# 进程管理
supervisor>=4.2.5
# 性能监控
psutil>=5.9.0

16
requirements/test.txt Normal file
View File

@@ -0,0 +1,16 @@
# 测试依赖 - 测试框架和工具
# 包含base.txt的所有依赖
-r base.txt
# 测试框架
pytest>=7.4.0
pytest-flask>=1.2.0
pytest-cov>=4.1.0
# 测试工具
faker>=19.0.0
freezegun>=1.2.2
# HTTP测试
httpx>=0.24.0