bmcli — command line tool for benchmark analysis data (metrics, trajectory, reports, artifacts).
Project description
benchloop-client (bmcli)
Command line tool for fetching and downloading benchmark analysis data
(run metrics, trajectory, pre-analysis reports, task/job lists, and artifacts)
by group_id / job_id.
PyPI package name is
benchloop_client; the installed command isbmcli.
Install package
pip install benchloop_client
bmcli --api-key $BENCH_LOOP_API_KEY overview get -j $JOB_ID
bmcli --api-key $BENCH_LOOP_API_KEY metrics get -j $JOB_ID
# Option 2: config ~/.benchloop/config.toml by cli, and run bmcli without --api-key option:
bmcli config set --api-key $BENCHLOOP_API_KEY --host https://benchmark-analysis.alibaba-inc.com
bmcli overview get -j $JOB_ID
bmcli metrics get -j $JOB_ID
Install and run from source
# with uv (recommended)
uv sync
uv run bmcli --help
# or editable install with pip
python -m venv .venv && source .venv/bin/activate
pip install -e .
bmcli --help
Auth & config
Authentication uses a personal api key sent as the X-API-Key header.
Precedence: CLI flag > env var > ~/.benchloop/config.toml > default.
- Env:
BENCHLOOP_API_KEY(orBENCHMARK_API_KEY),BENCHLOOP_HOST,BENCHLOOP_OUTPUT_DIR - Default host:
https://benchmark-analysis.alibaba-inc.com
bmcli config set --api-key $BENCHLOOP_API_KEY --host https://benchmark-analysis.alibaba-inc.com
Usage
Two-segment bmcli <resource> <action> form. get prints a JSON array to
stdout (pipeable to jq); download writes the standard file layout.
bmcli metrics get -j J123 | jq '.[0]'
bmcli metrics download -g G1 --scope all -o ./out
bmcli trajectory download -g G1,G2 -o ./out
bmcli report download -j J123 --agent all
bmcli jobs get -g G1 --all # get supports --all (auto-paginate)
bmcli jobs download -g G1 # download is always full
bmcli artifacts download -g G1 -o ./out
bmcli pull -g G1 --with metrics,trajectory,jobs,artifacts -o ./out
IDs accept repeated flags, comma-separated values, and - to read from stdin.
-g and -j are mutually exclusive in a single command.
Exit codes
| code | meaning |
|---|---|
| 0 | all success |
| 1 | partial failure (some ids failed) |
| 2 | usage / parameter error |
| 3 | auth failure (HTTP 401) |
| 4 | network / timeout |
stdout carries data only; logs and progress go to stderr. --quiet suppresses
non-error logs, --verbose adds debug logs.
Release new package
uv build
twine check dist/benchloop_client-0.1.7-py3-none-any.whl
twine upload dist/benchloop_client-0.1.7-py3-none-any.whl --verbose
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file benchloop_client-0.1.7-py3-none-any.whl.
File metadata
- Download URL: benchloop_client-0.1.7-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c10d156d908693f1e087815c94ea64aa9b436f767cd8e054a72ec49bb78be582
|
|
| MD5 |
1c0b9f88d74fbbb52facce298dffedb0
|
|
| BLAKE2b-256 |
f5bfec1ebe1ea0a1560724fd39a821f59659f8d13129321f63acd99f5e511691
|