Explore ROS 2 package dependencies from the command line (CLI, TUI, library)
Project description
██████╗ ██████╗ ███████╗████████╗██████╗ ███████╗███████╗
██╔══██╗██╔═══██╗██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔════╝
██████╔╝██║ ██║███████╗ ██║ ██████╔╝█████╗ █████╗
██╔══██╗██║ ██║╚════██║ ██║ ██╔══██╗██╔══╝ ██╔══╝
██║ ██║╚██████╔╝███████║ ██║ ██║ ██║███████╗███████╗
╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝
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
- How the system works
- How packages are found (workspaces, AMENT_PREFIX_PATH, COLCON_WORKSPACE)
- Dependency trees (package.xml, runtime_only)
- Usage (CLI, TUI keys, API)
- Development (layout, pre-commit, CI)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
436068089861653710be97e172da158c9351e18d5d86b145bab5a2e7cee9d937
|
|
| MD5 |
5282661ef527f9ff184173cdb0e6e765
|
|
| BLAKE2b-256 |
6ec916505899e02b6a6863665a627388c05db21468d1ad62bad88328641f8a71
|
Provenance
The following attestation bundles were made for rostree-0.2.1.tar.gz:
Publisher:
publish.yml on guilyx/rostree
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rostree-0.2.1.tar.gz -
Subject digest:
436068089861653710be97e172da158c9351e18d5d86b145bab5a2e7cee9d937 - Sigstore transparency entry: 919419367
- Sigstore integration time:
-
Permalink:
guilyx/rostree@e72607c2bb5538debc95667cd4a8c13b231f577f -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/guilyx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e72607c2bb5538debc95667cd4a8c13b231f577f -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95e8032c5f21e4890422b20fbeecb17e6aae5e889cb651910162075e6e548f73
|
|
| MD5 |
6610fd99cc0befc18558cced0984188c
|
|
| BLAKE2b-256 |
a3fc4d6102a8e99db0f2021e8d4802e04532e0bd46fd362e6de2f0cdf6703bcf
|
Provenance
The following attestation bundles were made for rostree-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on guilyx/rostree
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rostree-0.2.1-py3-none-any.whl -
Subject digest:
95e8032c5f21e4890422b20fbeecb17e6aae5e889cb651910162075e6e548f73 - Sigstore transparency entry: 919419370
- Sigstore integration time:
-
Permalink:
guilyx/rostree@e72607c2bb5538debc95667cd4a8c13b231f577f -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/guilyx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e72607c2bb5538debc95667cd4a8c13b231f577f -
Trigger Event:
release
-
Statement type: