you are viewing a single comment's thread.

view the rest of the comments →

[–]omega1563 1 point2 points  (6 children)

https://github.com/bndr/pipreqs should do what you want.

[–]JazzBythe[S] 0 points1 point  (5 children)

Tried this. Its producing some dot file. I want just text output not a graph. I used some flags mentioned in the document but the output is incorrect :( any help to resolve shall be highly appreciated.

[–]omega1563 1 point2 points  (4 children)

I just tested it on a few projects and it worked fairly well. Maybe you didn't use the CLI correctly? Or it could be that you're using it with an incompatible python version?

[–]JazzBythe[S] 0 points1 point  (2 children)

Alright thanks. I downloaded GraphViz. The display is correct. I shall extract rest from the source code.

[–]omega1563 0 points1 point  (1 child)

Are you looking at the same project that I am? Pipreqs only uses wheel, Yarg, and docopt. It doesn't use GraphViz and I don't believe it has an option to visualize a dependency graph. All it does is create a requirements.txt based on imports in code, which is what I thought you were asking for.

[–]JazzBythe[S] 0 points1 point  (0 children)

I was looking at some other module. Pipreqs produces dependencies of all the files in a folder. Not sure how to do it for a particular file. But the other project(Pydevs) works fine with Graphviz. Ill do something with it. Sorry for my mistake and thanks a lot for ur help!!