url_tools.py module

is_path_http_addr(path)

Checks if provided string is a http address.

Parameters:

path (str or Path) – is this path a URL?

Returns:

True if path is a URL otherwise False

Return type:

bool

get_model_bytes_from_url(model_url)

Gets model from provided URL.

Parameters:

model_url (str) – url to get the model from

Returns:

downloaded bytes source url

Return type:

bytes