Skip to main content

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:

  1. Create an account on Kaggle.
  2. Go to "Account" settings and generate a new API token.
  3. Place the downloaded kaggle.json file in ~/.kaggle/ (Linux/Mac) or %USERPROFILE%\.kaggle\ (Windows).
  4. 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 to False.
  • quiet (bool, optional): Whether to suppress output. Defaults to True.
  • licenses (list, optional): List of accepted licenses. Defaults to [].
  • delete_after_download (bool, optional): Whether to delete the ZIP file after extraction. Defaults to True.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaggle_extractor-0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaggle_extractor-0.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for kaggle_extractor-0.2.tar.gz
Algorithm Hash digest
SHA256 e70cbe357095ccf1da8928edcaff33334423c85bdf5f5f9791ffc7ed4d5fd120
MD5 66b780c9df559c9ad4da3d8d27958581
BLAKE2b-256 c7d6041b7b8202021e6ee0c10ece67e6e7b27802a81a00fe20d75db7ce65257e

See more details on using hashes here.

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

Hashes for kaggle_extractor-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b89e4bdc7565d59dd2c7f55d7c129fd4e807a5167fb02ef90d7036dd1c8e5df
MD5 4a5af52bfae4325f5ade1c87fe6b6509
BLAKE2b-256 7179a995bba254e9287bc5b8b12b185cd0231137a6b5f6a78faf8c49cf7f23ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page