Add remote HF Space support to CLI#445
Merged
Merged
Conversation
Allow all `list` and `get` CLI commands to query a remote HF Space instead of local data by passing `--space <space_id_or_url>`. - Add `trackio/remote_client.py` wrapping gradio_client for remote calls - Add `--space` and `--hf-token` flags to CLI - Add missing read API endpoints to UI (system metrics, snapshot, logs) - Extend `get_metric_values` endpoint with optional filtering params - Update CLI docs and agent skills with remote Space usage Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
🪼 branch checks and previews
|
Contributor
🦄 change detectedThis Pull Request includes changes to the following packages.
|
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
|
Going to merge this in as it's just CLI changes |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--spaceflag to alllistandgetCLI commands, allowing users to query a remote HF Space by ID (user/space) or URL (https://user-space.hf.space)--hf-tokenflag for private Space accesstrackio/remote_client.py— thin wrapper aroundgradio_client.Clientwith error handlingget_system_metrics_for_run,get_system_logs,get_snapshot,get_logs) and extendget_metric_valueswith optional filtering paramsdocs/source/cli_commands.md) and agent skills (.agents/skills/trackio/) with remote Space usagetests/e2e-spaces/test_cli_remote.py)Examples:
List projects on a remote Space
List runs (JSON output)
$ trackio list runs --project nanogpt --space abidlabs/nanogpt-experiments --json {"project": "nanogpt", "runs": ["run-1", "run-2", "run-3"]}Get metric values