How gandamallapradyumn/server---copy--2- works
TGSRTC’s platform serves role-based operational portals, analytics and forecasts, an AI insights API, and a T+2 scheduling workflow. The graph preserves the documented capabilities and principal stages; unsampled links are included only where the README or source index supports them. Several implementation details and dashboard-to-data relationships were not shown, so those connections are omitted rather than inferred.
Main entry points: login.py Role-based dashboard · app.py Scheduling interface · depot_dashboard_dm.py Depot dashboards · data_pipeline.py Operations ingestion
Components 26
User portals
- Role-based dashboard
login.py - Admin portal
app_ui_admin.py - Depot portal
depot_UI.py - Depot dashboards
depot_dashboard_dm.py - Driver dashboards
driver_dashboard_DM.py
Operations analytics
- Tiered operational inputs
Input_Data_DM.py - Core ratio analytics
eight_ratios_DM.py - Action planning
action_plan.py - Service cut analysis
krmr_cut_services_analysis.py
Dynamic scheduling
- Scheduling interface
dynamic_scheduling_master/app.py - Operations ingestion
dynamic_scheduling_master/src/dynamic_scheduling/data_pipeline.py - T+2 demand prediction
dynamic_scheduling_master/src/dynamic_scheduling/demand_prediction.py - Supply policy engine
dynamic_scheduling_master/src/dynamic_scheduling/supply_scheduling.py - Schedule and accuracy views
dynamic_scheduling_master/src/dynamic_scheduling/prediction_vs_actual.py
AI and forecasting
- KMs and hours forecasts
kms_hrs.py - RAG document preparation
create_rag_documents.py - Vector retrieval
retriever.py - Operational insights API
app.py - Groq language models
Data and security
- Daily ETL
Etl_main.py - MySQL database
- Authentication
auth.py
Other components
- Corporation users
- Regional managers
- Depot managers
- Administrators
Connections 29
- Corporation users → Role-based dashboard: uses portal
- Regional managers → Role-based dashboard: uses portal
- Depot managers → Role-based dashboard: uses portal
- Administrators → Admin portal: uses portal
- Role-based dashboard → Authentication: authenticates
login.py - Role-based dashboard → Depot portal: dispatches to
login.py - Role-based dashboard → Depot dashboards: dispatches to
login.py - Role-based dashboard → Driver dashboards: dispatches to
login.py - Role-based dashboard → Admin portal: dispatches to
- Tiered operational inputs → Authentication: checks access
Input_Data_DM.py - Daily ETL → MySQL database: loads operations
- Daily ETL → Corporation users: builds analytics data
- Depot dashboards → Core ratio analytics: presents KPIs
- Depot dashboards → Service cut analysis: presents cut analysis
- Action planning → MySQL database: stores plans
- MySQL database → Core ratio analytics: supplies operational data
- MySQL database → RAG document preparation: supplies source data
- Scheduling interface → Operations ingestion: runs pipeline
dynamic_scheduling_master/app.py - Scheduling interface → T+2 demand prediction: runs prediction
dynamic_scheduling_master/app.py - Scheduling interface → Supply policy engine: runs scheduling
dynamic_scheduling_master/app.py - Scheduling interface → Schedule and accuracy views: shows comparisons
dynamic_scheduling_master/app.py - Operations ingestion → MySQL database: upserts raw data
dynamic_scheduling_master/src/dynamic_scheduling/data_pipeline.py - Operations ingestion → T+2 demand prediction: builds prediction data
- T+2 demand prediction → Supply policy engine: provides demand
- Supply policy engine → Schedule and accuracy views: provides schedules
- KMs and hours forecasts → Role-based dashboard: serves forecast views
login.py - RAG document preparation → Vector retrieval: prepares retrieval corpus
- Vector retrieval → Operational insights API: retrieves context
- Operational insights API → Groq language models: requests reasoning