gitea.client
client
Client for Gitea API.
Classes
gitea.client.AsyncGitea
Bases: Client
Asynchronous Gitea API client.
Initialize the asynchronous Gitea client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token
|
str | None
|
The API token for authentication. |
None
|
base_url
|
str
|
The base URL of the Gitea instance. |
'https://gitea.com'
|
Source code in src/gitea/client/async_gitea.py
gitea.client.Gitea
Bases: Client
Synchronous Gitea API client.
Initialize the Gitea client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token
|
str | None
|
The API token for authentication. |
None
|
base_url
|
str
|
The base URL of the Gitea instance. |
'https://gitea.com'
|