dasf.datasets.download
Download module for datasets.
Classes
Dataset downloadable via wget. |
|
Dataset downloadable via Google Drive. |
Module Contents
- class dasf.datasets.download.DownloadWget(url, filename, root, download=True)[source]
Bases:
dasf.datasets.base.Dataset
Dataset downloadable via wget.
Parameters
- urlstr
The url to fetch the resource.
- filenamestr
Name of the file.
- rootstr
Directory to store the downloaded file.
- downloadbool
If it the dataset must be downloaded (the default is True).
Constructor of the object DownloadWget.
- __url
- __filename
- Parameters:
url (str)
filename (str)
root (str)
download (bool)
- class dasf.datasets.download.DownloadGDrive(google_file_id, filename, root, download=True)[source]
Bases:
dasf.datasets.base.Dataset
Dataset downloadable via Google Drive.
Parameters
- google_file_idstr
Id of the google drive resource.
- filenamestr
Name of the file.
- rootstr
Directory to store the downloaded file.
- downloadbool
If it the dataset must be downloaded (the default is True).
Constructor of the object DownloadGDrive.
- __google_file_id
- __filename
- Parameters:
google_file_id (str)
filename (str)
root (str)
download (bool)