Ian Mulvany

September 21, 2024

visualising python dependency trees

I spent a short amount of time this morning looking at tools that can visualise dependency trees in a small python project. I'm hitting a small bug with circular imports in a tiny toy project that I am working on. 

The recommendation in this blog post worked for me - https://medium.com/illumination/visualize-dependencies-between-python-modules-d6e8e9a92c50 and I found `pydeps` easy to install and use. 

Tach looked good - https://www.gauge.sh/blog/how-to-visualize-your-python-projects-dependency-graph, but it didn't work as I expected.

Sourcetrail is a deprecated open source project - https://github.com/CoatiSoftware/Sourcetrail, it looked promising, but it didn't meet my needs.

I didn't try https://github.com/nicolashahn/import-visualizer


About Ian Mulvany

Hi, I'm Ian - I work on academic publishing systems. You can find out more about me at mulvany.net. I'm always interested in engaging with folk on these topics, if you have made your way here don't hesitate to reach out if there is anything you want to share, discuss, or ask for help with!