How srinjoyee1008/retail-bi-intelligence-platform works
This is a local-first retail BI dashboard: a user opens the Streamlit app, which ensures demo data exists, computes retail metrics, and displays KPIs, trends, segmentation, inventory alerts, anomalies, forecasts, and recommendations. The implemented data path generates CSV-backed demo datasets when needed, loads them into a configurable SQLite or PostgreSQL database, and analytics reads those tables. The README also describes broader ingestion and deployment ambitions, but those are not evident as implemented subsystems in the supplied tree. Connections reflect the shown calls; broader README capabilities are not inferred.
Main entry points: app.py Streamlit dashboard · analytics.py Frame preparation · db.py Table access · retail_bi.db Retail database
Components 15
Dashboard
- Streamlit dashboard
Porject/app.py
Retail analytics
- KPI metrics
Porject/src/analytics.py - Sales trends
Porject/src/analytics.py - Category breakdown
Porject/src/analytics.py - Customer segments
Porject/src/analytics.py - Inventory alerts
Porject/src/analytics.py - Sales forecast
Porject/src/analytics.py - Revenue anomalies
Porject/src/analytics.py - Product recommendations
Porject/src/analytics.py - Frame preparation
Porject/src/analytics.py
Demo data and storage
- Table access
Porject/src/db.py - Demo data generation
Porject/src/data_generation.py - Database configuration
Porject/src/config.py - Retail database
Porject/retail_bi.db
Other components
- Dashboard user
Connections 24
- Dashboard user → Streamlit dashboard: opens
Porject/app.py - Streamlit dashboard → Table access: ensures data
Porject/app.py - Streamlit dashboard → Table access: resets data
Porject/app.py - Streamlit dashboard → KPI metrics: requests metrics
Porject/app.py - Streamlit dashboard → Sales trends: requests trend
Porject/app.py - Streamlit dashboard → Category breakdown: requests breakdown
Porject/app.py - Streamlit dashboard → Customer segments: requests segments
Porject/app.py - Streamlit dashboard → Inventory alerts: requests alerts
Porject/app.py - Streamlit dashboard → Sales forecast: requests forecast
Porject/app.py - Streamlit dashboard → Revenue anomalies: requests anomalies
Porject/app.py - Streamlit dashboard → Product recommendations: requests recommendations
Porject/app.py - KPI metrics → Frame preparation: prepares frames
Porject/src/analytics.py - Sales trends → Frame preparation: prepares frames
Porject/src/analytics.py - Category breakdown → Frame preparation: prepares frames
Porject/src/analytics.py - Customer segments → Frame preparation: prepares frames
Porject/src/analytics.py - Inventory alerts → Frame preparation: prepares frames
Porject/src/analytics.py - Sales forecast → Sales trends: uses trend
Porject/src/analytics.py - Revenue anomalies → Frame preparation: prepares frames
Porject/src/analytics.py - Product recommendations → Frame preparation: prepares frames
Porject/src/analytics.py - Frame preparation → Table access: loads tables
Porject/src/analytics.py - Table access → Database configuration: gets database URL
Porject/src/db.py - Table access → Demo data generation: generates datasets
Porject/src/db.py - Table access → Retail database: loads and reads
Porject/src/db.py - Streamlit dashboard → Retail database: previews tables
Porject/app.py