octomachinery.app.server.machinery module¶

Web-server constructors.

async octomachinery.app.server.machinery.get_server_runner(http_handler)[source]¶

Initialize server runner.

octomachinery.app.server.machinery.log_webhook_secret_status(webhook_secret)[source]¶

Log HTTP body signature verification behavior.

async octomachinery.app.server.machinery.run_forever(config, event_routers)[source]¶

Spawn an HTTP server in anyio context.

async octomachinery.app.server.machinery.setup_server_runner(github_app: octomachinery.github.api.app_client.GitHubApp, webhook_secret: Optional[str] = None) → aiohttp.web_runner.ServerRunner[source]¶

Return a server runner with a webhook dispatcher set up.

async octomachinery.app.server.machinery.start_tcp_site(server_config, aiohttp_server_runner: aiohttp.web_runner.ServerRunner) → aiohttp.web_runner.TCPSite[source]¶

Return initialized and listening TCP site.