You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, great tool to visualize the dependencies. But is there some way to generate the deptree output from code? It might be helpful to search for certain dependencies within a structure.
The text was updated successfully, but these errors were encountered:
It should be partly possible to use this tool as a library.
Providing input and triggering the computation is straightforward. But as the code is written now, the output will still be strings written to the console. So it is probably not what you need.
from deptree import deptree
dependencies_graph = deptree('package_name')
for dependency in dependencies_graph:
# Do something with the immediate dependency
# recursively walk the dependencies of the top level dependency
Currently, for testing dependencies in my line of product development, I use python subprocess module with deptree and then parse the console output. We could parse the console output as well to achieve the above, though it might be fairly tedious.
Hi, great tool to visualize the dependencies. But is there some way to generate the deptree output from code? It might be helpful to search for certain dependencies within a structure.
The text was updated successfully, but these errors were encountered: