# masabhuq/faculty_finder_urms architecture

> Architecture diagram of the GitHub repository masabhuq/faculty_finder_urms, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/masabhuq/faculty_finder_urms
- Repository: https://github.com/masabhuq/faculty_finder_urms

## Overview

##### Main Components
- Data Source: The Excel files (fall_data.xlsx, spring_data.xlsx) in the src/dataset directory. These serve as the raw input data specifying faculty assignments.
- Data Processing Layer: The core components that process Excel files using the Pandas library. This comprises the processing logic found in the scripts (for instance, in src/scripts/course_manager.py) and any code invoked by app.py.
- Application Entry Point: The app.py file which likely glues together the processing routines and provides an interface (CLI or otherwise) to allow users to input course codes and sections during preregistration.
- Interactive/Exploratory Environment: The Jupyter notebooks located in src/notebook that may be used for further exploration, testing, or demonstration of the processing logic.
- Project Configuration & Management: Files such as pyproject.toml and the .idea folder indicate dependency management and IDE configuration, which although not part of the runtime architecture, should be mentioned as project scaffolding.

##### Relationships and Interactions Between Components
- Data Flow starts with the raw Excel files (src/dataset) which are read and processed by the processing logic scripts.
- The processing logic (modules in src/scripts, and possibly helper code inside src/__init__.py) uses Pandas to transform the Excel data into an accessible format.
- The app.py file serves as the orchestrator, receiving user input (for section or course code) and invoking the correct routines to look up faculty information.
- The notebooks in src/notebook likely serve as an interactive demonstration of these components or test/experiment on the data processing routines.

##### Architectural Patterns and Design Principles
- Although this project is relatively small-scale, it demonstrates a separation of concerns:
- Data Input (Excel files under src/dataset),
- Data Processing (scripts handling the business logic in src/scripts),
- Application Logic (the main runner in app.py), and
- Experimentation/Development (Jupyter notebooks in src/notebook).
- This modular structure allows for flexibility: processing logic is decoupled from the application entry point, and both are separated from the raw data.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Data Layer"
        DF["Excel Data Input: Fall Data"]:::datalayer
        DS["Excel Data Input: Spring Data"]:::datalayer
    end

    subgraph "Business Logic Layer"
        PD["Pandas Data Processor (course_manager.py)"]:::processinglayer
        PL["Pandas Library"]:::processinglayer
    end

    subgraph "Application Layer"
        AP["Application Entry Point (app.py)"]:::applicationlayer
    end

    subgraph "Development/Testing Layer"
        NB["Interactive Notebook Environment (processing.ipynb)"]:::exploratorylayer
    end

    subgraph "Project Configuration"
        PC1["pyproject.toml"]:::scaffolding
        PC2[".idea"]:::scaffolding
    end

    %% Connections
    DF -->|"processes"| PD
    DS -->|"processes"| PD
    PD -->|"uses"| PL
    PD -->|"invokes"| AP
    PD -->|"demoUses"| NB
    PC1 ---|"configures"| AP
    PC2 ---|"configures"| AP

    %% Click Events
    click DF "https://github.com/masabhuq/faculty_finder_urms/blob/master/src/dataset/fall_data.xlsx"
    click DS "https://github.com/masabhuq/faculty_finder_urms/blob/master/src/dataset/spring_data.xlsx"
    click PD "https://github.com/masabhuq/faculty_finder_urms/blob/master/src/scripts/course_manager.py"
    click AP "https://github.com/masabhuq/faculty_finder_urms/blob/master/app.py"
    click NB "https://github.com/masabhuq/faculty_finder_urms/blob/master/src/notebook/processing.ipynb"
    click PC1 "https://github.com/masabhuq/faculty_finder_urms/blob/master/pyproject.toml"
    click PC2 "https://github.com/masabhuq/faculty_finder_urms/blob/master/.idea"

    %% Styles
    classDef datalayer fill:#FFEEAD,stroke:#F39C12,stroke-width:2px,color:#000;
    classDef processinglayer fill:#AED6F1,stroke:#2E86C1,stroke-width:2px,color:#000;
    classDef applicationlayer fill:#ABEBC6,stroke:#27AE60,stroke-width:2px,color:#000;
    classDef exploratorylayer fill:#FADBD8,stroke:#E74C3C,stroke-width:2px,color:#000;
    classDef scaffolding fill:#D7BDE2,stroke:#8E44AD,stroke-width:2px,color:#000;
```
