Files
dcalc/backend
2026-08-18 16:13:07 +08:00
..
2026-08-18 16:13:07 +08:00
2026-07-06 18:30:50 +08:00
fix
2026-08-17 11:53:40 +08:00
2026-08-18 16:13:07 +08:00
2026-08-12 00:03:59 +08:00
dev
2026-04-09 19:24:26 +08:00
2026-08-12 19:56:06 +08:00
2026-06-04 19:46:51 +08:00
2026-08-18 16:13:07 +08:00
2025-03-10 15:10:03 +08:00
2026-08-18 16:13:07 +08:00
1
2026-06-17 15:09:44 +08:00
2026-05-26 01:50:30 +08:00
2026-08-18 16:13:07 +08:00
1
2026-06-02 20:56:07 +08:00
2026-08-11 18:31:10 +08:00
2026-08-18 16:13:07 +08:00

dcalc backend

Run

uv sync
python main.py

Test

uv run pytest -v

Quality

uv run ruff check .

Runtime Entry

  • main.py: FastAPI application and uvicorn entry.
  • api/routes/calc.py: /api/calc HTTP route.
  • services/calc_service.py: calculation orchestration.
  • core/basic/character/: character calculation implementation.
  • core/basic/equipment.py: equipment data models and compatibility access.
  • core/basic/equipment_registry.py: equipment version registry and cache.
  • database/connect.py: SQLite and Redis connections.

Compatibility Rules

  • Do not change /calc request and response contract without frontend migration approval.
  • Do not change frontendNew result data shape during backend refactors.
  • Keep Skill and Forge business formulas behavior-compatible unless a dedicated formula task says otherwise.