niftynet.utilities.download module¶
-
download
(example_ids, download_if_already_existing=False, verbose=True)[source]¶ Downloads standard NiftyNet examples such as data, samples
Parameters: - example_ids – A list of identifiers for the samples to download
- download_if_already_existing – If true, data will always be downloaded
-
download_file
(url, download_path)[source]¶ Download a file from a resource URL to the given location
Parameters: - url – URL of the file to download
- download_path – location where the file should be saved
-
download_and_decompress
(url, download_path)[source]¶ Download an archive from a resource URL and decompresses/unarchives to the given location
Parameters: - url – URL of the compressed file to download
- download_path – location where the file should be extracted
-
class
ConfigStore
(global_config)[source]¶ Manages a configuration file store based on a remote repository with local caching
-
class
ConfigStoreCache
(cache_folder)[source]¶ A local cache for configuration files
-
class
RemoteProxy
(parent_store_folder, base_url)[source]¶ A remote configuration file store with a local cache
-
gitlab_raw_file_url
(base_url, file_name)[source]¶ Returns the url for the raw file on a GitLab server