How rajeshprasanth/tsp-dashboard works
tsp-dashboard is a Flask web dashboard for the Task Spooler queue. A user opens the single-page dashboard, signs in through the REST API, and views job and server state or—if an admin—controls jobs and the server. The API applies session and role checks, then delegates Task Spooler operations to a CLI wrapper that communicates with the daemon. The README documents dashboard charts, themes, and controls; frontend-to-API wiring is not shown in the sampled source, so that relationship is marked unverified.
Main entry points: __init__.py Flask app factory · api.py REST API · index.html Single-page dashboard · auth.py Login and role checks
Components 12
Dashboard
- Single-page dashboard
static/index.html - Static web routes
app/web.py
Flask application
- Flask app factory
app/__init__.py - REST API
app/api.py
Identity and configuration
- Runtime configuration
app/config.py - Login and role checks
app/auth.py - User JSON file
users.json - User management CLI
manage.py
Task Spooler
- Task Spooler client
app/tsp.py - tsp command
- Task Spooler daemon
Other components
- Dashboard user
Connections 13
- Dashboard user → Single-page dashboard: opens dashboard
README.md - Single-page dashboard → REST API: uses API
- Flask app factory → Runtime configuration: loads settings
app/__init__.py - Flask app factory → Login and role checks: creates user store
app/__init__.py - Flask app factory → REST API: registers routes
app/__init__.py - Flask app factory → Static web routes: registers routes
app/__init__.py - Static web routes → Single-page dashboard: serves page
app/web.py - REST API → Login and role checks: checks access
app/api.py - REST API → Task Spooler client: invokes operations
app/api.py - Login and role checks → User JSON file: reads credentials
app/auth.py - User management CLI → User JSON file: writes user data
README.md - Task Spooler client → tsp command: runs commands
app/tsp.py - tsp command → Task Spooler daemon: communicates over socket