Skip to content

GitHubRelease

🛈 DocStrings

Download binary from GitHub releases.

Parameters:

Name Type Description Default
repo str

Repository in "owner/repo" format

required
asset_pattern str

Pattern with placeholders: {version}, {arch}, {platform}, {ext}

required
binary_name str

Name of the binary after extraction

required
extract_subdir str | None

Subdirectory within archive containing the binary

None
Source code in src/anyenv/lsp_servers/_base.py
@dataclass
class GitHubRelease:
    """Download binary from GitHub releases.

    Args:
        repo: Repository in "owner/repo" format
        asset_pattern: Pattern with placeholders: {version}, {arch}, {platform}, {ext}
        binary_name: Name of the binary after extraction
        extract_subdir: Subdirectory within archive containing the binary
    """

    repo: str
    asset_pattern: str
    binary_name: str
    extract_subdir: str | None = None

:fa-brands-github: Show source on GitHub