This project is a two-part challenge that involves building a financial analysis model and creating a web application to utilize the model.
Create a simple financial analysis model using the following files:
- rules.py: Contains predefined rules for financial analysis. You are required to implement the functions as per the comments provided. The example function
latest_financial_index
serves as a reference. - model.py: Processes the rules from
rules.py
and outputs results in JSON format. - data.json: Sample dataset used as input for the analysis model.
Develop a web application using the framework or tool of your choice. The application consists of two pages:
-
Page 1: Upload Data
- Allows users to upload the
data.json
file. - On submission, processes the file using the model created in Module 1 and displays the results in JSON format.
- Allows users to upload the
-
Page 2: Results
- Displays the results obtained from
model.py
in a structured and interactive manner.
- Displays the results obtained from
-
Financial Analysis Model
- Evaluates multiple financial metrics using rules defined in
rules.py
. - Flags include:
- TOTAL_REVENUE_5CR_FLAG: Checks if total revenue exceeds ₹5 crore.
- BORROWING_TO_REVENUE_FLAG: Verifies if the borrowing-to-revenue ratio is healthy.
- ISCR_FLAG: Evaluates the Interest Service Coverage Ratio (ISCR).
- Evaluates multiple financial metrics using rules defined in
-
Interactive Web Application
- Upload Financial Data: Upload the financial dataset and process it.
- Detailed Results: View flags, insights, and visualizations of financial trends.
-
Visualizations
- Displays trends in net revenue using interactive line charts with Plotly.
.
├── app.py # Main Streamlit app for the web application
├── model.py # Financial analysis model
├── rules.py # Rule definitions for financial analysis
├── data.json # Sample dataset
├── requirements.txt # Dependencies for the project
└── README.md # Project documentation
Ensure that the following are installed on your system:
- Clone the Repository
Clone the GitHub repository to your local system using the following command:git clone https://github.com/your-username/financial-analysis-app.git cd financial-analysis-app
- Install Dependencies
Install all required Python libraries from requirements.txt:pip install -r requirements.txt
- Run the Application
Start the Streamlit application with:streamlit run app.py
(Upload the data.json from this repo)