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')¶
Bases:
RemoteProfilesHandlerBase
Handle 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.36.3'}¶
- __init__(source_repository_path_or_uri: str, source_repository_type: str = 'http') 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