Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-diagrams

Diagrams as code using Python and Diagrams

Docker image

  • Update apt
  • Install graphviz - Diagrams requirement
  • Install diagrams

Create diagram using container

Sample script

hello-world.py

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

with Diagram("Hello World", show=False):
    ELB("Load Balancer") >> EC2("Message Server") >> RDS("Message Store")

Run script using container

docker run -it --rm -v "$PWD":/diagrams/scripts/ -w /diagrams/scripts/ mjdk/diagrams hello-world.py

View generated diagram in the scripts directory

Hello, World

Read more

License

MIT

About

Diagrams as code using Python and Diagrams

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages