Files
operating-room-monitor-server/pyproject.toml
Kevin 6b3adb4ad8 feat: 站点 JSON、语音终端 WebSocket 指派与客户端联调
- 用 OR_SITE_CONFIG_JSON_FILE 统一术间配置(video_rtsp_urls + voice_or_room_bindings)
- VoiceTerminalHub:assignment、WS 推送与 HTTP 查询;开录/停录后 notify
- 一键联调 orchestrate-and-start 与 /client/surgeries/start 共用指派逻辑,修复 demo 路径不发 WS
- 语音桌面端:SIGINT 退出、shutdown 清理、仅 WS 指派、固定 pending 轮询间隔、界面仅保留录音时长
- 新增/调整契约与绑定测试,文档与示例配置同步

Made-with: Cursor
2026-04-27 11:21:16 +08:00

73 lines
1.8 KiB
TOML

[project]
name = "operation-room-monitor-server"
version = "0.1.0"
description = "Operation room monitor API server"
requires-python = ">=3.13"
dependencies = [
"asyncpg>=0.31.0",
"psycopg[binary]>=3.2.0",
"greenlet>=3.1.0",
"minio>=7.2.15",
"baidu-aip>=4.16.13",
"chardet>=7.4.3",
"fastapi>=0.136.0",
"loguru>=0.7.3",
"pillow>=12.2.0",
"pydantic-settings>=2.13.1",
"python-multipart>=0.0.26",
"sqlalchemy>=2.0.49",
"ultralytics>=8.4.40",
"uvicorn[standard]>=0.44.0",
"rich>=15.0.0",
"pyyaml>=6.0.3",
]
[project.scripts]
operation-room-monitor-server = "main:main"
voice-confirmation-client = "voice_confirmation_client.__main__:main"
# Use PyTorch CPU wheels from the official index so:
# - Linux Docker builds (incl. Docker Desktop on Mac) do not install NVIDIA CUDA pip bundles.
# - Native macOS still resolves to the correct macosx_* wheels from the same index.
# For NVIDIA servers, use a separate CUDA torch install or override in a dedicated prod Dockerfile.
[tool.uv]
index-strategy = "unsafe-best-match"
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
[tool.uv.sources]
torch = { index = "pytorch-cpu" }
torchvision = { index = "pytorch-cpu" }
[dependency-groups]
dev = [
"httpx>=0.28.0",
"pytest>=8.3.0",
"pytest-asyncio>=0.25.0",
"aiosqlite>=0.21.0",
"alembic>=1.14.0",
]
voice-client = [
"httpx>=0.28.0",
"loguru>=0.7.3",
"numpy>=2.0.0",
"PySide6>=6.8.0",
"sounddevice>=0.5.0",
"websocket-client>=1.8.0",
]
voice-client-build = [
"httpx>=0.28.0",
"loguru>=0.7.3",
"numpy>=2.0.0",
"PySide6>=6.8.0",
"sounddevice>=0.5.0",
"websocket-client>=1.8.0",
"pyinstaller>=6.0.0",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]