dnf install -y python3 python3-pip graphviz inkscape
echo -e "diagrams==0.21.1\ngraphviz==0.16" | tee requirements.txt
pip3 install -r requirements.txt
network.py
from diagrams import Diagram, Cluster, Edge
from diagrams.generic.network import Firewall
from diagrams.custom import Custom
with Diagram("Network", show=False, filename="network", direction="TB"):
# Custom icons
heuzef = Custom("Heuzef", "./icons/heuzef.png")
# Import icons
firewall1 = Firewall("Pare-feu 1")
firewall2 = Firewall("Pare-feu 2")
firewall1 >> firewall2 >> heuzef
python3 network.py
- https://diagrams.mingrammer.com
- https://github.com/mingrammer/diagrams
- https://code.benco.io/icon-collection/azure-icons
git clone https://github.com/benc-uk/icon-collection.git
inkscape -w 1024 -h 1024 icon-collection/azure-patterns/server.svg -o icons/server.png