How ishare2-org/ishare2-web-gui works
ishare2 GUI is a FastAPI web interface for managing and downloading network-emulator images through the ishare2 CLI. A browser request enters at the application or a registered router; download and installed-image views gather image data and render pages, while download and delete requests invoke image operations. Catalog data is refreshed from Google Sheets, and supporting utilities expose platform, license, changelog, and CLI information. The main routes and several helpers were excerpted; unsampled capabilities and their links are included only where documented or indexed.
Main entry points: main.py FastAPI app · installed.py Installed routes · changelogs.py Changelog routes · downloads.py Catalog routes
Components 19
Web interface
- FastAPI app
main.py - Homepage
web_app/src/pages/index.html - Image and changelog pages
web_app/src/pages - Installed routes
routers/installed.py - Changelog routes
routers/changelogs.py
Image catalog
- Catalog routes
routers/downloads.py - Installed image lookup
python_scripts/installed_images.py - Image catalog lookup
python_scripts/get_images.py - CSV refresh
python_scripts/download_csv.py
Image operations
- Delete routes
routers/request_delete.py - Download request routes
routers/request_download.py - Image download
python_scripts/download_images.py - Image deletion
python_scripts/delete_images.py
Platform utilities
- Shell command runner
python_scripts/command_utils.py - Page context
python_scripts/add_context.py - System and CLI utilities
python_scripts/misc_utils.py - Changelog content
python_scripts/misc_utils.py
Other components
- Administrator
- Google Sheets
Connections 27
- Administrator → FastAPI app: requests pages
README.md - FastAPI app → Homepage: renders
main.py - FastAPI app → Installed routes: registers routes
main.py - FastAPI app → Catalog routes: registers routes
main.py - FastAPI app → Delete routes: registers routes
main.py - FastAPI app → Download request routes: registers routes
main.py - FastAPI app → Changelog routes: registers routes
main.py - Installed routes → Installed image lookup: gets installed images
routers/installed.py - Installed routes → Page context: builds context
routers/installed.py - Installed routes → Image and changelog pages: renders installed page
routers/installed.py - Catalog routes → Image catalog lookup: gets image list
routers/downloads.py - Catalog routes → Page context: builds context
routers/downloads.py - Catalog routes → Image and changelog pages: renders download page
routers/downloads.py - Delete routes → Image deletion: deletes image
routers/request_delete.py - Download request routes → Image download: downloads image
routers/request_download.py - Changelog routes → Changelog content: gets content
routers/changelogs.py - Changelog routes → Page context: builds context
routers/changelogs.py - Changelog routes → Image and changelog pages: renders changelog
routers/changelogs.py - FastAPI app → CSV refresh: refreshes catalog
main.py - Image catalog lookup → CSV refresh: refreshes missing data
python_scripts/get_images.py - CSV refresh → Google Sheets: downloads CSV data
python_scripts/download_csv.py - Image deletion → Shell command runner: runs shell commands
python_scripts/delete_images.py - Image download → Shell command runner: runs CLI commands
python_scripts/download_images.py - Installed image lookup → Shell command runner: runs CLI commands
python_scripts/installed_images.py - Page context → System and CLI utilities: gets system details
python_scripts/add_context.py - System and CLI utilities → Shell command runner: runs system commands
python_scripts/misc_utils.py - FastAPI app → System and CLI utilities: serves CLI extras
main.py