mingrammer / diagrams

:art: Diagram as Code for prototyping cloud system architectures
https://diagrams.mingrammer.com
MIT License
35.41k stars 2.29k forks source link

Has anyone used this for diagramming code bases? #372

Open CloudySnake opened 3 years ago

CloudySnake commented 3 years ago

As the subject says, I wonder if anyone has tried to use Diagrams to give a pictorial representation of code? I've got a couple of relatively complex Lambdas that might benefit from that sort of approach. Figured I'd see if anyone has tried and what sort of experience it was.

clayms commented 3 years ago

I would imagine you would have to take the output of some static analysis and convert it into the Nodes, Clusters, and Edges of this library.

Here is one list of Static Analysis tools for python: https://luminousmen.com/post/python-static-analysis-tools

You might specifically looks at pylint with Pyreverse

Pylint comes with Pyreverse, with which it creates UML diagrams for your code.