Skip to content

kasimrafique/OrBits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

118 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version fury.io MIT license

OrBits

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).

Installation

Install from Pypi:

pip install dep-orbits

Or, using pipx:

pipx install dep-orbits

Or, using uv:

uv tool install dep-orbits

Usage

Run, in your project's directory:

orbits

Note 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).

Screenshots

For example, using Home Assistants Core repo, installing the dependencies then running orbits results in:

image

Toggling the background off and clicking on one of the planets/moons results in:

image

The same dependency may appear in multiple subtrees as highlighted in red image

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