A Python-based tool that reads business transaction data (CSV) and automatically calculates key performance indicators (KPIs). Useful for financial automation, decision-making, and business analytics.
| KPI | Description |
|---|---|
| Total Revenue | Sum of income transactions |
| Total Expenses | Sum of expense transactions |
| Profit | Revenue β Expenses |
| Profit Margin | (Profit / Revenue) Γ 100 |
| Expense Ratio | (Expenses / Revenue) Γ 100 |
| Growth Rate | Based on previous period (if data available) |
date,amount,type
2025-01-01,5000,revenue
2025-01-02,1200,expense
2025-01-03,3000,revenue
2025-01-04,800,expense
git clone https://github.com/Shashwat-Aneja/automated-kpi-generator
cd automated-kpi-generatorpip install pandaspython kpi_generator.py data.csv===== KPI Report =====
Total Revenue : βΉ8000
Total Expenses : βΉ2000
Profit : βΉ6000
Profit Margin : 75.00%
Expense Ratio : 25.00%
Growth Rate : N/A (single period)
======================
automated-kpi-generator/
β
βββ kpi_generator.py
βββ README.md
- Add monthly comparison
- Visual charts using matplotlib
- Export KPI report to PDF or CSV
- Integrate with FastAPI (XYLO-compatible)
Developed by Shashwat Aneja