pipdeptree
pipdeptree copied to clipboard
combine --package with --graph-output
Dear Vineet and colleagues
Great idea and wonderful program! It would helpful to be able to plot the graph of antecedents to a package or set of packages.
Thanks Arthur
Also, it would be really neat to be able to output graphs into an interactive graph network viewer, like vis.js!
There was PR #65 for having --graph-output
and --json
respect --packages
option. However, it had to be reverted as it broke --reverse
. Fixing it is on my list but the change will need some refactoring. For now I am busy with other stuff so can't promise when it will be done.
For the second suggestion - I am not familiar with this tool but on first glance it looks good so I'd also be open to PR for this. Another approach is to feed the pipdeptree --json
output to some script that could convert it into the format that vis.js understands.
This would also be really great for the '-e' option witch seems to be respected only when used without '--graph-output'
Started working on this! Hoping to release a new version soon :-)
This is an old issue but just wanted to inform that this is now fixed in the v2beta
branch. Planning to release a new "beta" version soon.
Basically the fact -p
does not work with output makes the graphing useless as it generates a huge graph that nobody can read.
@ssbarnea Its fixed in latest master. You'll need to upgrade to the beta version explicitly from PyPI
pip install pipdeptree==2.0.0b1
That is great news. Meanwhile I decided to go plain text via https://github.com/ansible/ansible-lint/pull/817 and avoid the image issues. Even so the plain text approach has the disadvantage of including version information, which in my case was not really needed.
Even so, now I know that if I have time to make a PR to optionally silence the version information, it will likely be accepted.
I can attest 2.0.0b1
definitely fix the issue! 👍
@naiquevin Thanks for your great work!