conf_from_url#
- brainglobe_atlasapi.utils.conf_from_url(url, cache_path) ConfigParser[source]#
Read conf file from a URL and cache a copy of the configuration file in the brainglobe directory.
- Parameters:
url (str) – URL of the configuration file. Ensure it’s the raw URL for repository files (e.g., from GIN raw content).
cache_path (Path) – The path where the configuration file will be cached.
- Returns:
A ConfigParser object containing the configuration data.
- Return type:
configparser.ConfigParser