octomachinery.github.entities.app_installation module

GitHub App Installation wrapper.

class octomachinery.github.entities.app_installation.GitHubAppInstallation(metadata: GitHubAppInstallationModel, github_app: GitHubApp)[source]

Bases: object

GitHub App Installation API wrapper.

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

Gidgethub API client instance.

property github_installation_client

The GitHub App client with an async CM interface.

async retrieve_access_token()[source]

Retrieve installation access token from GitHub API.

property token

Return GitHub App Installation access token.