qgis_deployment_toolbelt.utils.url_helpers module¶
Helpers to check file: readable, exists, etc..
Author: Julien Moura (https://github.com/guts)
- qgis_deployment_toolbelt.utils.url_helpers.check_str_is_url(input_str: str, ref_shemes: tuple = ('http', 'https'), raise_error: bool = True)¶
Checks if a given str is a valid URL.
- Parameters:
- Returns:
True if the str is a valid URL, False otherwise.
- Return type:
- Raises:
ValueError – If the str is not a valid URL and raise_error is True.
TypeError – If an error occurs during str checking and raise_error is True.