Skip to content

Add list --json with Hub references and content hashes - #72

Open
reacher-z wants to merge 1 commit into
mainfrom
feat/list-json
Open

reacher-z wants to merge 1 commit into
mainfrom
feat/list-json

Conversation

@reacher-z

Copy link
Copy Markdown
Collaborator

Scripts that pin tasks, for example to fetch an exact digest with harbor download or to compare a mirror, had to read the release index out of the installed package. websitebench list --json prints each task's name, Harbor Hub reference, Hugging Face path, content hash and file count:

[
 {
  "name": "1password-web",
  "hub_reference": "websitebench/1password-web@sha256:683a2b1447e9dfa3c446f513512d26018a4aaab9b8f274db799e731cb8607363",
  "hf_path": "tasks/1password-web",
  "content_hash": "683a2b1447e9dfa3c446f513512d26018a4aaab9b8f274db799e731cb8607363",
  "file_count": 366
 },
 ...
]

docs/pypi.md documents the flag.

Tests

test_list_json_describes_every_task parses the output and checks it against the index.

  • uv run python -m unittest discover -s tests
  • uv run ruff check scripts src tests
  • uv run ruff format --check scripts src tests

Scripts that pin tasks, for example to fetch an exact digest with
harbor download or to compare a mirror, had to read the release index out
of the installed package. list --json prints each task's name, Harbor Hub
reference, Hugging Face path, content hash and file count.
@reacher-z reacher-z added enhancement New feature or request cli The websitebench command and download path labels Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli The websitebench command and download path enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant