How eminbzdgn/webrehber works
Project type and purpose
• From the README (# WebRehber) and file layout, this is a Python-based static site generator / content‐update tool.
• Purpose: install dependencies, load configuration, update data sources, compile/generate HTML pages, and produce the final “sayfalar” output folder.
Main components
a. Dependency management
• libInstall.py
b. Configuration loader
• conf.py
c. Data update module
• dataupdate.py
d. Build/compile module
• derle.py
e. Core orchestrator
• main.py
f. Utility functions
• utils.py
g. Output folder (static pages)
• sayfalar/ (contains rehber.html and image/)
h. Runtime environment
• Python interpreter, any third-party libs installed
Relationships & flow
1. User invokes main.py.
2. main.py calls libInstall.py to ensure dependencies are installed.
3. main.py loads project settings via conf.py.
4. main.py triggers dataupdate.py to fetch or refresh source data.
5. main.py calls derle.py to compile/generate HTML files, using helpers in utils.py.
6. Generated files land in sayfalar/.
7. Static assets (images) are copied into sayfalar/image/.
Architectural patterns & design principles
• Modular CLI workflow: each phase (install, config, update, build) is encapsulated in its own module.
• Single responsibility: modules do one job and expose clean interfaces (via function calls in main.py).
• File-based pipeline: no database; data flows from source files into HTML outputs.
Technology callouts
• Python 3.x (interpreter)
• Standard library (os, shutil, etc.)
• Any external libs installed by libInstall.py
• HTML/CSS static output in sayfalar/