qgis_deployment_toolbelt.profiles.remote_http_handler module¶
Handle remote HTTP repository.
Author: Julien Moura (https://github.com/guts).
- class qgis_deployment_toolbelt.profiles.remote_http_handler.HttpHandler(source_repository_path_or_uri: str, source_repository_type: str = 'http', deletion_mode: Literal['force_delete', 'trash_only', 'trash_or_delete'] | None = None)¶
Bases:
RemoteProfilesHandlerBaseHandle remote HTTP repositories without git protocol.
It’s designed to handle thoses cases:
the distant repository (source) is on a webserver accessible through HTTP protocol
the local repository (destination) is on a local network or drive
- HTTP_HEADERS = {'User-Agent': 'QGISDeploymentToolbelt/0.44.1.dev13+g95e26ae9f.d20260821'}¶
- __init__(source_repository_path_or_uri: str, source_repository_type: str = 'http', deletion_mode: Literal['force_delete', 'trash_only', 'trash_or_delete'] | None = None) None¶
Constructor.
- Parameters:
source_repository_path_or_uri (str | Path) – path to the source repository
- download(destination_local_path: Path)¶
Generic wrapper around the specific logic of this handler.
- Parameters:
destination_local_path (Path) – path to the local folder where to download