Download src/apps/labo/module.py from anaselamr/yaz: direct link, hf CLI and curl.
- Browser
- Download file 615 Bytes
-
https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/apps/labo/module.py
- Command line
-
hf download hf://spaces/anaselamr/yaz/src/apps/labo/module.py
-
curl -L -o module.py https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/apps/labo/module.py
615 Bytes
| """ | |
| Labo — self-registers its HTTP router into the platform ModuleRegistry. | |
| Usage: ModuleRegistry discovers this file via auto_discover() and mounts | |
| the router at /api/v1/labo. | |
| """ | |
| from core.engines.module import EngineModule, ModuleRegistry | |
| from fastapi import APIRouter | |
| class LaboModule(EngineModule): | |
| slug = "labo" | |
| name = "Labo — Laboratory & Diagnostics" | |
| domain = "laboratory" | |
| version = "1.0.0" | |
| api_prefix = "/labo" | |
| tags = ["Labo"] | |
| def get_router(self) -> APIRouter: | |
| from apps.labo.router import router | |
| return router | |
| ModuleRegistry.register(LaboModule()) | |