octomachinery.github.api.client module

A low-level GitHub API client.

class octomachinery.github.api.client.GitHubAPIClient(github_token: octomachinery.github.api.tokens.GitHubToken, user_agent: str, external_session: Optional[aiohttp.client.ClientSession] = None)[source]

Bases: contextlib.AbstractAsyncContextManager

A client to the GitHub API with an asynchronous CM support.

get_github_api_client(*, session: Optional[aiohttp.client.ClientSession] = None)[source]

Gidgethub API client instance.

property is_initialized

Return GitHub token presence.