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.1.tar.gz (21.4 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.1-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rostree-0.2.1.tar.gz
  • Upload date:
  • Size: 21.4 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.1.tar.gz
Algorithm Hash digest
SHA256 436068089861653710be97e172da158c9351e18d5d86b145bab5a2e7cee9d937
MD5 5282661ef527f9ff184173cdb0e6e765
BLAKE2b-256 6ec916505899e02b6a6863665a627388c05db21468d1ad62bad88328641f8a71

See more details on using hashes here.

Provenance

The following attestation bundles were made for rostree-0.2.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: rostree-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 25.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95e8032c5f21e4890422b20fbeecb17e6aae5e889cb651910162075e6e548f73
MD5 6610fd99cc0befc18558cced0984188c
BLAKE2b-256 a3fc4d6102a8e99db0f2021e8d4802e04532e0bd46fd362e6de2f0cdf6703bcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for rostree-0.2.1-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