$npx skillfedfor your agent

kagglehub

Access Kaggle resources anywhere

Worth itPyPI InternetReleased Jun 20262.5M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — kagglehub-1.0.2-py3-none-any.whl
v1.0.2 · released 2026-06-09 · Python >=3.10 · 5 runtime deps: kagglesdk, packaging, pyyaml, requests, tqdm

Yes. kagglehub is actively maintained, has low install friction, carries a permissive Apache 2.0 license, and no known vulnerabilities. Install it if you regularly work with Kaggle datasets or models and want to automate downloads in Python code. The native Kaggle notebook integration and multi-format dataset loading (pandas, Polars, Hugging Face) make it a natural choice for data science workflows.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Authentication requires a Kaggle account and API token (generated at https://www.kaggle.com/settings/api).
  • Low friction installation with five runtime dependencies (kagglesdk, packaging, pyyaml, requests, tqdm).

License · maintenance · safety

permissive license (permissive) — Licensed under Apache License 2.0 (permissive). You can use, modify, and distribute the package freely in commercial and private projects, provided you include the license notice and document any changes.

last release 2026-06-09 (66 days) · last repo commit 2026-08-05 · 515 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,536,225 downloads/mo, #3,014 on PyPI

Verify before relying

pip install kagglehub

import kagglehub

# Authenticate (required for private/consent resources)
kagglehub.login()

# Download a model
kagglehub.model_download('google/bert/tensorFlow2/answer-equivalence-bem')

# Download a dataset
kagglehub.dataset_download('dataset-owner/dataset-name')
  • Whether optional dependencies (pandas, hugging-face, polars) are needed for specific use cases or if core functionality works without them
  • Performance characteristics when downloading large models or datasets outside the Kaggle notebook environment
  • Caching behavior and storage requirements for repeated downloads
Same gist for agents: .md · .json

What it is and what it does

kagglehub is a Python client library that simplifies downloading and uploading Kaggle resources—datasets, models, and notebook outputs—directly from your code. It wraps the Kaggle API and provides a straightforward interface for authentication and resource management.

The library behaves differently depending on where it runs: inside a Kaggle notebook, resources are automatically attached and served from Kaggle's shared cache; outside a notebook, files are downloaded to a local cache folder. It supports multiple authentication methods (API token, environment variable, config file, Google Colab secrets) and can load datasets directly into pandas, Hugging Face, or Polars objects via optional adapters. It also handles model uploads with versioning, licensing, and file-ignore patterns.

Use it for

  • Download pre-trained models from Kaggle to use in local ML projects without manual browser downloads
  • Load Kaggle competition datasets directly into pandas DataFrames or Polars for analysis in Jupyter notebooks
  • Automate dataset and model retrieval in CI/CD pipelines or scheduled data processing workflows
  • Upload trained models to Kaggle with version notes and licensing information for sharing with the community
  • Access private or consent-gated Kaggle resources programmatically after authentication

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

kagglehub is actively maintained, has low install friction, carries a permissive Apache 2.0 license, and no known vulnerabilities. Install it if you regularly work with Kaggle datasets or models and want to automate downloads in Python code. The native Kaggle notebook integration and multi-format dataset loading (pandas, Polars, Hugging Face) make it a natural choice for data science workflows.

Install

kagglehub on PyPI

Before you install

Low friction installation with five runtime dependencies (kagglesdk, packaging, pyyaml, requests, tqdm). Repository is actively maintained with recent commits and moderate GitHub presence (515 stars). Requires Python 3.10 or later.

Requires Python 3.10 or later. Authentication requires a Kaggle account and API token (generated at https://www.kaggle.com/settings/api).

License in practice

Licensed under Apache License 2.0 (permissive). You can use, modify, and distribute the package freely in commercial and private projects, provided you include the license notice and document any changes.

Quickstart

pip install kagglehub

import kagglehub

# Authenticate (required for private/consent resources)
kagglehub.login()

# Download a model
kagglehub.model_download('google/bert/tensorFlow2/answer-equivalence-bem')

# Download a dataset
kagglehub.dataset_download('dataset-owner/dataset-name')

Verify before relying

  • Whether optional dependencies (pandas, hugging-face, polars) are needed for specific use cases or if core functionality works without them
  • Performance characteristics when downloading large models or datasets outside the Kaggle notebook environment
  • Caching behavior and storage requirements for repeated downloads

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
kagglesdkpackagingpyyamlrequeststqdm
MaintenanceActively maintained 66 days since the last release
Last repo commit
First released
Downloads2,536,225 / month, #3,014 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Evidence: kagglehub-1.0.2-py3-none-any.whl

Tags

Capabilities
kaggle dataset download pythonkaggle model api clientaccess kaggle resources programmaticallykaggle data loaderkaggle notebook integrationdownload kaggle models datasetskaggle api python library
Topics
kaggle-integrationdataset-downloadmodel-management
PyPI keywords
APIKaggle

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “kaggle dataset download python”

  • kagglehubkagglehub provides Python access to Kaggle datasets, models, and…
  • kaggleCommand-line interface to interact with Kaggle—download competition…
  • kagglesdkKagglesdk provides Python bindings to Kaggle's external-facing APIs,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Internet packages

botocore Worth it
PyPI · Internet · released Aug 2026

Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.

Install it if you need programmatic access to AWS services.

permissive licensepure Python · 3.10+
1.5Bdownloads / mo
aiobotocore Worth it
PyPI · Internet · released Aug 2026

Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.

Install it if you need to call AWS services from async Python code; it is the standard way to do so.

Apache-2.0pure Python · 3.10+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
filelock Worth it
PyPI · Libraries · released Aug 2026

Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.

MITpure Python · 3.10+
717.1Mdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
googleapis-common-protos Worth it
PyPI · Internet · released Aug 2026

Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.

Apache-2.0pure Python · 3.10+
513.7Mdownloads / mo

See also athina-client · kaggle · kagglesdk · huggingface-hub · datasets · keras-hub · hf · spaces · wbdata · kedro-datasets