3 ms·
How to visualize your Python project's dependency graph
- remolacha 2y agolooks cool. do you have any case studies of people using this for big refactors?
- abdullahkhalids 2y agoOne 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.
- ycombiredd 2y agoI 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/ 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 2y agoThanks. There are no examples in the repo, but I will run it on our codebase on Monday and see what I get.
- ycombiredd 2y agoSorry 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#cli-report-generation-example 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.
- abdullahkhalids 2y agoGot it. Missed that single line in my skim.
- pabe 2y agoFunny how every blog article is literally the same. Shady.