uv
uv copied to clipboard
Add a `pipdeptree` like output
pipdeptree is a cool tool for visualizing the dependency tree of python packages. It allows users to see a structured "tree" of dependencies and, using its reverse mode, to understand why a particular dependency is required for our project.
One particularly useful use case of pipdeptree
is to filter out only the "top-level" packages. This helps in cleaning up *.in
files by leaving the resolution of transitive dependencies to the compilation process.
Would it be possible to support something similar to this as a built-in feature of uv
? something like uv pip list --format=tree
?
I like the idea of having a tree view for this. cargo tree
is another good example -- really useful.
Strong support for this(!) I was about to make a proposal similar to it, although i didn't know pipdpeptree
so was going to use pip-chill
as an example. I'd love to see alongside this functionality like pip-autoremove
- remove given package and all the orphan packages it leaves behind.
For reference/design, poetry has --tree
as part of poetry show
Opened https://github.com/astral-sh/uv/issues/4439 to track additional features that did not land in the initial PR.