Standalone blocking entry point.
(host: str = "0.0.0.0", port: int = 8080)
| 957 | |
| 958 | |
| 959 | def run_server(host: str = "0.0.0.0", port: int = 8080) -> None: |
| 960 | """Standalone blocking entry point.""" |
| 961 | from dotenv import load_dotenv |
| 962 | |
| 963 | load_dotenv() |
| 964 | app = create_app() |
| 965 | _print_banner(host, port) |
| 966 | uvicorn.run(app, host=host, port=port, log_level="warning") |
| 967 | |
| 968 | |
| 969 | def _print_banner(host: str, port: int) -> None: |
nothing calls this directly
no test coverage detected