ROVI Data Hub Vendor CLI
Command-line client for vendor and system operations against the ROVI Data Hub API.
The CLI lets you:
- manage vendor API tokens (admin operations),
- create/renew/delete system JWTs,
- upload metadata, files, ONNX models, and Grafana dashboards to ingestion endpoints,
- inspect active configuration loaded from environment files.
Requirements
- Python 3.11+
uv(recommended) or another Python environment manager- network access to the ROVI Data Hub API
Install
Option 1: with uv (recommended)
uv sync
Run commands with:
uv run rovidh --help
Option 2: with pip
python -m venv .venv
source .venv/bin/activate
pip install -e .
rovidh --help
Configuration
The app uses environment-based configuration and looks for values in this order (if present):
config/.env.default.env.defaultconfig.env.env
You can also pass values directly via CLI options.
Common variables
| Variable | Required For | Description |
|---|---|---|
ROVI_API |
all commands | Base API endpoint (default: https://rovidatahub.ornl.gov/api) |
VERIFY_SSL |
all commands | SSL verification toggle (true/false) |
USE_SYSTEM_TRUST |
all commands | Augment the standard certificate bundle with the operating system certificate store (true/false, default: true) |
ADMIN_KEY |
admin commands |
Admin access token |
VENDOR_NAME |
admin commands |
Vendor name for token operations |
VENDOR_ID |
system commands |
Vendor identifier |
VENDOR_KEY |
system commands |
Vendor key used as access-token header |
SYSTEM_NAME |
system commands |
System name |
SYSTEM_JWT |
system + upload commands |
System JWT bearer token |
Example .env:
ROVI_API=https://rovidatahub.ornl.gov/api
VERIFY_SSL=true
USE_SYSTEM_TRUST=true
ADMIN_KEY=...
VENDOR_NAME=example-vendor
VENDOR_ID=...
VENDOR_KEY=...
SYSTEM_NAME=test-system
SYSTEM_JWT=...
Command Groups
Top-level help:
uv run rovidh --help
config
Show active resolved config:
uv run rovidh config show
admin
Create vendor token:
uv run rovidh admin new
Delete vendor token:
uv run rovidh admin delete
system
Check API connectivity, TLS verification, and the resolved connection settings without creating or changing remote resources:
uv run rovidh system health
This command calls the unauthenticated GET /metrics endpoint. It does not
validate vendor credentials or system JWTs.
Create system JWT (also saves SYSTEM_NAME, VENDOR_ID, and SYSTEM_JWT into .env):
uv run rovidh system new
Renew current system JWT (updates SYSTEM_JWT in .env):
uv run rovidh system renew
Delete system JWT:
uv run rovidh system delete
upload
Upload metadata JSON file:
uv run rovidh upload metadata ./metadata.json
Upload single data file:
uv run rovidh upload file ./payload.json
Upload ONNX model:
uv run rovidh upload model ./model.onnx
Upload Grafana dashboard JSON:
uv run rovidh upload dashboard ./dashboard.json
Upload multiple files:
uv run rovidh upload files ./a.json ./b.json ./c.json
Upload all files in a directory:
uv run rovidh upload directory ./batch
API Endpoints Used
The CLI calls these API paths relative to ROVI_API:
POST create_token/{vendor_name}POST delete_token/{vendor_name}POST create_jwt/{vendor_id}/{system_name}POST renew_jwtPOST delete_jwt/{vendor_id}/{system_name}GET metricsPOST upload-metadata/POST upload-file/POST upload-model/POST upload-dashboard/POST upload-batch/
Development
Install editable dependencies and run commands through uv:
uv sync
uv run rovidh --help
Run tests:
uv run pytest
Upload tests read openapi.json from the repository root when it is present.
That file is local-only and is not required to be committed; OpenAPI-backed
tests skip with a clear message if the file is absent.
Security Notes
- Do not commit
.envwith live credentials. - Rotate
ADMIN_KEY, vendor keys, and JWTs regularly. - Keep
VERIFY_SSL=trueexcept in controlled local testing. USE_SYSTEM_TRUSTdefaults totrue, augmenting the standard Requests certificate bundle with certificates trusted by the operating system (such as a lab-managed macOS Keychain HTTPS-inspection root). It affects only therovidhprocess; it neither installs nor bundles organization certificates.--no-verify-sslbypasses system trust. Do not combine it with an explicit--use-system-trust; the CLI rejects that conflicting configuration.
Metadata
Release files for rovidh 0.1.2
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 |
|---|---|---|---|---|
| rovidh-0.1.2.tar.gz | 45.9 kB | Without provenance | Details for rovidh-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rovidh-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for rovidh-0.1.2-py3-none-any.whl |
Total release size: 54.7 kB
Release files / rovidh-0.1.2.tar.gz
| Download URL | rovidh-0.1.2.tar.gz |
|---|---|
| Size | 45.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
185bbe855d6316e36dc2259b7313313b5c250e08a7d8fffe60892227881b2500
|
|
BLAKE2b-256 checksum How to use checksums |
92b4ad60595a3fc0564ae2545eb75a9eee0a1d9c1aed071638855177d08cc5b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / rovidh-0.1.2-py3-none-any.whl
| Download URL | rovidh-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1560a5ee82a6fb7cd69408d2dba7a8dc606c38d318d0862d2cd005ea589e5963
|
|
BLAKE2b-256 checksum How to use checksums |
3acc4fd3a9c058ec813c55d29df5353f8f68e5175f4d61adea561e50c927b465
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Security for rovidh 0.1.2
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.