pipdeptree
pipdeptree copied to clipboard
Is it possible to run pipdeptree from code ?
i.e. like an API request?
this way i dont have to call it via external cmd way like "pipdeptree pacakge -json"
No, it's not possible at present as there's no function in the module with a fn signature similar to the command line interface.
Yes, there is. I did so in dependency-checker
here: https://github.com/muellerzr/dependency_checker/blob/master/dependency_checker/checker.py#L14
I'm not sure what this API would look like, so until we get some use cases and proposals I'll close this.