neuralfetch.download.BaseDownload¶
- pydantic model neuralfetch.download.BaseDownload[source][source]¶
Abstract base class for all neuralfetch download backends.
Subclasses must implement
_download(). The publicdownload()method wraps_downloadwith idempotency checks via a success file: once a dataset has been downloaded successfully, subsequent calls are no-ops unlessoverwrite=Trueis passed.Selective downloading is unified across backends via the
includeandexcludeglob fields (dataset-relative POSIX globs).includeempty means “everything”;excludeis applied afterincludeand wins. Backends map these onto their native selection mechanism where possible (see_selects()); backends with no usable native filter raiseNotImplementedErrorwhen either field is set (see_reject_selection_filters()).- Parameters:
study (str) – Dataset identifier (e.g. a Dandiset ID, Zenodo record, or study name).
dset_dir (PathLike) – Root directory for the study. The parent must already exist; this directory and the
folder/sub-directory are created automatically.folder (str) – Name of the sub-directory inside dset_dir where raw files land. Defaults to
"download".
- Fields: