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