https://pypi.org/project/dep-orbits/
OrBits is a tool for visualizing dependency graphs as a solar system. It works on both Python projects (using pyproject.toml or similar) or JavaScript projects (using package-lock.json).
Install from Pypi:
pip install dep-orbitsOr, using pipx:
pipx install dep-orbitsOr, using uv:
uv tool install dep-orbitsRun, in your project's directory:
orbitsNote that you must have all dependencies installed to measure the size of dependencies. For Python,
this means you must have an active virtual environment with all your dependencies. For node, your
node_modules must be populated (using e.g. npm install).
For example, using Home Assistants Core repo, installing the dependencies then running orbits results in:
Toggling the background off and clicking on one of the planets/moons results in:
The same dependency may appear in multiple subtrees as highlighted in red

Additionally, you can only highlight based on depth from the original project using toggles in the bottom left corner:
