DataHub CLI
DataHub is a terminal tool for finding models and datasets, estimating which models fit your hardware, and tracking local data. It indexes local files in SQLite, caches schemas, and can find project references to catalog items.
Install
Once the package is published on PyPI, install it with either tool manager or try it without a persistent installation.
uv tool install datahub-cli
uvx datahub-cli
pip install datahub-cli
To install from a checkout before the first release, run uv tool install . in that directory. DataHub requires Python 3.11 or newer. The installed commands are datahub and dhub.
Optional extras add Parquet and ONNX inspection or the Kaggle CLI. For example, use pip install 'datahub-cli[parquet,onnx]' or uv tool install 'datahub-cli[kaggle]'.
Quickstart
datahub init
datahub
datahub sm
datahub sm "qwen" --source ollama --fits -n 10
datahub sd --use-case finance -n 5
datahub scan
datahub ls
datahub info category/dataset-name --json
Use an ID from datahub ls with datahub info or datahub path. For model estimates on another memory budget, run datahub --memory 16G --max-context 4096 sm --fits. Estimates depend on the runtime and architecture. A quantization plan describes possible configurations. A pull downloads the provider's published artifact.
Ollama search uses the public model catalog without credentials. The selected size and pull tag appear in the TUI inspector and JSON results. DataHub estimates Ollama model sizes at Q4 and embeddings at FP16 when the catalog does not report weights or quantization. Ollama downloads need the ollama executable and its local service. Ollama manages the weights, and DataHub records a reference. Setting OLLAMADB_API_KEY enables an API fallback if the public search fails. Hugging Face can use HF_TOKEN or an existing login for gated downloads. Kaggle needs its CLI and credentials.
Use --one-page for a JSON page with a next_cursor, then pass it to --cursor with the same filters. --sort newest orders Ollama results by recency.
| Key | Action |
|---|---|
1, 2, 3 |
Switch between Models, Datasets, and Local Catalog |
/ |
Focus the active tab’s search or filter input |
| ↑ / ↓ | Move between results or options in an open dropdown |
Tab / Shift+Tab |
Move between controls |
Enter in a search field |
Search and focus results |
Esc |
Close a dialog or return focus to results |
m |
Load another page |
p or Enter on a result |
Open the pull dialog |
c, v |
Mark a model and compare marked models |
x |
Open the seven-tier quantization plan |
q |
Quit |
Press Enter on a result to open its pull dialog. Use the arrow keys in the category dropdown and Tab to edit the fields. Enter on a text field submits the pull.
Both the CLI pull commands and the TUI show download and indexing status. Size, speed, and ETA appear when the provider exposes transfer totals. Downloads with unknown totals show activity until the provider reports completion.
Configuration
DataHub resolves each path from its CLI flag, environment variable, TOML setting, then default.
| Path | Flag | Environment | TOML | Default |
|---|---|---|---|---|
| Data and catalog | --data-root |
DATA_ROOT |
data_root |
~/data |
| Project scan root | --projects-root |
PROJECTS_ROOT |
projects_root |
Disabled |
The config file lives at ~/.config/datahub/config.toml, under $XDG_CONFIG_HOME/datahub if set, or under %APPDATA%\datahub on Windows. Values can use ~ for the home directory.
datahub init --data-root ~/data --projects-root ~/work --save-config
datahub scan --deps
init creates the standard directories and database and prints optional shell settings for DATA_ROOT, HF_HOME, TORCH_HOME, and OLLAMA_MODELS. Catalog commands also initialize a missing database on first use. Set a project root before running a dependency scan.
Python API
from datahub import detect_hardware, evaluate_model, get_dataset_dir, get_model_path
dataset = get_dataset_dir("category/dataset-name")
checkpoint = get_model_path("weights/my-model")
hardware = detect_hardware(memory="16G")
fit = evaluate_model("example-7B", hardware, max_context=4096)
print(fit.quant, fit.total_gb, fit.verdict)
The path helpers resolve indexed IDs or unique names and raise KeyError if the item is missing or ambiguous. Each accepts a data_root override.
Development
uv run ruff check
uv run pytest
uv build
Metadata
Release files for datahub-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| datahub_cli-0.2.0.tar.gz | 122.6 kB | Without provenance | Details for datahub_cli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datahub_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for datahub_cli-0.2.0-py3-none-any.whl |
Total release size: 171.7 kB
Release files / datahub_cli-0.2.0.tar.gz
| Download URL | datahub_cli-0.2.0.tar.gz |
|---|---|
| Size | 122.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80e8338a96196cdcd3bbbe679080ac19153b4845d10cc675a66c486945440cbe
|
|
BLAKE2b-256 checksum How to use checksums |
350928f0714960ec70cfcb076bf912ad73d8b250e0a81a4a945219908b2923f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / datahub_cli-0.2.0-py3-none-any.whl
| Download URL | datahub_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 49.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ffb05609f1af3ccf20e44b1798a080342bbd30c0e098f046fa8cc18502a95e4
|
|
BLAKE2b-256 checksum How to use checksums |
c236e239cdf2c08b0e6bb43ca57c3da03a3c6d5f824b32e51bf53045cfef27be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for datahub-cli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.