gigl.common.utils.http#

Attributes#

Classes#

Module Contents#

class gigl.common.utils.http.HttpUtils[source]#
static does_http_path_resolve(http_path)[source]#

Checks if an HTTP(S) URL resolves to a valid file.

Parameters:

http_path (gigl.common.HttpUri)

Return type:

bool

static download_file_from_http(http_path, dest_file_path)[source]#

Downloads a file from an HTTP(S) URL to a local file path.

Parameters:
  • http_path (HttpUri) – The HTTP(S) URL to download from.

  • dest_file_path (LocalUri) – The local file path to save the downloaded file.

static download_files_from_http(http_to_local_path_map)[source]#

Downloads a list of files from an HTTP(S) URL to a list of local file paths.

Parameters:

http_to_local_path_map (dict[HttpUri, LocalUri]) – A dictionary mapping HTTP(S) URLs to local file paths.

gigl.common.utils.http.logger[source]#