refactor: 优化配置管理和异常处理

- 添加YAML配置文件支持
- 改进camera_manager异常处理
- 添加类型提示和URL验证
- 完善依赖注入支持测试
- 新增健康检查API端点
This commit is contained in:
qichi.liang
2026-01-02 06:25:36 +08:00
parent 3e9a840576
commit 6903ee6f0b
9 changed files with 503 additions and 132 deletions

View File

@@ -1,3 +1,17 @@
# Flask框架
Flask==2.3.3
# HTTP请求
requests==2.31.0
python-dotenv==1.0.0
# 环境变量
python-dotenv==1.0.0
# YAML配置支持
PyYAML>=6.0
# 生产环境WSGI服务器
gunicorn>=21.0.0
# 异步支持(可选)
# gevent>=23.0.0