colcon-package-information is an extension for the `colcon` build tool, providing the `info` verb. It allows users to inspect and display various details about packages within a `colcon` workspace, such as their source, version, and dependencies. The current version is 0.4.1, and it follows the stable release cadence of the `colcon` ecosystem, with updates typically coinciding with major `colcon-core` releases or bug fixes.
pip install colcon-package-informationVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to install and use `colcon-package-information` via the `colcon` command-line interface. It creates a temporary `colcon` workspace with a dummy package, then executes `colcon info` to display the package's metadata. This highlights the primary interaction model, which is through the `colcon` CLI, not direct Python imports.
Always invoke `colcon-package-information` via the `colcon` executable on the command line. For programmatic access to its *output*, consider using Python's `subprocess` module to run `colcon info` and parse its stdout.
Ensure `colcon-core` is installed via `pip install colcon-core` alongside `colcon-package-information`.
Ensure both `colcon-core` and `colcon-package-information` are installed in the active Python environment: `pip install colcon-core colcon-package-information`. Verify `colcon` is in your system's `PATH`.
Instead of importing and calling functions, use the `colcon` command-line tool. For example, run `colcon info` in your terminal. If you need to interact with its output from Python, use `subprocess.run(['colcon', 'info'], capture_output=True)` and parse the result.