Skip to content

gitea.resource.async_resource

async_resource

Asynchronous Resource Base Class for Gitea API interactions.

Classes

gitea.resource.async_resource.AsyncResource

AsyncResource(client: AsyncGitea)

Base class for asynchronous Gitea API resources.

Initialize the Resource with a AsyncGitea client.

Parameters:

Name Type Description Default
client AsyncGitea

An instance of the AsyncGitea client.

required
Source code in src/gitea/resource/async_resource.py
def __init__(self, client: AsyncGitea) -> None:
    """Initialize the Resource with a AsyncGitea client.

    Args:
        client: An instance of the AsyncGitea client.

    """
    self.client = client