# vishalpathak01/indian_startup_minor_project architecture

> Architecture diagram of the GitHub repository vishalpathak01/indian_startup_minor_project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vishalpathak01/indian_startup_minor_project
- Repository: https://github.com/vishalpathak01/indian_startup_minor_project

## Overview

#### Purpose and Entry Point
This repository is a Streamlit dashboard for exploratory analysis of Indian startup funding from 2015–2020. The executable application entry point is `app.py`, launched with `streamlit run app.py`.

#### Application Runtime
The dashboard runs in Python with Streamlit as the UI/runtime layer. Pandas and NumPy support dataset transformation and aggregation; Matplotlib supports chart rendering. Declared dependencies are in `requirements.txt`.

#### Data Layer
Funding records are supplied as repository-local CSV files:
- `startup_funding.csv` is the source funding dataset.
- `startup_cleaned.csv` is a prepared/cleaned dataset used to make dashboard analysis practical and consistent.

The app’s analytical scope and outputs are constrained by these static CSV snapshots; there is no indicated database, API, authentication, or background processing service.

#### Dashboard Navigation and Control Flow
`app.py` owns the Streamlit page flow and user-driven analysis modes. A user selects an overall, startup-focused, or investor-focused view; the application then filters and aggregates funding records and renders corresponding tables, metrics, or charts.

This creates a single-process request/rerun model: Streamlit reruns application logic when sidebar controls or page widgets change.

#### Overall Funding Analysis
The overall-analysis stage derives portfolio-level views from the funding dataset:
- Month-over-month funding trends.
- Top startups by funding.
- Sector-level funding rankings.
- City-level funding rankings.

These aggregates convert transactional funding rows into time-series and ranked categorical summaries in `app.py`, using `startup_cleaned.csv` and/or `startup_funding.csv`.

#### Startup Analysis
Startup-specific workflows use a selected startup identity to expose its sector, location, investors, and historical funding activity. The same data is also used to identify similar startups, likely through shared attributes such as sector or city. The principal boundary is between raw startup/funding records and a startup-centric profile assembled at interaction time in `app.py`.

#### Investor Analysis
Investor-focused workflows filter funding records by investor and derive recent and largest investments, plus investment breakdowns by stage, sector, and city. A year-over-year investment chart summarizes longitudinal activity, while similarity lookup compares investor portfolios or investment attributes. This logic is delivered through the same Streamlit application module, `app.py`.

