# aleksvizvary/schedulereader architecture

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

- Interactive diagram: https://gitdiagram.com/aleksvizvary/schedulereader
- Repository: https://github.com/aleksvizvary/schedulereader

## Overview

ScheduleReader converts a work-schedule spreadsheet into a person-specific iCalendar file. The principal workflow selects an employee and schedule, parses dates and shifts, builds calendar events with shift context, then writes an .ics export. The parser’s Cell helper handles cell interpretation. The README also describes employee selection and Excel/iCalendar support; the sampled UI and file-picker modules are not shown wired into the main workflow. `main.py` and `run_main.py` are parallel entry points. The map follows their visible calls; other UI wiring is uncertain.

Main entry points: [`program/main.py`](https://github.com/aleksvizvary/schedulereader/blob/main/program/main.py) (Main entry point), [`program/run_main.py`](https://github.com/aleksvizvary/schedulereader/blob/main/program/run_main.py) (Batch entry point), [`program/parsing_xlsx.py`](https://github.com/aleksvizvary/schedulereader/blob/main/program/parsing_xlsx.py) (Schedule parser), [`program/saving_file.py`](https://github.com/aleksvizvary/schedulereader/blob/main/program/saving_file.py) (ICS file writer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Schedule workflow"]
  node_employee_list["Employee names"]
  node_schedule_xlsx["Excel schedule"]
  node_main_entry["Main entry point<br/>[main.py]"]
  node_batch_entry["Batch entry point<br/>[run_main.py]"]
  node_tk_ui["Tk interface<br/>[main.py]"]
  node_file_picker["Schedule file picker<br/>[open_file.py]"]
end

subgraph group_conversion["Parsing and calendar"]
  node_xlsx_parser["Schedule parser<br/>[parsing_xlsx.py]"]
  node_cell_reader["Cell interpretation<br/>[classes.py]"]
  node_calendar_builder["Calendar and events"]
end

subgraph group_export["Export"]
  node_ics_writer["ICS file writer<br/>[saving_file.py]"]
  node_ics_output["ICS calendar file"]
end

node_user(("User"))

node_user -->|"starts"| node_main_entry
node_user -->|"starts"| node_batch_entry
node_main_entry -->|"reads"| node_employee_list
node_batch_entry -->|"reads"| node_employee_list
node_main_entry -->|"loads"| node_schedule_xlsx
node_batch_entry -->|"loads"| node_schedule_xlsx
node_main_entry -->|"parses with"| node_xlsx_parser
node_batch_entry -->|"parses with"| node_xlsx_parser
node_xlsx_parser -->|"uses"| node_cell_reader
node_main_entry -->|"builds calendar"| node_calendar_builder
node_batch_entry -->|"builds calendar"| node_calendar_builder
node_main_entry -->|"saves calendar"| node_ics_writer
node_batch_entry -->|"saves calendar"| node_ics_writer
node_ics_writer -->|"writes"| node_ics_output

click node_employee_list "https://github.com/aleksvizvary/schedulereader/blob/main/EmployeeNamesList.txt"
click node_main_entry "https://github.com/aleksvizvary/schedulereader/blob/main/program/main.py"
click node_batch_entry "https://github.com/aleksvizvary/schedulereader/blob/main/program/run_main.py"
click node_xlsx_parser "https://github.com/aleksvizvary/schedulereader/blob/main/program/parsing_xlsx.py"
click node_cell_reader "https://github.com/aleksvizvary/schedulereader/blob/main/program/classes.py"
click node_calendar_builder "https://github.com/aleksvizvary/schedulereader/blob/main/program/setting_calendar.py"
click node_ics_writer "https://github.com/aleksvizvary/schedulereader/blob/main/program/saving_file.py"
click node_tk_ui "https://github.com/aleksvizvary/schedulereader/blob/main/program/UI/main.py"
click node_file_picker "https://github.com/aleksvizvary/schedulereader/blob/main/program/open_file.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_employee_list,node_schedule_xlsx,node_main_entry,node_batch_entry,node_tk_ui,node_file_picker,node_user toneBlue
class node_xlsx_parser,node_cell_reader,node_calendar_builder toneAmber
class node_ics_writer,node_ics_output toneMint
```

## Components

### Schedule workflow

- [Employee names](https://github.com/aleksvizvary/schedulereader/blob/main/EmployeeNamesList.txt): `EmployeeNamesList.txt`
- **Excel schedule**
- [Main entry point](https://github.com/aleksvizvary/schedulereader/blob/main/program/main.py): `program/main.py`
- [Batch entry point](https://github.com/aleksvizvary/schedulereader/blob/main/program/run_main.py): `program/run_main.py`
- [Tk interface](https://github.com/aleksvizvary/schedulereader/blob/main/program/UI/main.py): `program/UI/main.py`
- [Schedule file picker](https://github.com/aleksvizvary/schedulereader/blob/main/program/open_file.py): `program/open_file.py`

### Parsing and calendar

- [Schedule parser](https://github.com/aleksvizvary/schedulereader/blob/main/program/parsing_xlsx.py): `program/parsing_xlsx.py`
- [Cell interpretation](https://github.com/aleksvizvary/schedulereader/blob/main/program/classes.py): `program/classes.py`
- [Calendar and events](https://github.com/aleksvizvary/schedulereader/blob/main/program/setting_calendar.py): `program/setting_calendar.py`

### Export

- [ICS file writer](https://github.com/aleksvizvary/schedulereader/blob/main/program/saving_file.py): `program/saving_file.py`
- **ICS calendar file**

### Other components

- **User**

## Connections

- User → Main entry point: starts (evidence: `program/main.py`)
- User → Batch entry point: starts (evidence: `program/run_main.py`)
- Main entry point → Employee names: reads (evidence: `program/main.py`)
- Batch entry point → Employee names: reads (evidence: `program/run_main.py`)
- Main entry point → Excel schedule: loads (evidence: `program/main.py`)
- Batch entry point → Excel schedule: loads (evidence: `program/run_main.py`)
- Main entry point → Schedule parser: parses with (evidence: `program/main.py`)
- Batch entry point → Schedule parser: parses with (evidence: `program/run_main.py`)
- Schedule parser → Cell interpretation: uses (evidence: `program/parsing_xlsx.py`)
- Main entry point → Calendar and events: builds calendar (evidence: `program/main.py`)
- Batch entry point → Calendar and events: builds calendar (evidence: `program/run_main.py`)
- Main entry point → ICS file writer: saves calendar (evidence: `program/main.py`)
- Batch entry point → ICS file writer: saves calendar (evidence: `program/run_main.py`)
- ICS file writer → ICS calendar file: writes (evidence: `program/saving_file.py`)
