# sampathirao1/sampathirao architecture

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

- Interactive diagram: https://gitdiagram.com/sampathirao1/sampathirao
- Repository: https://github.com/sampathirao1/sampathirao

## Overview

The repository is a small collection of standalone Python programs, not one integrated application. Its most developed workflow is attendance reporting: a user supplies a folder and output name, the program reads a member list and daily CSVs, matches attendance by email, calculates percentages, and may write a report. The other files are an independent simulated build runner and a factorial calculator. The README is empty; relationships below come from the sampled source, and no connections between the separate programs are implied.

Main entry points: [`ATTENDANCE_CODE.py`](https://github.com/sampathirao1/sampathirao/blob/master/ATTENDANCE_CODE.py) (Attendance manager), [`python1.py`](https://github.com/sampathirao1/sampathirao/blob/master/python1.py) (Build runner), [`factorail_number.py`](https://github.com/sampathirao1/sampathirao/blob/master/factorail_number.py) (Factorial program)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_attendance["Attendance reporting"]
  node_attendance_manager["Attendance manager<br/>[ATTENDANCE_CODE.py]"]
  node_csv_manager["CSV manager<br/>[ATTENDANCE_CODE.py]"]
  node_tracker["Attendance tracker<br/>[ATTENDANCE_CODE.py]"]
  node_presenter["Data presenter<br/>[ATTENDANCE_CODE.py]"]
  node_attendance_files["Attendance CSVs"]
  node_attendance_log["Attendance log"]
end

subgraph group_build["Build simulation"]
  node_build_entry["Build runner<br/>[python1.py]"]
  node_build_process["Build process<br/>[python1.py]"]
  node_build_steps["Step executor<br/>[python1.py]"]
  node_build_logs["Build log"]
end

subgraph group_factorial["Factorial calculator"]
  node_factorial_program["Factorial program"]
end

node_user(("User"))
node_console(("Console"))

node_user -->|"provides inputs"| node_attendance_manager
node_attendance_manager -->|"reads CSVs"| node_csv_manager
node_csv_manager -->|"reads"| node_attendance_files
node_attendance_manager -->|"updates attendance"| node_tracker
node_attendance_manager -->|"presents data"| node_presenter
node_presenter -->|"calculates percentages"| node_tracker
node_attendance_manager -->|"writes report"| node_csv_manager
node_csv_manager -->|"writes"| node_attendance_files
node_attendance_manager -->|"logs activity"| node_attendance_log
node_user -->|"starts"| node_build_entry
node_build_entry -->|"runs process"| node_build_process
node_build_entry -->|"checks and summarizes"| node_build_logs
node_build_process -->|"executes steps"| node_build_steps
node_build_steps -->|"appends results"| node_build_logs
node_user -->|"enters number"| node_factorial_program
node_factorial_program -->|"prints result"| node_console

click node_attendance_manager "https://github.com/sampathirao1/sampathirao/blob/master/ATTENDANCE_CODE.py"
click node_csv_manager "https://github.com/sampathirao1/sampathirao/blob/master/ATTENDANCE_CODE.py"
click node_tracker "https://github.com/sampathirao1/sampathirao/blob/master/ATTENDANCE_CODE.py"
click node_presenter "https://github.com/sampathirao1/sampathirao/blob/master/ATTENDANCE_CODE.py"
click node_build_entry "https://github.com/sampathirao1/sampathirao/blob/master/python1.py"
click node_build_process "https://github.com/sampathirao1/sampathirao/blob/master/python1.py"
click node_build_steps "https://github.com/sampathirao1/sampathirao/blob/master/python1.py"
click node_factorial_program "https://github.com/sampathirao1/sampathirao/blob/master/factorail_number.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_attendance_manager,node_csv_manager,node_tracker,node_presenter,node_attendance_files,node_attendance_log,node_user toneBlue
class node_build_entry,node_build_process,node_build_steps,node_build_logs toneAmber
class node_factorial_program toneMint
class node_console toneIndigo
```

## Components

### Attendance reporting

- [Attendance manager](https://github.com/sampathirao1/sampathirao/blob/master/ATTENDANCE_CODE.py): `ATTENDANCE_CODE.py`
- [CSV manager](https://github.com/sampathirao1/sampathirao/blob/master/ATTENDANCE_CODE.py): `ATTENDANCE_CODE.py`
- [Attendance tracker](https://github.com/sampathirao1/sampathirao/blob/master/ATTENDANCE_CODE.py): `ATTENDANCE_CODE.py`
- [Data presenter](https://github.com/sampathirao1/sampathirao/blob/master/ATTENDANCE_CODE.py): `ATTENDANCE_CODE.py`
- **Attendance CSVs**
- **Attendance log**

### Build simulation

- [Build runner](https://github.com/sampathirao1/sampathirao/blob/master/python1.py): `python1.py`
- [Build process](https://github.com/sampathirao1/sampathirao/blob/master/python1.py): `python1.py`
- [Step executor](https://github.com/sampathirao1/sampathirao/blob/master/python1.py): `python1.py`
- **Build log**

### Factorial calculator

- [Factorial program](https://github.com/sampathirao1/sampathirao/blob/master/factorail_number.py): `factorail_number.py`

### Other components

- **User**
- **Console**

## Connections

- User → Attendance manager: provides inputs (evidence: `ATTENDANCE_CODE.py`)
- Attendance manager → CSV manager: reads CSVs (evidence: `ATTENDANCE_CODE.py`)
- CSV manager → Attendance CSVs: reads (evidence: `ATTENDANCE_CODE.py`)
- Attendance manager → Attendance tracker: updates attendance (evidence: `ATTENDANCE_CODE.py`)
- Attendance manager → Data presenter: presents data (evidence: `ATTENDANCE_CODE.py`)
- Data presenter → Attendance tracker: calculates percentages (evidence: `ATTENDANCE_CODE.py`)
- Attendance manager → CSV manager: writes report (evidence: `ATTENDANCE_CODE.py`)
- CSV manager → Attendance CSVs: writes (evidence: `ATTENDANCE_CODE.py`)
- Attendance manager → Attendance log: logs activity (evidence: `ATTENDANCE_CODE.py`)
- User → Build runner: starts (evidence: `python1.py`)
- Build runner → Build process: runs process (evidence: `python1.py`)
- Build runner → Build log: checks and summarizes (evidence: `python1.py`)
- Build process → Step executor: executes steps (evidence: `python1.py`)
- Step executor → Build log: appends results (evidence: `python1.py`)
- User → Factorial program: enters number (evidence: `factorail_number.py`)
- Factorial program → Console: prints result (evidence: `factorail_number.py`)
