Skip to main content

Consumer CLI for the autoware-index registry

Project description

aw-index-cli

ci

aw-index-cli is the consumer CLI for the Autoware Index registry. It reads a distribution manifest (distributions/<rosdistro>.yaml) and composes a vcs2l .repos file you can vcs import into a workspace.

The registry is repository-keyed: each entry is one repository with exactly one ref and the packages it hosts.

Install

With pipx (recommended for an isolated CLI):

pipx install aw-index-cli   # first install
pipx upgrade aw-index-cli   # update to the latest release

Commands

  • compose — render a .repos file from a distribution.
  • check — gate a composed .repos against the registry and sweep history.
  • list — list registry packages with their latest validation status.

compose

Select what you need by package, repository, or tag — the distribution is fetched from GitHub by default, so no registry checkout is required.

# Recommended: compose just the packages you want.
aw-index-cli compose --rosdistro jazzy \
  --packages autoware_livox_tag_filter

# …or pull in whole repository entries by their registry key.
aw-index-cli compose --rosdistro jazzy \
  --repository autoware_livox_tag_filter

# Narrow by tag (filters can be combined; they are ANDed).
aw-index-cli compose --rosdistro jazzy --tags sensing perception

# Print to stdout instead of writing a file.
aw-index-cli compose --rosdistro jazzy \
  --packages autoware_livox_tag_filter --stdout

[!TIP] Omitting all of --packages, --repository, and --tags composes the entire distribution — supported, but usually you want to name what you consume.

Example output for compose --rosdistro jazzy --repository livox-tools (a monorepo entry hosting two registered packages):

# aw-index-cli 0.4.0
# source: autowarefoundation/autoware-index@main
# rosdistro: jazzy
# tags: all
# repository: livox-tools
# generated_at: 2026-06-11T12:00:00+00:00
# selected packages by repository:
#   livox-tools: autoware_livox_decoder, autoware_livox_tag_filter
# Generated file — re-run 'aw-index-cli compose …' to update; do not edit by hand.

repositories:
  livox-tools:
    type: git
    url: https://github.com/autowarefoundation/autoware_livox_tag_filter
    version: main

Less common sources — a local registry checkout, or a fork / specific git ref:

# Read from a local registry checkout instead of GitHub.
aw-index-cli compose --rosdistro jazzy \
  --packages autoware_livox_tag_filter \
  --registry-path /path/to/autoware-index

# Fetch the distribution from a fork at a specific branch/tag/sha.
aw-index-cli compose --rosdistro jazzy \
  --packages autoware_livox_tag_filter \
  --registry-repo me/autoware-index-fork --registry-ref dev

How entries are composed

  • Entry keys are registry repository keys — the directory vcs import clones into.
  • Filters are ANDed. An unknown --packages name or --repository key is a hard error, never a silent empty result.
  • A monorepo collapses to one entry at its single ref, however many of its packages match.
  • Each entry is pure vcs2ltype/url/version only. The selected package names live in the # selected packages by repository: header comment, not the YAML body.

[!NOTE] A clone may include unregistered sibling packages the index makes no claims about. To build only the packages you selected, pass their names to colcon:

colcon build --packages-up-to autoware_livox_tag_filter  # names from the header comment

Key options

  • --rosdistro (required): ROS distribution, e.g. jazzy.
  • --packages / --repository / --tags: selection filters.
  • --autoware: informational only — recorded in the header, not a ref selector.
  • --registry-path: read a local file or registry directory instead of GitHub.
  • --registry-repo / --registry-ref: GitHub source repo (default autowarefoundation/autoware-index) and git ref (default main).
  • --repo-root / --name / --output: where and under what name to write the .repos (default <repo-root>/repositories/autoware-index.repos).
  • --stdout: print instead of writing a file.
  • --no-timestamp: omit generated_at for byte-identical output.

[!IMPORTANT] There is no import command — pipe compose straight into vcs:

aw-index-cli compose --rosdistro jazzy --packages autoware_livox_tag_filter --stdout \
  | vcs import src

check

Verify a composed .repos is still current: every repository at the registry's ref, and each package passing its latest sweep — the registry's periodic build/test against the current Autoware release. Intended as a CI gate after vcs import.

# Auto-discovers ./autoware-index.repos or ./*/autoware-index.repos; rosdistro is
# read from the file's header. Exit code is the gate.
aw-index-cli check

# Or point at a specific file.
aw-index-cli check --repos repositories/autoware-index.repos --rosdistro jazzy

Per repository it reports ref drift, removal from the registry, each package's latest status (pass/fail/) and the Autoware version tested, and — for branch refs — whether the branch advanced past the last sweep.

  • Exit 0 — all pass, no drift.
  • Exit 1 — any failing validation, ref drift, or removed package (with --strict, also unvalidated packages or a branch that advanced since the sweep).
  • Exit 2 — could not run (bad/missing .repos, registry load error).

Options mirror compose, plus --data-ref (default data), --strict, and --format {table,json}.

[!NOTE] Without git on PATH the branch-drift check is silently skipped, so a green check isn't a complete guarantee.

list

Enumerate the packages registered for a distro with their latest sweep status — discovery plus a health readout, without composing anything.

aw-index-cli list --rosdistro jazzy
aw-index-cli list --rosdistro jazzy --tags sensing --format json

Accepts the same selection filters as compose. Exit 0 normally; with --strict, exit 1 if any selected package is failing or unvalidated; exit 2 on a registry load error.

License

Apache-2.0. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aw_index_cli-0.4.0.tar.gz (44.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aw_index_cli-0.4.0-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file aw_index_cli-0.4.0.tar.gz.

File metadata

  • Download URL: aw_index_cli-0.4.0.tar.gz
  • Upload date:
  • Size: 44.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aw_index_cli-0.4.0.tar.gz
Algorithm Hash digest
SHA256 1cb8791eb7079036305cba077998cba6f0c596ce4a6f0d828b056eccba036bc6
MD5 3ab910c60308421acf7077b1fbdb9811
BLAKE2b-256 5976f394e36916772b9daec9e8ee569456ad38d3910dff933839cc1ca7bc8216

See more details on using hashes here.

Provenance

The following attestation bundles were made for aw_index_cli-0.4.0.tar.gz:

Publisher: release.yaml on autowarefoundation/aw-index-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aw_index_cli-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: aw_index_cli-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aw_index_cli-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a634160abecf26cf54432734fc32f5427c0c9a718bedb9086872405f668aae1f
MD5 354cebf087579a6c5bd19dbbdc7e43cd
BLAKE2b-256 689a64621ae695497510f211042fcbfb7c39ac6bffb84a5263863aabfb7d9263

See more details on using hashes here.

Provenance

The following attestation bundles were made for aw_index_cli-0.4.0-py3-none-any.whl:

Publisher: release.yaml on autowarefoundation/aw-index-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page