check_internet_connection#

brainglobe_atlasapi.utils.check_internet_connection(url: str = 'http://www.google.com/', timeout: int = 5, raise_error: bool = True) bool[source]#

Check that there is an internet connection url : str

url to use for testing (Default value = ‘http://www.google.com/’)

timeoutint

timeout to wait for [in seconds] (Default value = 5).

raise_errorbool

if false, warning but no error.