#sheet #google #interact #date-time #builder #google-sheet #khawk

khawk_sheets

API to interact with a google sheet

5 releases

0.2.0 Nov 20, 2024
0.1.3 Oct 11, 2024
0.1.2 Oct 8, 2024
0.1.1 Oct 8, 2024
0.1.0 Oct 8, 2024

#8 in #sheet

Download history 478/week @ 2024-10-07 23/week @ 2024-10-14 153/week @ 2024-11-18

153 downloads per month

MIT license

14KB
169 lines

Google Sheets API

Usage

use khawk_sheets::{Buildable, Builder, DateTimeRenderOption, GoogleSheet, MajorDimension};

fn main() {
    let sheet =
        GoogleSheet::builder()
            .with_sheet_id(&sheet_id)
            .with_key(&api_key)
            .with_major_dimension(MajorDimension::Rows)
            .with_date_time_render_option(DateTimeRenderOption::FormattedString)
            .build()
            .await
            .unwrap();

    let my_tab = sheet.fetch_sheet("My Sheet Name").await.unwrap();    
}

Dependencies

~7–18MB
~233K SLoC