{"id":23545509,"url":"https://github.com/bh2smith/duners","last_synced_at":"2025-04-24T03:13:43.708Z","repository":{"id":65082837,"uuid":"581755945","full_name":"bh2smith/duners","owner":"bh2smith","description":"A rust library for interacting with Dune Analytics' officially supported API service.","archived":false,"fork":false,"pushed_at":"2024-04-07T20:20:15.000Z","size":43,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T03:13:37.846Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bh2smith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-12-24T07:49:50.000Z","updated_at":"2025-01-11T03:28:57.000Z","dependencies_parsed_at":"2024-04-07T20:40:45.623Z","dependency_job_id":"167791ea-dfeb-48f1-8694-b4f5e3366cd1","html_url":"https://github.com/bh2smith/duners","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"ffdf6c1569400558646238cd600185b616da9cd2"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2Fduners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2Fduners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2Fduners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2Fduners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bh2smith","download_url":"https://codeload.github.com/bh2smith/duners/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250552075,"owners_count":21449165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-26T08:18:38.457Z","updated_at":"2025-04-24T03:13:43.687Z","avatar_url":"https://github.com/bh2smith.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# duners\n\nA convenience library for executing queries and recovering results from Dune Analytics API.\n\n## Installation and Usage\n\n```shell\ncargo add duners\n```\n\n```rust\nuse chrono::{DateTime, Utc};\nuse duners::{client::DuneClient, dateutil::datetime_from_str};\nuse serde::Deserialize;\n\n// User must declare the expected query return fields and types!\n#[derive(Deserialize, Debug, PartialEq)]\nstruct ResultStruct {\n    text_field: String,\n    number_field: f64,\n    #[serde(deserialize_with = \"datetime_from_str\")]\n    date_field: DateTime\u003cUtc\u003e,\n    list_field: String,\n}\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), DuneRequestError\u003e {\n    let dune = DuneClient::from_env();\n    let results = dune.refresh::\u003cResultStruct\u003e(1215383, None, None).await?;\n    println!(\"{:?}\", results.get_rows());\n    Ok(())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbh2smith%2Fduners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbh2smith%2Fduners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbh2smith%2Fduners/lists"}