client
appimage_updater.github.client
¶
GitHub API client for fetching release information.
GitHubClient(timeout=30, user_agent=None, auth=None, token=None)
¶
Client for GitHub API operations with authentication support.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
timeout
|
int
|
Request timeout in seconds |
30
|
user_agent
|
str | None
|
Custom user agent string |
None
|
auth
|
GitHubAuth | None
|
GitHubAuth instance for authentication |
None
|
token
|
str | None
|
Explicit GitHub token (creates auth if provided) |
None
|
Source code in src/appimage_updater/github/client.py
auth = auth
instance-attribute
¶
timeout = timeout
instance-attribute
¶
user_agent = user_agent or f'AppImage-Updater/{__version__}'
instance-attribute
¶
get_latest_release(repo_url)
async
¶
Get the latest release for a repository.
Source code in src/appimage_updater/github/client.py
get_latest_release_including_prerelease(repo_url)
async
¶
Get the latest release including prereleases.
Source code in src/appimage_updater/github/client.py
get_releases(repo_url, limit=10)
async
¶
Get recent releases for a repository.
Source code in src/appimage_updater/github/client.py
GitHubClientError
¶
Raised when GitHub API operations fail.