Skip to main content

Explore ROS 2 package dependencies from the command line (CLI, TUI, library)

Project description

██████╗  ██████╗ ███████╗████████╗██████╗ ███████╗███████╗
██╔══██╗██╔═══██╗██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔════╝
██████╔╝██║   ██║███████╗   ██║   ██████╔╝█████╗  █████╗
██╔══██╗██║   ██║╚════██║   ██║   ██╔══██╗██╔══╝  ██╔══╝
██║  ██║╚██████╔╝███████║   ██║   ██║  ██║███████╗███████╗
╚═╝  ╚═╝ ╚═════╝ ╚══════╝   ╚═╝   ╚═╝  ╚═╝╚══════╝╚══════╝

CI codecov PyPI version PyPI downloads Python versions License

Explore ROS 2 package dependencies from the command line (CLI, TUI, library).

Docs: docs/README.md — overview, package discovery, dependency trees, usage, development.

Quick start

pip install -e .   # or: uv pip install -e .
source /opt/ros/<distro>/setup.bash   # and/or your workspace install/setup.bash

CLI commands

rostree                      # Launch interactive TUI
rostree scan                 # Scan host for ROS 2 workspaces
rostree scan ~/dev --depth 3 # Scan specific directories
rostree list                 # List known packages
rostree list --by-source     # List packages grouped by source
rostree tree rclpy           # Show dependency tree for a package
rostree tree rclpy --depth 3 # Limit tree depth
rostree tree rclpy --json    # Output as JSON
rostree graph rclpy --render png       # Generate PNG image (requires graphviz)
rostree graph rclpy --render svg --open # Create SVG and open it
rostree graph -w ~/ros2_ws --render png # Graph entire workspace to image
rostree graph rclpy -f mermaid         # Mermaid format (text)

TUI mode

rostree tui                  # Interactive terminal UI
rostree tui rclpy            # Start TUI with a specific package tree

Python API

from rostree import list_known_packages, get_package_info, build_tree, scan_workspaces

packages = list_known_packages()
root = build_tree("rclpy", max_depth=5, runtime_only=True)
workspaces = scan_workspaces()  # Scan host for ROS 2 workspaces

Links

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

rostree-0.2.2.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

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

rostree-0.2.2-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file rostree-0.2.2.tar.gz.

File metadata

  • Download URL: rostree-0.2.2.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rostree-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ad5df934852604215f7773dbc79e0c8fa041715b5354a6699372fe1e4855c7f9
MD5 a8b4f2e887fdbd350c619bea2f473051
BLAKE2b-256 77b4f7b9b4cc476b6deb5da431fb2b2f06669f954704b701de6e6e7d4c841c82

See more details on using hashes here.

Provenance

The following attestation bundles were made for rostree-0.2.2.tar.gz:

Publisher: publish.yml on guilyx/rostree

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

File details

Details for the file rostree-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: rostree-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rostree-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c231e009ead9f0418488271d911e790a3f8d592f1616dbaf3f516e632cfadc08
MD5 2ef48fa831fbbf53e8a585c65313fa2f
BLAKE2b-256 2e9a7b943e35eade3985ebe21453adf515a6ef0600a08a5376afa9214a55c778

See more details on using hashes here.

Provenance

The following attestation bundles were made for rostree-0.2.2-py3-none-any.whl:

Publisher: publish.yml on guilyx/rostree

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