02afce822919b485f5ec4bb10270161d6a715172
Network Architecture Diagrams
Python scripts to generate network architecture diagrams using the Diagrams library.
Prerequisites
- Python 3.8+
- Graphviz (installation guide)
Installing Graphviz
Windows:
choco install graphviz
# or download from https://graphviz.org/download/
macOS:
brew install graphviz
Linux:
sudo apt-get install graphviz # Debian/Ubuntu
sudo yum install graphviz # RHEL/CentOS
Setup
- Create a virtual environment:
python -m venv .venv
- Activate the virtual environment:
# Windows
.venv\Scripts\activate
# macOS/Linux
source .venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
Usage
Run the diagram generation scripts:
# Generate LAN architecture diagram
python lan_architecture.py
# Generate main diagram
python main.py
Output files will be generated in the current directory as PNG images.
Available Diagrams
lan_architecture.py- Home Lab / Auction Stack Architecture diagrammain.py- Network architecture diagram
Deployment
To deploy or share this project:
- Ensure Graphviz is installed on the target system
- Clone the repository
- Follow the setup instructions above
- Run the desired diagram script
Notes
- Generated diagram files (
.png,.gv) are excluded from version control - The diagrams use a left-to-right (
LR) layout direction - Output files are saved with
show=Falseto prevent automatic opening
Description
Languages
HTML
70.4%
Python
28.2%
Dockerfile
1.4%