octomachinery.github.api.tokens module#

GitHub token types definitions.

class octomachinery.github.api.tokens.GitHubJWTToken(token_value: ~octomachinery.github.models.utils.SecretStr = <function GitHubToken.<lambda>>)[source]#

Bases: GitHubToken

GitHub JSON Web Token.

It represents GitHub App token.

Ref: https://developer.github.com

/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app

class octomachinery.github.api.tokens.GitHubOAuthToken(token_value: ~octomachinery.github.models.utils.SecretStr = <function GitHubToken.<lambda>>)[source]#

Bases: GitHubToken

GitHub OAuth Token.

It can represent either App Installation token or a personal one.

Ref: https://developer.github.com

/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation

class octomachinery.github.api.tokens.GitHubToken(token_value: ~octomachinery.github.models.utils.SecretStr = <function GitHubToken.<lambda>>)[source]#

Bases: object

Base class for GitHub tokens.