# qgeeks/q-etl architecture

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

- Interactive diagram: https://gitdiagram.com/qgeeks/q-etl
- Repository: https://github.com/qgeeks/q-etl

## Overview

##### Main Components Identification

a. Core Engine Components:
- Input System (python/engine/inputs.py)
- Worker System (python/engine/workers.py)
- Output System (python/engine/outputs.py)
- Constructor System (python/engine/constructors.py)
- Integration System (python/engine/integrations.py)

b. Supporting Infrastructure:
- Core utilities (python/core/)
- Database handling (python/core/db.py)
- Logging system (python/core/logger.py)

c. Server Component:
- Server application (server/app/)
- Service management scripts (server/bin/)

**┌─────────────────────────────────────────── Q-ETL Framework ───────────────────────────────────────┐**

- ┌─────────────┐    ┌───────────────────── Core Engine ─────────────────────┐    ┌────────────┐  │

- Inputs    │    │  ┌──────────┐   ┌─────────┐   ┌──────────┐          │    │  Outputs   │  │
- System    │───▶│  │Constructor│──▶│ Workers │──▶│Integration│          │───▶│  System    │  │
- ┘   └─────────┘   └──────────┘          │    │            │  │
- ┘    │                                                        │    └────────────┘  │
- ┘                   │

- ┌─────────────────────────── Supporting Infrastructure ───────────────────────────┐             │

- ┌──────────┐    ┌────────────┐    ┌───────────┐    ┌─────────────────┐     │             │
- Database │    │   Logger   │    │   Misc    │    │ Configuration   │     │             │
- Handler  │    │  System    │    │ Utilities │    │    Manager     │     │             │
- ┘    └────────────┘    └───────────┘    └─────────────────┘     │             │
- ┘             │

- ┌─────────────────────────────── Server Component ──────────────────────────────┐               │

- ┌──────────────┐    ┌─────────────────┐    ┌────────────────────┐        │               │
- Server    │    │ Service Manager  │    │      Logging       │        │               │
- Application  │    │     Scripts     │    │    Infrastructure  │        │               │
- ┘    └─────────────────┘    └────────────────────┘        │               │
- ┘               │
- ┘

##### Important Elements

a. Data Flow Representation:
- How data moves from input through the processing pipeline to output
- Transformation points in the Workers component
- Integration points with external systems

b. Component Interactions:
- Demonstrate how the Constructor system initializes processes
- Logging system interactions across components
- Database interactions where applicable

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Main container
    subgraph Q-ETL["Q-ETL Framework"]
        %% Core Engine Section
        subgraph CoreEngine["Core Engine"]
            Constructor["Constructor System"]
            Workers["Worker System"]
            Integration["Integration System"]
            QGIS["QGIS Engine"]
            
            Constructor --> Workers
            Workers --> Integration
            Workers --- QGIS
        end

        %% Input/Output Systems
        InputSystem["Input System"]
        OutputSystem["Output System"]
        
        InputSystem --> CoreEngine
        CoreEngine --> OutputSystem

        %% Supporting Infrastructure
        subgraph Support["Supporting Infrastructure"]
            DB["Database Handler"]
            Logger["Logger System"]
            Utils["Misc Utilities"]
            Config["Configuration Manager"]
        end

        %% Server Components
        subgraph Server["Server Component"]
            ServerApp["Server Application"]
            ServiceMgr["Service Manager Scripts"]
            LogInfra["Logging Infrastructure"]
        end
    end

    %% Component Interactions
    Support --> CoreEngine
    Support --> Server
    
    %% Styling
    classDef core fill:#2374ab
    classDef io fill:#57a773
    classDef support fill:#ffc857
    classDef server fill:#929292
    classDef qgis fill:#ff7f50

    class Constructor,Workers,Integration core
    class InputSystem,OutputSystem io
    class DB,Logger,Utils,Config support
    class ServerApp,ServiceMgr,LogInfra server
    class QGIS qgis

    %% Click events for component mapping
    click InputSystem "https://github.com/QGEEKS/Q-ETL/blob/main/python/engine/inputs.py"
    click Workers "https://github.com/QGEEKS/Q-ETL/blob/main/python/engine/workers.py"
    click OutputSystem "https://github.com/QGEEKS/Q-ETL/blob/main/python/engine/outputs.py"
    click Constructor "https://github.com/QGEEKS/Q-ETL/blob/main/python/engine/constructors.py"
    click Integration "https://github.com/QGEEKS/Q-ETL/blob/main/python/engine/integrations.py"
    click DB "https://github.com/QGEEKS/Q-ETL/blob/main/python/core/db.py"
    click Logger "https://github.com/QGEEKS/Q-ETL/blob/main/python/core/logger.py"
    click Utils "https://github.com/QGEEKS/Q-ETL/blob/main/python/core/misc.py"
    click ServerApp "https://github.com/QGEEKS/Q-ETL/blob/main/server/app/Q-ETL.exe"
    click ServiceMgr "https://github.com/QGEEKS/Q-ETL/tree/main/server/bin/"
    click LogInfra "https://github.com/QGEEKS/Q-ETL/blob/main/server/logs/logs.txt"
    click Config "https://github.com/QGEEKS/Q-ETL/blob/main/settings_template.json"

    %% Legend
    subgraph Legend
        L1["Core Components"]:::core
        L2["Input/Output Systems"]:::io
        L3["Supporting Infrastructure"]:::support
        L4["Server Components"]:::server
        L5["QGIS Engine"]:::qgis
    end
```
