Expand description
Fast dataset discovery and archive helpers for thesa and other Rust tools.
Made by Trevor Knott for Knott Dynamics.
BaseForge normalizes dataset targets, queries public dataset catalogs, and archives dataset files with bounded concurrent downloads. The first-class provider is Hugging Face Datasets; Zenodo is included for DOI/record-backed research datasets.
assert_eq!(
baseforge::parse_dataset_target_for_provider(
"https://huggingface.co/datasets/squad",
baseforge::DatasetProvider::Hf,
)
.unwrap(),
baseforge::DatasetTarget::Dataset("squad".to_string())
);
assert_eq!(
baseforge::DatasetProvider::from_slug("hugging-face"),
Some(baseforge::DatasetProvider::Hf)
);Structs§
- Archive
Failure - Failed dataset or file archive entry.
- Archive
Options - Options controlling archive writes.
- Archive
Progress - Snapshot emitted during dataset archive downloads.
- Archive
Progress File - File currently being archived by a worker.
- Archive
Summary - Summary returned after an archive run.
- Archived
File - One archived or skipped file.
- Base
Forge - Blocking dataset discovery and archive client.
- Dataset
Details - Full dataset metadata plus files to archive.
- Dataset
File - One downloadable file in a dataset archive.
- Dataset
Summary - Lightweight dataset metadata returned by discovery calls.
Enums§
- Archive
Progress Phase - Phase reported by dataset archive progress snapshots.
- Base
Forge Error - Errors returned by BaseForge.
- Dataset
Provider - Supported dataset providers.
- Dataset
Target - Normalized dataset target requested by a user or CLI.
Functions§
- parse_
dataset_ target - Parse a Hugging Face-style dataset target.
- parse_
dataset_ target_ for_ provider - Parse a dataset target using provider-specific rules.
Type Aliases§
- Result
- Result type used by BaseForge APIs.