/kaggle-rs

unofficial rust bindings for the kaggle api

Primary LanguageRustApache License 2.0Apache-2.0

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