Skip to main content

Open Demo App

Custom component that allows to import Kaggle datasets to Streamlit apps.

Kaggle is the world's largest data science community. It enables users to explore and analyze a wide variety of public datasets. This app demonstrates a simple KaggleDatasetConnection which was built by extending the built-in BaseConnection You can view the connection source code here.

While Kaggle offers datasets in different formats, this connector ONLY supports CSV files.

A user can connect to a Kaggle dataset by providing the dataset path and filename. The path is the part of the dataset URL after the domain name, the structure is following: username/dataset-name. For example, for the dataset https://www.kaggle.com/shivamb/netflix-shows, the path is shivamb/netflix-shows, and the file name is netflix_titles.csv.

Using this example, the code to connect to the dataset would look like this:

from st_kaggle_connector import KaggleDatasetConnection
import streamlit as st

conn = st.connection("kaggle_datasets", type=KaggleDatasetConnection)
df = conn.get(path='shivamb/netflix-shows', filename='netflix_titles.csv', ttl=3600)

KaggleDatasetConnection` class assumes that you have secrets set up in the following format:

[connections.kaggle_datasets]
 KAGGLE_USERNAME = "insert your Kaggle username"
 KAGGLE_KEY = "insert your Kaggle API key"

Metadata

Release files for st-kaggle-connector 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for st-kaggle-connector 0.1.3
File Size Uploaded Provenance Actions
st_kaggle_connector-0.1.3.tar.gz 2.7 kB Without provenance Details for st_kaggle_connector-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for st-kaggle-connector 0.1.3
File Interpreter ABI Platform Actions
st_kaggle_connector-0.1.3-py3-none-any.whl Python 3 none any Details for st_kaggle_connector-0.1.3-py3-none-any.whl

Total release size: 5.7 kB

Release files / st_kaggle_connector-0.1.3.tar.gz

Download URL st_kaggle_connector-0.1.3.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0b03c388c1bf4f8f0411e0c1ca58f143ed9d71375944b9454c20758a3bcf6243
BLAKE2b-256 checksum
How to use checksums
97bdd7285c6a40c6809f91ff3b54cb4f170938fa9543027dcdb0cd065977b11f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / st_kaggle_connector-0.1.3-py3-none-any.whl

Download URL st_kaggle_connector-0.1.3-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a23800daa54edaca76a7e6036772e0533dac60ae797f2cfca8014384e0ee5c1f
BLAKE2b-256 checksum
How to use checksums
9b06f8ad22e0e79cc7e084ea93f587d54624aa81dd36f4dd6b958072df67a2e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for st-kaggle-connector 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page