PlantUML: Create a sequence diagram inside PyCharm

For many years, I was looking for an app to create sequence diagrams which could be easily editable by me or a peer later without hair pulling. Then, I found PlantUML.

PlantUML: Create a sequence diagram inside PyCharm

During a recent work, one colleague gave me the best solution I found so far. PlantUML

By default, PlantUML is a java application. For any changes, the diagram image file needs to be regenerated via a shell command. From my experience, it was a bit time consuming.

Luckily, PlanUML is also available directly from PyCharm as a plug-in.

Install plantuml plugin for PyCharm:

Then click on Invalidate/Restart PyCharm.

Create a new puml file with an example content

Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response

Make a change and the visual will be updated automatically

You can also create more advanced diagrams. Like this one created for a previous work.

If you liked this post, help us by giving a like or sharing this post.


Laisser un commentaire