socrata-sdk

Crates.iosocrata-sdk
lib.rssocrata-sdk
version0.1.0
created_at2026-01-17 15:13:14.345092+00
updated_at2026-01-17 15:13:14.345092+00
descriptionA Rust client for the Socrata Open Data API (SODA)
homepagehttps://github.com/iberi22/socrata-rs
repositoryhttps://github.com/iberi22/socrata-rs
max_upload_size
id2050610
size51,742
Belalcazar (iberi22)

documentation

https://docs.rs/socrata-sdk

README

Socrata SDK (Rust)

A high-performance, asynchronous Rust client for the Socrata Open Data API (SODA).

Features

  • Async/Await: Built on top of reqwest and tokio.
  • Generic: Works with any data structure that implements serde::Deserialize.
  • Type-Safe: Leverage Rust's type system to ensure data integrity.
  • Minimal Dependencies: Optimized for performance and small binary size.

Usage

use socrata_sdk::SocrataClient;
use serde::Deserialize;

#[derive(Deserialize, Debug)]
struct MyData {
    id: String,
    // ...
}

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let client = SocrataClient::new("https://www.datos.gov.co", Some("MY_APP_TOKEN".to_string()));
    let results: Vec<MyData> = client.fetch("abcd-1234", 10, 0, None, None).await?;
    println!("{:?}", results);
    Ok(())
}

License

MIT

Commit count: 4

cargo fmt