Diagrams

Created: by Pradeep Gowda Updated: Nov 29, 2023

Diagrams python library allows you to draw architectural diagrams for AWS, and other clouds using Python code.

from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB

with Diagram("Grouped Workers", show=False, direction="TB"):
    ELB("lb") >> [EC2("worker1"),
                  EC2("worker2"),
                  EC2("worker3"),
                  EC2("worker4"),
                  EC2("worker5")] >> RDS("events")

Output:


My own wrapper for https://www.websequencediagrams.com/ is pywsd.

There is a Pure python implementation for WSD here


  • PlantUML
  • Mermaid mermaid JS library
  • ditaa
  • D2 is a domain-specific language (DSL) that stands for Declarative Diagramming. Declarative, as in, you describe what you want diagrammed, it generates the image.


Isoflow – Create beautiful cloud diagrams in minutes. Easily create isometric diagrams, for presentations, documentation and illustrations

Penrose | PenroseCreate beautiful diagrams just by typing notation in plain text. See Examples.

https://excalidraw.com – online drawing tool. - supports exporting drawn diagrams to SVG and PNG directly from right click. - has Libraries support to load library of shapes, icons etc.