No project description provided
Project description
Kaggle Dataset Downloader
Overview
This package provides a convenient function to download and extract datasets from Kaggle using the Kaggle API.
Installation
Ensure that you have the Kaggle API set up on your system. If you haven't configured it yet, follow these steps:
- Create an account on Kaggle.
- Go to "Account" settings and generate a new API token.
- Place the downloaded
kaggle.jsonfile in~/.kaggle/(Linux/Mac) or%USERPROFILE%\.kaggle\(Windows). - Install the Kaggle API package if you haven't already:
pip install kaggle
Usage
This package provides a function to download and extract a specific file from a Kaggle dataset.
Function: download_and_extract_kaggle_dataset
Parameters:
dataset(str): The Kaggle dataset identifier (e.g.,'zillow/zecon').file_name(str): The specific file within the dataset to download.path(str, optional): Directory where the file should be saved. Defaults to'./'.force(bool, optional): Whether to force the download if the file already exists. Defaults toFalse.quiet(bool, optional): Whether to suppress output. Defaults toTrue.licenses(list, optional): List of accepted licenses. Defaults to[].delete_after_download(bool, optional): Whether to delete the ZIP file after extraction. Defaults toTrue.
Example Usage:
download_and_extract_kaggle_dataset('aiaiaidavid/the-big-dataset-of-ultra-marathon-running','TWO_CENTURIES_OF_UM_RACES.csv')
License
This project is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kaggle_extractor-0.2.tar.gz.
File metadata
- Download URL: kaggle_extractor-0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e70cbe357095ccf1da8928edcaff33334423c85bdf5f5f9791ffc7ed4d5fd120
|
|
| MD5 |
66b780c9df559c9ad4da3d8d27958581
|
|
| BLAKE2b-256 |
c7d6041b7b8202021e6ee0c10ece67e6e7b27802a81a00fe20d75db7ce65257e
|
File details
Details for the file kaggle_extractor-0.2-py3-none-any.whl.
File metadata
- Download URL: kaggle_extractor-0.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b89e4bdc7565d59dd2c7f55d7c129fd4e807a5167fb02ef90d7036dd1c8e5df
|
|
| MD5 |
4a5af52bfae4325f5ade1c87fe6b6509
|
|
| BLAKE2b-256 |
7179a995bba254e9287bc5b8b12b185cd0231137a6b5f6a78faf8c49cf7f23ce
|