Source code for httk.serve.optimade.runtime.devserver

"""Development-server entry point for an OPTIMADE ASGI application."""

import uvicorn

from httk.serve.http import ServeApp


[docs] def run_dev_server(*, app: ServeApp, host: str, port: int) -> None: """Run an ASGI application with Uvicorn. :param app: ASGI application to serve. :param host: Interface or hostname to bind. :param port: TCP port to bind. """ uvicorn.run(app, host=host, port=port)