# prasannajrepo/python-grade-checker architecture

> Architecture diagram of the GitHub repository prasannajrepo/python-grade-checker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/prasannajrepo/python-grade-checker
- Repository: https://github.com/prasannajrepo/python-grade-checker

## Overview

This repository contains two independent, small Python utilities: a GUI-driven weather report workflow and a mark-to-grade checker. The weather script copies a forecast from a browser into Excel, adds a timestamp and comment, saves a workbook, and captures a screenshot. The grade checker reads a mark, maps valid ranges to grades, and prints a result. There is no README or shared application flow; relationships shown are limited to actions visible in the excerpts.

Main entry points: [`daily_report_bot.py`](https://github.com/prasannajrepo/python-grade-checker/blob/main/daily_report_bot.py) (Weather report workflow), [`gradecheck.py`](https://github.com/prasannajrepo/python-grade-checker/blob/main/gradecheck.py) (Grade checker CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_weather["Weather report automation"]
  node_daily_report["Weather report workflow"]
end

subgraph group_grading["Grade checker"]
  node_grade_main["Grade checker CLI<br/>[gradecheck.py]"]
  node_grade_logic["Grade mapping<br/>[gradecheck.py]"]
end

node_user(("User"))
node_browser["Chrome browser"]
node_forecast["AccuWeather forecast"]
node_excel["Excel workbook"]
node_screenshot["Screenshot file"]

node_user -->|"starts"| node_daily_report
node_daily_report -->|"launches"| node_browser
node_daily_report -->|"opens"| node_forecast
node_forecast -.->|"renders"| node_browser
node_daily_report -->|"copies page text"| node_browser
node_daily_report -->|"launches"| node_excel
node_daily_report -->|"pastes and saves"| node_excel
node_daily_report -->|"captures"| node_screenshot
node_user -->|"enters mark"| node_grade_main
node_grade_main -->|"calls"| node_grade_logic
node_grade_main -->|"prints result"| node_user

click node_daily_report "https://github.com/prasannajrepo/python-grade-checker/blob/main/daily_report_bot.py"
click node_grade_main "https://github.com/prasannajrepo/python-grade-checker/blob/main/gradecheck.py"
click node_grade_logic "https://github.com/prasannajrepo/python-grade-checker/blob/main/gradecheck.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_daily_report,node_user,node_browser,node_screenshot toneBlue
class node_grade_main,node_grade_logic toneAmber
class node_forecast,node_excel toneIndigo
```

## Components

### Weather report automation

- [Weather report workflow](https://github.com/prasannajrepo/python-grade-checker/blob/main/daily_report_bot.py): `daily_report_bot.py`

### Grade checker

- [Grade checker CLI](https://github.com/prasannajrepo/python-grade-checker/blob/main/gradecheck.py): `gradecheck.py`
- [Grade mapping](https://github.com/prasannajrepo/python-grade-checker/blob/main/gradecheck.py): `gradecheck.py`

### Other components

- **User**
- **Chrome browser**
- **AccuWeather forecast**
- **Excel workbook**
- **Screenshot file**

## Connections

- User → Weather report workflow: starts (evidence: `daily_report_bot.py`)
- Weather report workflow → Chrome browser: launches (evidence: `daily_report_bot.py`)
- Weather report workflow → AccuWeather forecast: opens (evidence: `daily_report_bot.py`)
- AccuWeather forecast → Chrome browser: renders
- Weather report workflow → Chrome browser: copies page text (evidence: `daily_report_bot.py`)
- Weather report workflow → Excel workbook: launches (evidence: `daily_report_bot.py`)
- Weather report workflow → Excel workbook: pastes and saves (evidence: `daily_report_bot.py`)
- Weather report workflow → Screenshot file: captures (evidence: `daily_report_bot.py`)
- User → Grade checker CLI: enters mark (evidence: `gradecheck.py`)
- Grade checker CLI → Grade mapping: calls (evidence: `gradecheck.py`)
- Grade checker CLI → User: prints result (evidence: `gradecheck.py`)
