Skip to content

heuzef/network

Repository files navigation

Diagrams

Installation

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

Mise en service

Exemple

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

Générer le diagramme

python3 network.py

Icon-Collection

Installation

git clone https://github.com/benc-uk/icon-collection.git

Récupérer et convertir une image de la collection avec Inkscape

inkscape -w 1024 -h 1024 icon-collection/azure-patterns/server.svg -o icons/server.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published