ADCS.helpers.asset_manager module¶
Locate large data assets and request consent before downloading them.
- class ADCS.helpers.asset_manager.Asset(name: 'str', url: 'str', filename: 'str', sha256: 'str | None' = None)[source]¶
Bases:
object- Parameters:
name (str)
url (str)
filename (str)
sha256 (str | None)
- filename: str¶
- name: str¶
- sha256: str | None = None¶
- url: str¶
- class ADCS.helpers.asset_manager.AssetManager(registry=None, locations=None, cache_dir=None)[source]¶
Bases:
objectResolve registered files from local directories or a user cache.
- ADCS.helpers.asset_manager.user_cache_dir()[source]¶
Writable per-user cache root on Linux, WSL, macOS, and Windows.
XDG_CACHE_HOMEtakes precedence on every platform, as it did in 0.2.1, so one variable relocates the cache (and the tests’ isolation works) on macOS and Windows too.- Return type:
Path