Skip to content

ghnova.client.async_github

async_github

Asynchronous GitHub API client implementation.

Classes

ghnova.client.async_github.AsyncGitHub

AsyncGitHub(token: str | None = None, base_url: str = 'https://github.com')

Bases: Client

Asynchronous GitHub API client.

Initialize the asynchronous GitHub client.

Parameters:

Name Type Description Default
token str | None

The API token for authentication.

None
base_url str

The base URL of the GitHub instance.

'https://github.com'
Source code in src/ghnova/client/async_github.py
def __init__(self, token: str | None = None, base_url: str = "https://github.com") -> None:
    """Initialize the asynchronous GitHub client.

    Args:
        token: The API token for authentication.
        base_url: The base URL of the GitHub instance.

    """
    super().__init__(token=token, base_url=base_url)
    self.session: ClientSession | None = None
    self.issue = AsyncIssue(client=self)
    self.pull_request = AsyncPullRequest(client=self)
    self.user = AsyncUser(client=self)