| Crates.io | metabase-api-rs |
| lib.rs | metabase-api-rs |
| version | 0.1.0-beta.3 |
| created_at | 2025-08-09 10:52:18.86037+00 |
| updated_at | 2025-08-10 06:44:21.40142+00 |
| description | A simplified Rust client for the Metabase API (Beta release - feature complete) |
| homepage | https://crates.io/crates/metabase-api-rs |
| repository | https://github.com/daisuke8000/metabase-api-rs |
| max_upload_size | |
| id | 1787834 |
| size | 729,763 |
⚠️ Beta Release - API may change. Production ready with no known security vulnerabilities.
A simplified Rust client for the Metabase API.
[dependencies]
metabase-api-rs = "0.1.0-beta.3"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time"] }
serde_json = "1.0"
use metabase_api_rs::{ClientBuilder, api::Credentials, Result};
use std::time::Duration;
#[tokio::main]
async fn main() -> Result<()> {
// Create and authenticate client
let mut client = ClientBuilder::new("https://metabase.example.com")
.timeout(Duration::from_secs(30))
.build()?;
client.authenticate(Credentials::email_password(
"user@example.com",
"password"
)).await?;
// Get a card
let card = client.get_card(123).await?;
println!("Card: {}", card.name);
Ok(())
}
| Feature | Description |
|---|---|
cache |
Enable in-memory LRU caching |
performance |
Performance optimizations |
query-builder |
MBQL query builder |
full |
Enable all features |
See working examples in the examples/ directory or on docs.rs.
Full API documentation is available on docs.rs.
Licensed under either of
at your option.