neuralfetch.download.Physionet

class neuralfetch.download.Physionet(*, study: str, dset_dir: str | Path, folder: str = 'download', bucket: str = 'physionet-open', prefix: str = '', anonymous: bool = True, profile: str | None = None, files: list[str] = [], files_with_destinations: list[tuple[str, str]] = [], output_dir: str | Path | None = None, aws_access_key_id: str | None = None, aws_secret_access_key: str | None = None, nworkers: int = 8, skip_existing: bool = True, version: str)[source][source]

Physionet datasets via anonymous boto3 access.

Extends S3 with the convention that Physionet datasets live under <study>/<version>/ in the physionet-open bucket. After download, the versioned directory is flattened into _dl_dir.