# matigranjero/acau architecture

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

- Interactive diagram: https://gitdiagram.com/matigranjero/acau
- Repository: https://github.com/matigranjero/acau

## Overview

##### Project type and purpose
- This is a console‐based, monolithic Python application (“ACAU”) whose sole purpose is to administer users via a text‐based UI.
- README confirms: “Aplicacion de Consola de Administracion de Usuarios.”

##### File structure
- Top-level Python scripts:
- launcher.py  – Application entry point / orchestrator
- login.py     – Authentication logic
- menu.py      – Main menu and command routing
- variables.py – Configuration constants (e.g., DB credentials, file paths)
- Data artifacts:
- prueba_roles.sql / prueba_usuarios.sql – SQL DDL or seed scripts
- tabla u.csv / tabla usuarios.csv – CSV exports of user data
- No frontend directory—entirely back‐end/CLI logic.
- No build/deployment scripts; it runs on the Python interpreter.

##### README for additional insights
- Implied dependencies: Python standard library, a SQL engine (e.g., SQLite, MySQL) or CSV parser.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% External Actor
    User(["User (CLI)"]):::actor

    %% Monolithic Application Container
    subgraph "Monolithic App"
        direction TB
        Launcher["Launcher"]:::module
        Auth["Authentication Module"]:::module
        Menu["Menu Module"]:::module
        BL["Business Logic"]:::module
        DAL["Data Access Layer"]:::module
        Config["Configuration Store"]:::config
    end

    %% Data Stores
    subgraph "Data Stores"
        direction TB
        SQL1[/prueba_roles.sql/]:::data
        SQL2[/prueba_usuarios.sql/]:::data
        CSV1[/tabla u.csv/]:::data
        CSV2[/tabla usuarios.csv/]:::data
    end

    %% Flow
    User -->|"invoke launcher.py"| Launcher
    Launcher -->|"load config"| Config
    Launcher -->|"call login()"| Auth
    Auth -->|"query data"| DAL
    DAL -->|"execute SQL"| SQL1
    DAL -->|"execute SQL"| SQL2
    DAL -->|"read/write CSV"| CSV1
    DAL -->|"read/write CSV"| CSV2
    Auth -->|"auth result"| Launcher
    Launcher -->|"start menu"| Menu
    Menu -->|"handle command"| BL
    BL -->|"use data access"| DAL
    DAL -->|"return data"| BL
    BL -->|"return result"| Menu
    Menu -->|"display output"| User

    %% Click Events
    click Launcher "https://github.com/matigranjero/acau/blob/Develop/launcher.py"
    click Auth "https://github.com/matigranjero/acau/blob/Develop/login.py"
    click Menu "https://github.com/matigranjero/acau/blob/Develop/menu.py"
    click Config "https://github.com/matigranjero/acau/blob/Develop/variables.py"
    click SQL1 "https://github.com/matigranjero/acau/blob/Develop/prueba_roles.sql"
    click SQL2 "https://github.com/matigranjero/acau/blob/Develop/prueba_usuarios.sql"
    click CSV1 "https://github.com/matigranjero/acau/blob/Develop/tabla u.csv"
    click CSV2 "https://github.com/matigranjero/acau/blob/Develop/tabla usuarios.csv"

    %% Styles
    classDef module fill:#ADD8E6,stroke:#000,stroke-width:1px
    classDef data fill:#90EE90,stroke:#000,stroke-width:1px
    classDef config fill:#D3D3D3,stroke:#000,stroke-width:1px
    classDef actor fill:#F5B7B1,stroke:#000,stroke-width:1px,shape:circle
```