Main entry points: [`app.py`](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py) (Application entry point), [`requirements.txt`](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/requirements.txt) (Python dependencies), [`startup_funding.csv`](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/startup_funding.csv) (Funding records), [`startup_cleaned.csv`](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/startup_cleaned.csv) (Prepared funding records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Dashboard Runtime"]
  node_requirements["Python dependencies<br/>dependency manifest<br/>[requirements.txt]"]
  node_streamlit{{"Streamlit runtime<br/>UI runtime"}}
  node_app["Application entry point<br/>Streamlit app<br/>[app.py]"]
  node_navigation["View selection<br/>navigation flow<br/>[app.py]"]
end

subgraph group_analysis["Analysis Workflows"]
  node_overall["Overall analysis<br/>portfolio workflow<br/>[app.py]"]
  node_trend["Funding trends<br/>time-series aggregate<br/>[app.py]"]
  node_rankings["Startup, sector &amp; city rankings<br/>ranked aggregates<br/>[app.py]"]
  node_startup_analysis["Startup analysis<br/>startup workflow<br/>[app.py]"]
  node_startup_profile["Startup profile &amp; similarity<br/>interactive profile<br/>[app.py]"]
  node_investor_analysis["Investor analysis<br/>investor workflow<br/>[app.py]"]
  node_investor_portfolio["Investor portfolio insights<br/>portfolio aggregate<br/>[app.py]"]
end

subgraph group_data["Static Data"]
  node_raw_csv[("Funding records<br/>source CSV")]
  node_clean_csv[("Prepared funding records<br/>cleaned CSV")]
end

node_user(("Dashboard user<br/>actor"))

node_requirements -->|"installs"| node_streamlit
node_user -->|"interacts with"| node_streamlit
node_streamlit -->|"runs and reruns"| node_app
node_app -->|"renders controls"| node_navigation
node_raw_csv -->|"loads"| node_app
node_clean_csv -->|"loads"| node_app
node_navigation -->|"selects"| node_overall
node_navigation -->|"selects"| node_startup_analysis
node_navigation -->|"selects"| node_investor_analysis
node_overall -->|"aggregates"| node_trend
node_overall -->|"aggregates"| node_rankings
node_startup_analysis -->|"builds from selected startup"| node_startup_profile
node_investor_analysis -->|"filters and aggregates"| node_investor_portfolio
node_app -->|"renders tables, metrics &amp; charts"| node_streamlit

click node_requirements "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/requirements.txt"
click node_app "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py"
click node_navigation "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py"
click node_raw_csv "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/startup_funding.csv"
click node_clean_csv "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/startup_cleaned.csv"
click node_overall "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py"
click node_trend "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py"
click node_rankings "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py"
click node_startup_analysis "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py"
click node_startup_profile "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py"
click node_investor_analysis "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py"
click node_investor_portfolio "https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_requirements,node_streamlit,node_app,node_navigation toneBlue
class node_overall,node_trend,node_rankings,node_startup_analysis,node_startup_profile,node_investor_analysis,node_investor_portfolio toneAmber
class node_raw_csv,node_clean_csv toneMint
class node_user toneNeutral
```

## Components

### Dashboard Runtime

- [Python dependencies](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/requirements.txt): dependency manifest · Declares Streamlit, Pandas, NumPy, and Matplotlib. · `requirements.txt`
- **Streamlit runtime**: UI runtime · Reruns the app when widget state changes.
- [Application entry point](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py): Streamlit app · Owns navigation, filtering, aggregation, and rendering. · `app.py`
- [View selection](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py): navigation flow · Selects overall, startup, or investor analysis. · `app.py`

### Analysis Workflows

- [Overall analysis](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py): portfolio workflow · `app.py`
- [Funding trends](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py): time-series aggregate · Month-over-month funding summaries. · `app.py`
- [Startup, sector & city rankings](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py): ranked aggregates · Top funding views by startup, sector, and city. · `app.py`
- [Startup analysis](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py): startup workflow · `app.py`
- [Startup profile & similarity](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py): interactive profile · Shows sector, location, investors, history, and similar startups. · `app.py`
- [Investor analysis](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py): investor workflow · `app.py`
- [Investor portfolio insights](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/app.py): portfolio aggregate · Derives recent/largest investments and stage, sector, city, and yearly views. · `app.py`

### Static Data

- [Funding records](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/startup_funding.csv): source CSV · Original startup funding snapshot for 2015–2020. · `startup_funding.csv`
- [Prepared funding records](https://github.com/vishalpathak01/indian_startup_minor_project/blob/main/startup_cleaned.csv): cleaned CSV · Prepared snapshot used for consistent dashboard analysis. · `startup_cleaned.csv`

### Other components

- **Dashboard user**: actor

## Connections

- Python dependencies → Streamlit runtime: installs
- Dashboard user → Streamlit runtime: interacts with
- Streamlit runtime → Application entry point: runs and reruns
- Application entry point → View selection: renders controls
- Funding records → Application entry point: loads
- Prepared funding records → Application entry point: loads
- View selection → Overall analysis: selects
- View selection → Startup analysis: selects
- View selection → Investor analysis: selects
- Overall analysis → Funding trends: aggregates
- Overall analysis → Startup, sector & city rankings: aggregates
- Startup analysis → Startup profile & similarity: builds from selected startup
- Investor analysis → Investor portfolio insights: filters and aggregates
- Application entry point → Streamlit runtime: renders tables, metrics & charts
