#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

#78 in Science

Download history 8/week @ 2024-12-10 107/week @ 2025-01-28 23/week @ 2025-02-04

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–31MB
~462K SLoC