# ramcharan926/my_vendor_performance_analysis architecture

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

- Interactive diagram: https://gitdiagram.com/ramcharan926/my_vendor_performance_analysis
- Repository: https://github.com/ramcharan926/my_vendor_performance_analysis

## Overview

This repository implements a vendor-performance analysis workflow: CSV ingestion into SQLite, SQL aggregation across purchasing, sales, pricing, and freight data, data cleaning and metric derivation, then persistence of a vendor summary. It also contains exploratory and analysis notebooks, a Power BI file, and a PDF report. Their internal behavior and connections are not shown in the available excerpts, so those artifacts are represented without inferred links.

Main entry points: [`Vendor_Performance_Analysis/ingestion_db.py`](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/ingestion_db.py) (CSV ingestion), [`Vendor_Performance_Analysis/get_vendor_summary.py`](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/get_vendor_summary.py) (Vendor summary query)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["Data ingestion"]
  node_csv_inputs["CSV inputs"]
  node_ingestion_runner["CSV ingestion<br/>[ingestion_db.py]"]
  node_inventory_db[("SQLite inventory")]
end

subgraph group_processing["Summary processing"]
  node_summary_builder["Vendor summary query"]
  node_data_cleaner["Metric enrichment"]
  node_summary_writer["Summary persistence"]
end

subgraph group_analysis["Analysis and reporting"]
  node_eda_notebook["Exploratory analysis"]
  node_analysis_notebook["Vendor analysis"]
  node_powerbi["Power BI report"]
  node_pdf_report["Performance report"]
  node_summary_csv["Vendor summary CSV"]
end

node_operator(("Operator"))

node_operator -->|"runs"| node_ingestion_runner
node_csv_inputs -->|"loads CSVs"| node_ingestion_runner
node_ingestion_runner -->|"writes tables"| node_inventory_db
node_summary_builder -->|"queries tables"| node_inventory_db
node_summary_builder -->|"passes summary"| node_data_cleaner
node_data_cleaner -->|"passes cleaned data"| node_summary_writer
node_summary_writer -->|"writes summary"| node_inventory_db

click node_ingestion_runner "https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/ingestion_db.py"
click node_summary_builder "https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/get_vendor_summary.py"
click node_data_cleaner "https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/get_vendor_summary.py"
click node_summary_writer "https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/get_vendor_summary.py"
click node_eda_notebook "https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/Exploratory%20Data%20Analysis.ipynb"
click node_analysis_notebook "https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/Vendor%20Performance%20Analysis.ipynb"
click node_powerbi "https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/vendor_performance.pbix"
click node_pdf_report "https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/Vendor%20Performance%20Report.pdf"
click node_summary_csv "https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/vendor_sales_summary.csv"

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_csv_inputs,node_ingestion_runner,node_inventory_db toneBlue
class node_summary_builder,node_data_cleaner,node_summary_writer toneAmber
class node_eda_notebook,node_analysis_notebook,node_powerbi,node_pdf_report,node_summary_csv toneMint
class node_operator toneIndigo
```

## Components

### Data ingestion

- **CSV inputs**
- [CSV ingestion](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/ingestion_db.py): `Vendor_Performance_Analysis/ingestion_db.py`
- **SQLite inventory**

### Summary processing

- [Vendor summary query](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/get_vendor_summary.py): `Vendor_Performance_Analysis/get_vendor_summary.py`
- [Metric enrichment](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/get_vendor_summary.py): `Vendor_Performance_Analysis/get_vendor_summary.py`
- [Summary persistence](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/get_vendor_summary.py): `Vendor_Performance_Analysis/get_vendor_summary.py`

### Analysis and reporting

- [Exploratory analysis](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/Exploratory%20Data%20Analysis.ipynb): `Vendor_Performance_Analysis/Exploratory Data Analysis.ipynb`
- [Vendor analysis](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/Vendor%20Performance%20Analysis.ipynb): `Vendor_Performance_Analysis/Vendor Performance Analysis.ipynb`
- [Power BI report](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/vendor_performance.pbix): `Vendor_Performance_Analysis/vendor_performance.pbix`
- [Performance report](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/Vendor%20Performance%20Report.pdf): `Vendor_Performance_Analysis/Vendor Performance Report.pdf`
- [Vendor summary CSV](https://github.com/ramcharan926/my_vendor_performance_analysis/blob/main/Vendor_Performance_Analysis/vendor_sales_summary.csv): `Vendor_Performance_Analysis/vendor_sales_summary.csv`

### Other components

- **Operator**

## Connections

- Operator → CSV ingestion: runs (evidence: `Vendor_Performance_Analysis/ingestion_db.py`)
- CSV inputs → CSV ingestion: loads CSVs (evidence: `Vendor_Performance_Analysis/ingestion_db.py`)
- CSV ingestion → SQLite inventory: writes tables (evidence: `Vendor_Performance_Analysis/ingestion_db.py`)
- Vendor summary query → SQLite inventory: queries tables (evidence: `Vendor_Performance_Analysis/get_vendor_summary.py`)
- Vendor summary query → Metric enrichment: passes summary (evidence: `Vendor_Performance_Analysis/get_vendor_summary.py`)
- Metric enrichment → Summary persistence: passes cleaned data (evidence: `Vendor_Performance_Analysis/get_vendor_summary.py`)
- Summary persistence → SQLite inventory: writes summary (evidence: `Vendor_Performance_Analysis/get_vendor_summary.py`)
