peal.data.tabular_datasets.setup_kaggle_api¶
- peal.data.tabular_datasets.setup_kaggle_api()[source]¶
Helper to ensure Kaggle API is authenticated, prompting the user if necessary.
If
~/.kaggle/kaggle.jsondoes not exist the username and key are read from stdin and written there with mode0o600.- Returns:
An authenticated API client.
- Return type:
kaggle.api.kaggle_api_extended.KaggleApi