feat: stage0 — init Python package, FastAPI health endpoint, tests

This commit is contained in:
Yuzviak
2026-03-22 22:10:09 +02:00
parent 6a48dd29fd
commit 6ba883f4d6
6 changed files with 124 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
"""FastAPI application factory."""
from fastapi import FastAPI
from gps_denied import __version__
def create_app() -> FastAPI:
"""Create and configure the FastAPI application."""
application = FastAPI(
title="GPS-Denied Onboard",
version=__version__,
description="UAV geolocalization service for GPS-denied environments",
)
@application.get("/health")
async def health() -> dict:
return {"status": "ok"}
return application
app = create_app()