Python Forum
Generating classes diagram from source code - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Generating classes diagram from source code (/thread-35103.html)



Generating classes diagram from source code - Pavel_47 - Sep-29-2021

Hello,
In this link they propose a method of generating architecture of Python program from source code (using PyCharm):
PyCharm as a Python IDE for Generating UML Diagrams
In the 1st screenshot they show "Diagram" option in the context menu of python file.
In my version PyCharm I don't see this option.
Any comments ?
Thanks.


RE: Generating classes diagram from source code - Larz60+ - Sep-29-2021

Please note the date on that link July 2015, 7 years ago, could well be why you can't find the option


RE: Generating classes diagram from source code - deanhystad - Sep-29-2021

Appears to require a plugin (bundled)

https://www.jetbrains.com/help/pycharm/class-diagram.html

To view the class diagram

Quote:View UML class diagram
In the Project tool window, right-click an item for which you want to create a diagram and select Diagrams | Show Diagram Ctrl+Alt+Shift+U).

In the list that opens, select Python Class Diagram. PyCharm generates a UML diagram for classes and their dependencies.



RE: Generating classes diagram from source code - Lou - Oct-01-2021

From the article
Quote:Note that only the professional version of PyCharm (available for free to students) will do this, as far as I can tell.