Working with UML class diagrams

Sometimes it can be really handy to have a schematical view of an application’s class hierarchy. PyCharm lets us quickly examine our application structure by generating UML class diagrams. This can help us understand the codebase we’re working on and easily navigate from diagram to code and back. We can even refactor and view changes from the UML diagram!

To learn about UML diagrams usage in PyCharm, please check the UML class diagrams tutorial from our PyCharm’s tutorial space.

As always, we appreciate your feedback in the comments below or in our forum!

Develop with pleasure!
– PyCharm Team

About Dmitry Filippov

Product Marketing Manager at JetBrains
This entry was posted in Cool Feature. Bookmark the permalink.

22 Responses to Working with UML class diagrams

  1. Eswar Vandanapu says:

    Is there a way to see the UML diagram from multiple python source files. We have a hierarchy of classes spread in a package. How can I see the diagram for entire package?

  2. UML tutorial says:

    Is there a similar tool which generated class diagrams for java code?

  3. Creately says:

    Can this re-factor without a problem?

  4. Jibay says:


    For doing a uml Diagram we need professional version?


    • Dmitry Filippov says:

      yes. This functionality is supported only in the professional edition.

      • gbosetti says:

        Hello Dmitry, I have the professional version thanks to the University, but I can’t see the diagrams. Does the students-teacher version have this feature? Thanks!

  5. Akshay Akin says:

    Have seen many UML diagram before, however, the way to put it all together and characterize them is very important. Very nice way to represent and identify them. Thank You

  6. Thank you very much for this useful tool ! It takes some time to draw UML diagrams from the code.
    I’m going to test it, thanks a lot !

  7. di says:

    I just dipped my toes into PyCharm’s UML diagram generation. A couple of things that I couldn’t get around:
    1. Right Click on diagram -> Add Class is always grayed out. What is needed to activate that?
    2. Is there a way to hide/make invisible classes that show on diagrams?
    3. Related to 2. With python 3.4, diagrams always show the “object” and “collections.Hashable” classes, which a part of python 3.4 and not a project per se. Is there a way to hide those “system” classes?

    I use Professional PyCharm 2017.1.1 on Linux with python 3.4
    Many thanks!

  8. Jitesh Pathak says:

    I have tested this . Excellent tool .

    Thanks a lot .

  9. Mandy says:

    how i can integrate uml diagram whit Visual paradigm or import/open in other toll.

  10. Yoni says:

    Not working well !!!
    I have Pycharm Pro 2017.2.4 and when running diagram i dont see all class names, and not all “extends” arrows are shown

    • Paul Everitt says:

      Sorry for the delay in replying, we didn’t spot this in the moderation queue. Is this still an issue with the latest PyCharm?

  11. Warren Lynch says:

    Try code engineering feature by reversing the code to Class Diagram could be helpful

    How to Reverse Engineer UML from Python?

    All other major programming lanaguages for code reverse engineering are supported:

  12. Rude says:

    Is it work on community version?

  13. Kaiser Chavez says:

    how i can integrate uml diagram whit Visual paradigm or import/open in other toll. please help

Leave a Reply

Your email address will not be published. Required fields are marked *