geotribu_cli.utils.url_helpers module¶
Helpers to check file: readable, exists, etc..
Author: Julien Moura (https://github.com/guts)
- geotribu_cli.utils.url_helpers.check_str_is_url(input_str, ref_shemes=('http', 'https'), raise_error=True)¶
Checks if a given str is a valid URL.
- Paramètres:
- Renvoie:
True if the str is a valid URL, False otherwise.
- Type renvoyé:
- Lève:
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.