#dataset #data-science

kaggle

Unofficial rust implementation of the kaggle api

4 releases (stable)

2.0.0 Feb 1, 2025
1.0.3 Mar 23, 2020
1.0.2 Mar 22, 2020
0.1.0 Mar 22, 2020

#80 in Science

Download history 6/week @ 2024-12-07 2/week @ 2024-12-14 125/week @ 2025-02-01 5/week @ 2025-02-08

130 downloads per month

Apache-2.0

135KB
3.5K SLoC

kaggle-rs - accessing kaggle.com the rust way

Build Status Crates.io Documentation

Unofficial rust implementation of the kaggle-api.

Example

Download the newest version of a complete dataset

use kaggle::KaggleApiClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let kaggle = KaggleApiClient::builder().build()?;
    let dataset = kaggle
        .dataset_download_all_files("unanimad/dataisbeautiful", None, None)
        .await?;
    kaggle::archive::unzip(dataset, ".")?;
    Ok(())
}

Documentation

Full docs available at docs.rs

License

The Kaggle API is released under the Apache License, Version 2.0

Dependencies

~16–30MB
~458K SLoC