check_internet_connection
[#14]retrieve_over_http
[#39]conf_from_url
[#71]get_latest_atlases_version
[#90]read_json
[#98]read_tiff
[#104]
Check the source code
online
def check_internet_connection(url='http://www.google.com/', timeout=5,
raise_error=True):
docstring:
Check that there is an internet connection
url : str
url to use for testing (Default value = 'http://www.google.com/')
timeout : int
timeout to wait for [in seconds] (Default value = 5).
raise_error : bool
if false, warning but no error.
Check the source code
online
def retrieve_over_http(url, output_file_path):
docstring:
Download file from remote location, with progress bar.
Parameters
----------
url : str
Remote URL.
output_file_path : str or Path
Full file destination for download.
Check the source code
online
def conf_from_url(url):
docstring:
Read conf file from an URL.
Parameters
----------
url : str
conf file url (in a repo, make sure the "raw" url is passed)
Returns
-------
conf object
Check the source code
online
def get_latest_atlases_version():
docstring:
no docstring
Check the source code
online
def read_json(path):
docstring:
no docstring
Check the source code
online
def read_tiff(path):
docstring:
no docstring