2026-04-20 17:58:03 +08:00
|
|
|
[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",
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
"greenlet>=3.1.0",
|
|
|
|
|
"minio>=7.2.15",
|
|
|
|
|
"baidu-aip>=4.16.13",
|
|
|
|
|
"chardet>=7.4.3",
|
2026-04-20 17:58:03 +08:00
|
|
|
"fastapi>=0.136.0",
|
|
|
|
|
"loguru>=0.7.3",
|
2026-04-22 16:31:12 +08:00
|
|
|
"openpyxl>=3.1.5",
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
"pillow>=12.2.0",
|
2026-04-20 17:58:03 +08:00
|
|
|
"pydantic-settings>=2.13.1",
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
"python-multipart>=0.0.26",
|
2026-04-20 17:58:03 +08:00
|
|
|
"sqlalchemy>=2.0.49",
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
"ultralytics>=8.4.40",
|
2026-04-20 17:58:03 +08:00
|
|
|
"uvicorn[standard]>=0.44.0",
|
2026-04-23 14:24:20 +08:00
|
|
|
"rich>=15.0.0",
|
2026-04-20 17:58:03 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
|
operation-room-monitor-server = "main:main"
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
|
|
|
|
|
# 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",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
asyncio_mode = "auto"
|
|
|
|
|
testpaths = ["tests"]
|