pipdeptree icon indicating copy to clipboard operation
pipdeptree copied to clipboard

Is it possible to run pipdeptree from code ?

Open bekraupov opened this issue 4 years ago • 2 comments

i.e. like an API request?

this way i dont have to call it via external cmd way like "pipdeptree pacakge -json"

bekraupov avatar Jan 18 '21 17:01 bekraupov

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.

naiquevin avatar Jan 26 '21 14:01 naiquevin

Yes, there is. I did so in dependency-checker here: https://github.com/muellerzr/dependency_checker/blob/master/dependency_checker/checker.py#L14

muellerzr avatar Sep 26 '21 00:09 muellerzr

I'm not sure what this API would look like, so until we get some use cases and proposals I'll close this.

gaborbernat avatar Sep 05 '22 03:09 gaborbernat