_github
GitHub API operations for runtime downloads.
Attributes¶
REPO_OWNER = 'kaitumisuuringute-keskus'
module-attribute
¶
REPO_NAME = 'brmspy'
module-attribute
¶
Functions¶
log_warning(msg, method_name=None)
¶
Log a warning message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
msg
|
str
|
The warning message to log |
required |
method_name
|
str
|
The name of the method/function. If None, will auto-detect from call stack. |
None
|
Source code in brmspy/helpers/log.py
parse_release_url(url)
¶
Parse a GitHub release asset URL into (owner, repo, tag, asset_name).
Expected pattern:
https://github.com/
Source code in brmspy/_runtime/_github.py
fetch_release_metadata(owner, repo, tag, use_token=True)
¶
Fetch release metadata from GitHub API (handles auth + retries).
Source code in brmspy/_runtime/_github.py
get_asset_sha256(url)
cached
¶
Get SHA256 hash from release asset metadata.
Source code in brmspy/_runtime/_github.py
get_runtime_download_url(fingerprint, version='latest')
¶
Construct download URL for runtime bundle.
Source code in brmspy/_runtime/_github.py
get_latest_runtime_version()
¶
Query GitHub for latest runtime release version.
get_github_asset_sha256_from_url(url, require_digest=False)
¶
Get SHA256 from GitHub release asset. Used by old code.