dataFetcher

class dataFetcher.RetryingHTTPDownloader(attempts: int = 2, retry_wait: int = 5, timeout: int = 30, progressbar: bool = False, sleep: ~typing.Callable[[int], None] = <built-in function sleep>, downloader_factory: ~typing.Callable[[...], ~pooch.downloaders.HTTPDownloader] = <class 'pooch.downloaders.HTTPDownloader'>, backup_urls_for: ~typing.Callable[[str], ~typing.Sequence[str]] = <function _external_backup_urls_for>)[source]

Bases: object

Retry transient HTTP failures and fall back to mirrored support data.

dataFetcher.fetch_support_data(rel: str, progressbar: bool = False) str[source]

Fetch a support data file using retry-hardened HTTP downloads.

dataFetcher.find_local_support_data() Path | None[source]

Return the path to the local supportData directory if running from a cloned repo, otherwise return None.

Works whether running from source (src/) or from built modules (dist3/Basilisk/).

dataFetcher.get_path(file_enum: Enum) Path[source]

Return a filesystem path for the requested supportData file.

If running from a local Basilisk repo, the file is returned directly from supportData/. Otherwise, it is fetched or retrieved from the Pooch cache.

dataFetcher.local_support_path(rel: str) Path | None[source]

Return the local filesystem path for a registry-style key, if available.

dataFetcher.tag_exists(tag_url: str) bool[source]

Return True if the given GitHub tag URL exists.

Cached so repeated calls never trigger additional network requests.