modelforge.utils.remote

Module for querying remote sources and fetching datafiles

Functions

calculate_md5_checksum(file_name, file_path)

check_for_curl()

Check if curl is installed on the system.

check_for_wget()

Check if wget is installed on the system.

curl_wrapper(url, output_path, output_filename)

Download a file using curl.

download_from_url(url, md5_checksum, ...[, ...])

Download a file from a URL, with retries and checksum verification and fallbacks if the default request method fails.

fetch_url_from_doi(doi[, timeout])

Retrieve URL associated with a DOI.

is_url(query, hostname)

Validate if a string is a URL associated with a given domain.

wget_wrapper(url, output_path, output_filename)

Download a file using wget.