sportslabkit.datasets.downloader#
Overview#
- |
Get the platform of the current operating system. |
|
|
Confirm the user input. |
|
Prompt the user for input. |
Show the instructions to authenticate the Kaggle API key. |
|
|
Authenticate the Kaggle API key. |
- |
|
- |
Classes#
- class sportslabkit.datasets.downloader.KaggleDownloader[source]#
Overview
Methods# Show the dataset info.
List the files in the dataset.
download(file_name, path, force, quiet, unzip)Download the dataset from Kaggle.
Members
- download(file_name: str | None = None, path: PathLike | None = _module_path, force: bool = False, quiet: bool = False, unzip: bool = True) None[source]#
Download the dataset from Kaggle.
- Parameters:
file_name (Optional[str], optional) – Name of the file to download. If None, downloads all data. Defaults to None.
path (Optional[PathLike], optional) – Path to download the data to. If None, downloads to soccertrack/datasets/data. Defaults to None.
force (bool, optional) – If True, overwrites the existing file. Defaults to False.
quiet (bool, optional) – If True, suppresses the output. Defaults to True.
unzip (bool, optional) – If True, unzips the file. Defaults to True.
Functions#
- sportslabkit.datasets.downloader.get_platform() str[source]#
Get the platform of the current operating system.
- Returns:
The platform of the current operating system, one of “linux”, “mac”, “windows”, “other”.
- Return type:
- sportslabkit.datasets.downloader.prompt(msg: str, type: Any) Any[source]#
Prompt the user for input.