Download kyrexis/api/app.py from Codexcoder/kyrexis-module: direct link, hf CLI and curl.
- Browser
- Download file 949 Bytes
-
https://huggingface.co/datasets/Codexcoder/kyrexis-module/resolve/main/kyrexis/api/app.py
- Command line
-
hf download hf://datasets/Codexcoder/kyrexis-module/kyrexis/api/app.py
-
curl -L -o app.py https://huggingface.co/datasets/Codexcoder/kyrexis-module/resolve/main/kyrexis/api/app.py
949 Bytes
| # kyrexis/api/app.py | |
| """ | |
| Kyrexis AI standalone FastAPI app. | |
| Run standalone:: | |
| uvicorn kyrexis.api.app:app --host 0.0.0.0 --port 8001 | |
| or mount into the Sovereign orchestrator (src/sovereign/main.py) which | |
| includes kyrexis.api.routes.router under /api/v1/kyrexis. | |
| """ | |
| from __future__ import annotations | |
| from fastapi import FastAPI | |
| from kyrexis import __brand__, __version__ | |
| from kyrexis.api.routes import router | |
| app = FastAPI( | |
| title="Kyrexis AI API", | |
| version=__version__, | |
| description=f"{__brand__} — quantum-infused intelligence module API", | |
| ) | |
| app.include_router(router) | |
| def index() -> dict: | |
| """Service banner.""" | |
| return { | |
| "service": "kyrexis", | |
| "brand": __brand__, | |
| "version": __version__, | |
| "endpoints": "/api/v1/kyrexis/*", | |
| } | |
| def health() -> dict: | |
| """Liveness probe.""" | |
| return {"status": "ok", "brand": __brand__, "version": __version__} | |