Skip to content

direct_handler

appimage_updater.repositories.handlers.direct_handler

Direct download repository handler implementation.

DirectDownloadHandler

Handler for direct download URLs.

metadata property

Get direct download handler metadata.

can_handle_url(url)

Check if this handler can handle the given URL.

Source code in src/appimage_updater/repositories/handlers/direct_handler.py
def can_handle_url(self, url: str) -> bool:
    """Check if this handler can handle the given URL."""
    # Check if URL matches direct download patterns
    return (url.startswith("https://") or url.startswith("http://")) and self.metadata.can_handle_url_pattern(url)

create_client(**kwargs)

Create a direct download repository client.

Source code in src/appimage_updater/repositories/handlers/direct_handler.py
def create_client(self, **kwargs: Any) -> RepositoryClient:
    """Create a direct download repository client."""
    return DirectDownloadRepository(**kwargs)