# jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory architecture

> Architecture diagram of the GitHub repository jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory
- Repository: https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory

## Overview

This is a small out-of-core CSV parsing and aggregation application. The main workflow streams the configured CSV through a custom buffered parser, updates online statistics for valid data rows, and saves a summary report; the driver also prints results and performance. A separate script generates the sample input dataset. The graph reflects the sampled calls and README-documented run commands; it does not infer links from the unsampled data or report files.

Main entry points: [`task1.py`](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/task1.py) (Application driver), [`report.py`](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/report.py) (Report generator), [`generate_dataset.py`](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/generate_dataset.py) (Dataset generator), [`statistics.py`](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/statistics.py) (Running statistics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["CSV ingestion"]
  node_parser["Streaming CSV parser<br/>[csv_stream.py]"]
end

subgraph group_processing["Aggregation and reporting"]
  node_driver["Application driver<br/>[task1.py]"]
  node_statistics["Running statistics<br/>[statistics.py]"]
  node_reporter["Report generator<br/>[report.py]"]
end

subgraph group_data["Data artifacts"]
  node_generator["Dataset generator"]
  node_input["Sample CSV"]
  node_output["Summary report<br/>[output_report.txt]"]
end

node_user(("User"))

node_user -->|"generates dataset"| node_generator
node_generator -->|"writes"| node_input
node_user -->|"runs"| node_driver
node_driver -->|"creates and streams"| node_parser
node_driver -->|"configures input"| node_input
node_driver -->|"updates"| node_statistics
node_driver -->|"creates and saves"| node_reporter
node_reporter -->|"gets summary"| node_statistics
node_reporter -->|"writes report"| node_output

click node_driver "https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/task1.py"
click node_parser "https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/csv_stream.py"
click node_statistics "https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/statistics.py"
click node_reporter "https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/report.py"
click node_generator "https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/generate_dataset.py"
click node_input "https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/sample_10gb_simulation.csv"
click node_output "https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/output_report.txt"

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_parser,node_user toneBlue
class node_driver,node_statistics,node_reporter toneAmber
class node_generator,node_input,node_output toneMint
```

## Components

### CSV ingestion

- [Streaming CSV parser](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/csv_stream.py): `csv_stream.py`

### Aggregation and reporting

- [Application driver](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/task1.py): `task1.py`
- [Running statistics](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/statistics.py): `statistics.py`
- [Report generator](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/report.py): `report.py`

### Data artifacts

- [Dataset generator](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/generate_dataset.py): `generate_dataset.py`
- [Sample CSV](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/sample_10gb_simulation.csv): `sample_10gb_simulation.csv`
- [Summary report](https://github.com/jeevika11/out-of-core-csv-parser-aggregator-with-constant-memory/blob/main/output_report.txt): `output_report.txt`

### Other components

- **User**

## Connections

- User → Dataset generator: generates dataset (evidence: `README.md`)
- Dataset generator → Sample CSV: writes (evidence: `generate_dataset.py`)
- User → Application driver: runs (evidence: `README.md`)
- Application driver → Streaming CSV parser: creates and streams (evidence: `task1.py`)
- Application driver → Sample CSV: configures input (evidence: `task1.py`)
- Application driver → Running statistics: updates (evidence: `task1.py`)
- Application driver → Report generator: creates and saves (evidence: `task1.py`)
- Report generator → Running statistics: gets summary (evidence: `report.py`)
- Report generator → Summary report: writes report
