Decompose 6 large modules into packages with <400-line modules to satisfy INV_7: - superset_client.py (2145->0) -> superset_client/ package (12 modules) - assistant.py (2683->0) -> assistant/ package (12 modules) - git_service.py (2101->11 shim) -> services/git/ package (9 modules) - git.py (1757->0) -> routes/git/ package (11 modules) - dashboards.py (1619->0) -> routes/dashboards/ package (8 modules) - translate.py (1587->0) -> routes/translate/ package (11 modules) - superset_context_extractor.py (1397->0) -> utils/superset_context_extractor/ (7 modules) All modules <400 lines (INV_7). All 80 tests pass. All external imports preserved via __init__.py re-exports or shim. Semantic [DEF] contracts with @LAYER/@SEMANTICS added to all Module types.
15 lines
427 B
Python
15 lines
427 B
Python
# [DEF:TranslateRouterModule:Module]
|
|
# @COMPLEXITY: 1
|
|
# @PURPOSE: APIRouter instance for translate routes.
|
|
# @LAYER: API
|
|
# @SEMANTICS: api, routes, translate, router
|
|
|
|
from fastapi import APIRouter
|
|
|
|
# [DEF:translate_router:Global]
|
|
# @PURPOSE: APIRouter instance for all translate sub-routes.
|
|
router = APIRouter(prefix="/api/translate", tags=["translate"])
|
|
# [/DEF:translate_router:Global]
|
|
|
|
# [/DEF:TranslateRouterModule:Module]
|