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
+3
View File
@@ -0,0 +1,3 @@
"""GPS-Denied Onboard — UAV geolocalization service."""
__version__ = "0.1.0"
+16
View File
@@ -0,0 +1,16 @@
"""Entry point: python -m gps_denied."""
import uvicorn
def main() -> None:
uvicorn.run(
"gps_denied.app:app",
host="127.0.0.1",
port=8000,
reload=True,
)
if __name__ == "__main__":
main()
+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()