ADCS.helpers.animations.godot.assets.fetch module¶
- ADCS.helpers.animations.godot.assets.fetch.cache_dir()[source]¶
Root for explicitly requested visualization assets.
- Return type:
Path
- ADCS.helpers.animations.godot.assets.fetch.fetch(ids=None, sources=None, accept=(), log=<built-in function print>)[source]¶
Download raw inputs into the cache and verify them.
A file already in the cache is re-verified, not downloaded again. Every download goes to a temporary file and is moved into place only after its size and SHA-256 match
sources.json. Sources with no pinned hash yet are accepted and their hash is reported, so it can be pinned.- Parameters:
ids (Iterable[str] | None) – Source ids to fetch (default: all).
sources (Dict[str, Dict[str, Any]] | None) – Source table (default: the packaged
sources.json).accept (Iterable[str]) – Ids whose licence the user has accepted (required for sources with
requires_acceptance).
- Returns:
Paths of the verified files.
- Raises:
ValueError – On a size or checksum mismatch, or an unaccepted licence.
- Return type:
List[Path]
- ADCS.helpers.animations.godot.assets.fetch.file_sha256(path)[source]¶
- Parameters:
path (Path)
- Return type:
str