idaholab/Malcolm

script to gather GitHub API metrics for Malcolm downloads

Closed this issue · 1 comments

Create a script to gather GitHub API metrics for Malcolm downloads.

  • artifact downloads
  • container image pulls
  • ???

The convenience script github-download-counts is now hosted on PyPi.

Installation:

  • python3 -m pip install -U github-download-counts

Usage (see readme).

Example:

$ github-download-counts -r idaholab/Malcolm cisagov/Malcolm -a '^\w+.+\.iso\.01$' '^malcolm_.*\.tar\.gz$' --release 'v24\.09\.0' --image '^malcolm/nginx-proxy$' --image-tag '^24\.09\.0' 
{
  "release_assets": {
    "idaholab/^\\w+.+\\.iso\\.01$": 106,
    "idaholab/^malcolm_.*\\.tar\\.gz$": 22,
    "cisagov/^\\w+.+\\.iso\\.01$": 68,
    "cisagov/^malcolm_.*\\.tar\\.gz$": 20,
    "total": 216
  },
  "image_pulls": {
    "idaholab/malcolm/nginx-proxy:24.09.0": 239,
    "idaholab/malcolm/nginx-proxy:24.09.0-arm64": 9,
    "total": 248
  }
}