# dongdongju96/hf_auto_finance architecture

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

- Interactive diagram: https://gitdiagram.com/dongdongju96/hf_auto_finance
- Repository: https://github.com/dongdongju96/hf_auto_finance

## Overview

##### Main System Components

a) Bank/Lender Modules Layer
- Individual bank modules (CIBC, RBC, TD, etc.) as parallel components
- Each module contains two standard components:
- input_data.py (data processing)
- licence_check.py (authentication/verification)

b) Core Infrastructure Layer
- Web Manipulation Module (web_manipulate folder)
- Image Processing System (connected to Google Cloud Vision API)
- Airtable Integration (for data storage/retrieval)

c) External Services Layer
- Chrome Driver (Selenium)
- Google Cloud Vision API
- Airtable API

**[User Interface Layer]**
- ↓
**[Bank/Lender Modules Layer]**
- ↓
**[Core Infrastructure Layer]**
- ↓
**[External Services Layer]**

##### Specific Details to Highlight

- Authentication Flow:
- How licence_check.py interfaces with Dealertrack
- Credential verification paths

- Data Processing Flow:
- Demonstrate how input_data.py connects with web automation
- Image processing pipeline

- Environment Configuration:
- Where .env configuration impacts the system
- Integration points with external APIs

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "User Interface Layer"
        UI[User Interface]
    end

    subgraph "Bank/Lender Modules Layer"
        CIBC["CIBC Module"]:::bank
        RBC["RBC Module"]:::bank
        TD["TD Auto Module"]:::bank
        Scotia["Scotiabank Module"]:::bank
        Desj["Desjardins Module"]:::bank
        NBC["National Bank Module"]:::bank
        Sant["Santander Module"]:::bank

        subgraph "Standard Components"
            Input["input_data.py"]:::component
            License["licence_check.py"]:::component
        end
    end

    subgraph "Core Infrastructure Layer"
        WebMan["Web Manipulation Module"]:::core
        ImgProc["Image Processing System"]:::core
        AirTable["Airtable Integration"]:::core
        DealerTrack["Dealertrack Integration"]:::core
        WebArrange["Web Arrangement Logic"]:::core
    end

    subgraph "External Services Layer"
        Chrome["Chrome Driver"]:::external
        Vision["Google Cloud Vision API"]:::external
        AirAPI["Airtable API"]:::external
    end

    %% Relationships
    UI --> CIBC & RBC & TD & Scotia & Desj & NBC & Sant
    CIBC & RBC & TD & Scotia & Desj & NBC & Sant --> WebMan
    WebMan --> DealerTrack
    WebMan --> WebArrange
    ImgProc --> Vision
    AirTable --> AirAPI
    WebMan --> Chrome

    %% Click Events
    click CIBC "https://github.com/dongdongju96/HF_AUTO_FINANCE/tree/main/CIBC"
    click RBC "https://github.com/dongdongju96/HF_AUTO_FINANCE/tree/main/RBC"
    click TD "https://github.com/dongdongju96/HF_AUTO_FINANCE/tree/main/TDauto"
    click Scotia "https://github.com/dongdongju96/HF_AUTO_FINANCE/tree/main/scotiabank"
    click Desj "https://github.com/dongdongju96/HF_AUTO_FINANCE/tree/main/DESJARDINS"
    click NBC "https://github.com/dongdongju96/HF_AUTO_FINANCE/tree/main/NBC"
    click Sant "https://github.com/dongdongju96/HF_AUTO_FINANCE/tree/main/Santander"
    click WebMan "https://github.com/dongdongju96/HF_AUTO_FINANCE/tree/main/web_manipulate"
    click ImgProc "https://github.com/dongdongju96/HF_AUTO_FINANCE/tree/main/image"
    click AirTable "https://github.com/dongdongju96/HF_AUTO_FINANCE/tree/main/scotiabank/airtable_data"
    click Input "https://github.com/dongdongju96/HF_AUTO_FINANCE/blob/main/*/input_data.py"
    click License "https://github.com/dongdongju96/HF_AUTO_FINANCE/blob/main/*/licence_check.py"
    click DealerTrack "https://github.com/dongdongju96/HF_AUTO_FINANCE/blob/main/web_manipulate/Dealertrack_test_gpt.py"
    click WebArrange "https://github.com/dongdongju96/HF_AUTO_FINANCE/blob/main/web_manipulate/arrange_2.py"

    %% Styling
    classDef bank fill:#3498db,stroke:#2980b9,color:white
    classDef core fill:#2ecc71,stroke:#27ae60,color:white
    classDef external fill:#e67e22,stroke:#d35400,color:white
    classDef component fill:#95a5a6,stroke:#7f8c8d,color:white

    %% Legend
    subgraph Legend
        L1["Bank Module"]:::bank
        L2["Core Component"]:::core
        L3["External Service"]:::external
        L4["Standard Component"]:::component
    end
```
