<gh_stars>1-10
import uvicorn

from .app import App

app = App()


def main():
    uvicorn.run(
        app,
        host=app.app_config.host,
        port=app.app_config.port,
        root_path=app.app_config.public_url.path,
        log_level=app.app_config.log_level.lower(),
    )


if __name__ == "__main__":
    main()

import uvicorn

from .app import App

app = App()


def main():
    uvicorn.run(
        app,
        host=app.app_config.host,
        port=app.app_config.port,
        root_path=app.app_config.public_url.path,
        log_level=app.app_config.log_level.lower(),
    )


if __name__ == "__main__":
    main()