Diagrams
Diagram as Code for prototyping cloud system architectures in Python.
Why consider Diagrams?
Diagrams lets developers draw cloud system architectures using Python code without design tools. It provides official node icons for AWS, Azure, GCP, Kubernetes, and On-Premise stacks.
Learn Diagrams by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of Diagrams
Diagrams allows cloud architects to track infrastructure diagrams in Git repositories alongside Terraform and Kubernetes manifests.
Python Example
pip install diagramsfrom diagrams import Diagramfrom diagrams.aws.compute import EC2from diagrams.aws.database import RDSfrom diagrams.aws.network import ELBwith Diagram("Web Service Architecture", show=False): ELB("lb") >> EC2("web") >> RDS("userdb")Diagrams is licensed under the permissive MIT License.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.