How to visualize your Python project's dependency graph
6 comments
·January 21, 2025abdullahkhalids
ycombiredd
I have a tool that I made to aid in pair-programming with LLMs that your question has caused me to realize that said tool’s reporting (without making use of its code summarization and concatenation functionality) might be useful to folks such as yourself, so I have updated the CLI and documentation to allow for simple generation of dependency relationship reports on their own, which may provide at least some of what you’re looking for.
I’ve embedded a sample report near the top of the README; toggle the little black triangle to expand/collapse said example report.
https://github.com/scottvr/chimeracat/
If it is helpful, that’s great - and I hope it is - but if it’s not, feel free to suggest functionality, or contribute some, or open an issue, or whatnot.
Cheers!
abdullahkhalids
Thanks. There are no examples in the repo, but I will run it on our codebase on Monday and see what I get.
ycombiredd
Sorry it wasn’t more clear; I’ll have to update the docs to make it more obvious.
But in the README, specifically in this section here https://github.com/scottvr/chimeracat/?tab=readme-ov-file#cl... , if you click/tap the rightward-facing triangle/arrow, it should expand a pasted example report.
pabe
Funny how every blog article is literally the same. Shady.
remolacha
looks cool. do you have any case studies of people using this for big refactors?
One feature here is visualizing module dependencies. What is the best way to show the class structure? Meaning both show how a class subclasses others, and how a class uses some other class objects inside it.