Skip to main content

data_gov/
lib.rs

1//! High-level bindings for the U.S. [data.gov](https://data.gov) catalog.
2//!
3//! The `data-gov` crate bundles an ergonomic async client, CLI-friendly utilities,
4//! and configuration helpers on top of the lower-level [`data_gov_catalog`]
5//! crate. It is designed for read-only exploration workflows such as search,
6//! dataset inspection, and downloading published distributions. The main entry
7//! point is [`DataGovClient`], which requires a Tokio runtime.
8
9/// Base URL for the public data.gov Catalog API.
10///
11/// Provided for convenience when constructing a
12/// [`data_gov_catalog::Configuration`] directly.
13pub const DATA_GOV_BASE_URL: &str = "https://catalog.data.gov";
14
15// Re-export the catalog crate for direct access
16pub use data_gov_catalog as catalog;
17
18// Public modules
19pub mod client;
20pub mod config;
21pub mod error;
22pub mod ui;
23pub mod util;
24
25// Re-export main types for convenience
26pub use client::DataGovClient;
27pub use config::{DataGovConfig, OperatingMode};
28pub use error::{DataGovError, Result};
29pub use ui::{
30    DownloadBatch, DownloadFailed, DownloadFinished, DownloadProgress, DownloadStarted,
31    StatusReporter,
32};