# ganitachi/statclick architecture

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

- Interactive diagram: https://gitdiagram.com/ganitachi/statclick
- Repository: https://github.com/ganitachi/statclick

## Overview

Stat’Click is a desktop data-analysis application. Users sign in, create or open a project backed by a selected data file, then explore its data through tables, descriptive and inferential statistics, and visualizations; saved outputs can be assembled into a Word report. The graph preserves the documented analysis capabilities and major modules named in the source index. Evidence is limited to the README, source-index references, and excerpts; some links are therefore omitted rather than inferred.

Main entry points: [`interface/menu_projet.py`](https://github.com/ganitachi/statclick/blob/main/interface/menu_projet.py) (Project workspace), [`databases/gestion_db.py`](https://github.com/ganitachi/statclick/blob/main/databases/gestion_db.py) (Application database), [`interface/Projets.py`](https://github.com/ganitachi/statclick/blob/main/interface/Projets.py) (Project management), [`interface/accueil.py`](https://github.com/ganitachi/statclick/blob/main/interface/accueil.py) (Welcome screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Application and access"]
  node_main["Application startup<br/>[main.py]"]
  node_welcome["Welcome screen<br/>[accueil.py]"]
  node_login["Sign in<br/>[connexion.py]"]
  node_register["Registration<br/>[inscription.py]"]
end

subgraph group_projects["Project workspace"]
  node_projects["Project management<br/>[Projets.py]"]
  node_project_menu["Project workspace<br/>[menu_projet.py]"]
  node_activity["Activity tracking<br/>[Activite.py]"]
  node_data_import["Data import<br/>[menu_projet.py]"]
  node_project_model["Project data model<br/>[projet.py]"]
end

subgraph group_analysis["Statistics and analysis"]
  node_univariate_ui["Descriptive analysis UI"]
  node_univariate_model["Descriptive calculations<br/>[analyse.py]"]
  node_inferential["Inferential statistics<br/>[StatInf.py]"]
  node_acp["Principal components<br/>[ACP.py]"]
  node_acm["Multiple correspondence<br/>[ACM.py]"]
  node_summary["Analysis summaries<br/>[Choix_resum.py]"]
end

subgraph group_outputs["Visual outputs"]
  node_charts_ui["Chart creation"]
  node_charts_model["Chart interpretation<br/>[graphique.py]"]
  node_charts_view["Chart display<br/>[Graph2.py]"]
  node_tables_ui["Table management<br/>[Tableau.py]"]
  node_tables_model["Saved tables<br/>[tableau.py]"]
  node_report["Word reports<br/>[Rapport.py]"]
end

subgraph group_persistence["Data and persistence"]
  node_database[("Application database<br/>[gestion_db.py]")]
end

node_user(("User"))

node_user -->|"starts"| node_main
node_main -->|"connects"| node_database
node_main -->|"opens after intro"| node_welcome
node_user -->|"uses"| node_welcome
node_welcome -->|"offers sign-in"| node_login
node_welcome -->|"offers registration"| node_register
node_login -->|"authenticates"| node_database
node_register -->|"stores account"| node_database
node_login -->|"opens projects"| node_projects
node_projects -->|"manages projects"| node_database
node_projects -->|"opens workspace"| node_project_menu
node_projects -->|"tracks activity"| node_activity
node_project_menu -->|"loads project outputs"| node_database
node_project_menu -->|"loads project file"| node_data_import
node_project_menu -->|"opens analysis"| node_univariate_ui
node_univariate_ui -->|"calculates"| node_univariate_model
node_univariate_ui -->|"saves interpretation"| node_database
node_project_menu -->|"opens tests"| node_inferential
node_project_menu -->|"opens analysis"| node_acp
node_project_menu -->|"opens analysis"| node_acm
node_project_menu -->|"opens summaries"| node_summary
node_project_menu -->|"opens charting"| node_charts_ui
node_charts_ui -->|"interprets chart"| node_charts_model
node_charts_ui -->|"saves chart"| node_database
node_project_menu -->|"opens chart display"| node_charts_view
node_project_menu -->|"opens tables"| node_tables_ui
node_tables_ui -->|"manages saved table"| node_tables_model
node_tables_model -->|"persists table"| node_database
node_project_menu -->|"opens reporting"| node_report
node_report -->|"reads report content"| node_database
node_project_model -->|"uses storage"| node_database

click node_main "https://github.com/ganitachi/statclick/blob/main/main.py"
click node_welcome "https://github.com/ganitachi/statclick/blob/main/interface/accueil.py"
click node_login "https://github.com/ganitachi/statclick/blob/main/interface/connexion.py"
click node_register "https://github.com/ganitachi/statclick/blob/main/interface/inscription.py"
click node_projects "https://github.com/ganitachi/statclick/blob/main/interface/Projets.py"
click node_project_menu "https://github.com/ganitachi/statclick/blob/main/interface/menu_projet.py"
click node_activity "https://github.com/ganitachi/statclick/blob/main/interface/Activite.py"
click node_data_import "https://github.com/ganitachi/statclick/blob/main/interface/menu_projet.py"
click node_database "https://github.com/ganitachi/statclick/blob/main/databases/gestion_db.py"
click node_univariate_ui "https://github.com/ganitachi/statclick/blob/main/interface/Analyse_affichage.py"
click node_univariate_model "https://github.com/ganitachi/statclick/blob/main/Models/analyse.py"
click node_inferential "https://github.com/ganitachi/statclick/blob/main/interface/StatInf.py"
click node_acp "https://github.com/ganitachi/statclick/blob/main/interface/ACP.py"
click node_acm "https://github.com/ganitachi/statclick/blob/main/interface/ACM.py"
click node_summary "https://github.com/ganitachi/statclick/blob/main/interface/Choix_resum.py"
click node_charts_ui "https://github.com/ganitachi/statclick/blob/main/interface/Graphique_affiche.py"
click node_charts_model "https://github.com/ganitachi/statclick/blob/main/Models/graphique.py"
click node_charts_view "https://github.com/ganitachi/statclick/blob/main/interface/Graph2.py"
click node_tables_ui "https://github.com/ganitachi/statclick/blob/main/interface/Tableau.py"
click node_tables_model "https://github.com/ganitachi/statclick/blob/main/Models/tableau.py"
click node_report "https://github.com/ganitachi/statclick/blob/main/interface/Rapport.py"
click node_project_model "https://github.com/ganitachi/statclick/blob/main/Models/projet.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_main,node_welcome,node_login,node_register,node_user toneBlue
class node_projects,node_project_menu,node_activity,node_data_import,node_project_model toneAmber
class node_univariate_ui,node_univariate_model,node_inferential,node_acp,node_acm,node_summary toneMint
class node_charts_ui,node_charts_model,node_charts_view,node_tables_ui,node_tables_model,node_report toneRose
class node_database toneIndigo
```

## Components

### Application and access

- [Application startup](https://github.com/ganitachi/statclick/blob/main/main.py): `main.py`
- [Welcome screen](https://github.com/ganitachi/statclick/blob/main/interface/accueil.py): `interface/accueil.py`
- [Sign in](https://github.com/ganitachi/statclick/blob/main/interface/connexion.py): `interface/connexion.py`
- [Registration](https://github.com/ganitachi/statclick/blob/main/interface/inscription.py): `interface/inscription.py`

### Project workspace

- [Project management](https://github.com/ganitachi/statclick/blob/main/interface/Projets.py): `interface/Projets.py`
- [Project workspace](https://github.com/ganitachi/statclick/blob/main/interface/menu_projet.py): `interface/menu_projet.py`
- [Activity tracking](https://github.com/ganitachi/statclick/blob/main/interface/Activite.py): `interface/Activite.py`
- [Data import](https://github.com/ganitachi/statclick/blob/main/interface/menu_projet.py): `interface/menu_projet.py`
- [Project data model](https://github.com/ganitachi/statclick/blob/main/Models/projet.py): `Models/projet.py`

### Statistics and analysis

- [Descriptive analysis UI](https://github.com/ganitachi/statclick/blob/main/interface/Analyse_affichage.py): `interface/Analyse_affichage.py`
- [Descriptive calculations](https://github.com/ganitachi/statclick/blob/main/Models/analyse.py): `Models/analyse.py`
- [Inferential statistics](https://github.com/ganitachi/statclick/blob/main/interface/StatInf.py): `interface/StatInf.py`
- [Principal components](https://github.com/ganitachi/statclick/blob/main/interface/ACP.py): `interface/ACP.py`
- [Multiple correspondence](https://github.com/ganitachi/statclick/blob/main/interface/ACM.py): `interface/ACM.py`
- [Analysis summaries](https://github.com/ganitachi/statclick/blob/main/interface/Choix_resum.py): `interface/Choix_resum.py`

### Visual outputs

- [Chart creation](https://github.com/ganitachi/statclick/blob/main/interface/Graphique_affiche.py): `interface/Graphique_affiche.py`
- [Chart interpretation](https://github.com/ganitachi/statclick/blob/main/Models/graphique.py): `Models/graphique.py`
- [Chart display](https://github.com/ganitachi/statclick/blob/main/interface/Graph2.py): `interface/Graph2.py`
- [Table management](https://github.com/ganitachi/statclick/blob/main/interface/Tableau.py): `interface/Tableau.py`
- [Saved tables](https://github.com/ganitachi/statclick/blob/main/Models/tableau.py): `Models/tableau.py`
- [Word reports](https://github.com/ganitachi/statclick/blob/main/interface/Rapport.py): `interface/Rapport.py`

### Data and persistence

- [Application database](https://github.com/ganitachi/statclick/blob/main/databases/gestion_db.py): `databases/gestion_db.py`

### Other components

- **User**

## Connections

- User → Application startup: starts (evidence: `README.md`)
- Application startup → Application database: connects (evidence: `main.py`)
- Application startup → Welcome screen: opens after intro (evidence: `main.py`)
- User → Welcome screen: uses (evidence: `README.md`)
- Welcome screen → Sign in: offers sign-in (evidence: `interface/accueil.py`)
- Welcome screen → Registration: offers registration (evidence: `interface/accueil.py`)
- Sign in → Application database: authenticates (evidence: `interface/connexion.py`)
- Registration → Application database: stores account (evidence: `interface/inscription.py`)
- Sign in → Project management: opens projects (evidence: `interface/connexion.py`)
- Project management → Application database: manages projects (evidence: `interface/Projets.py`)
- Project management → Project workspace: opens workspace (evidence: `interface/Projets.py`)
- Project management → Activity tracking: tracks activity (evidence: `interface/Projets.py`)
- Project workspace → Application database: loads project outputs (evidence: `interface/menu_projet.py`)
- Project workspace → Data import: loads project file (evidence: `interface/menu_projet.py`)
- Project workspace → Descriptive analysis UI: opens analysis (evidence: `interface/menu_projet.py`)
- Descriptive analysis UI → Descriptive calculations: calculates (evidence: `interface/Analyse_affichage.py`)
- Descriptive analysis UI → Application database: saves interpretation (evidence: `interface/Analyse_affichage.py`)
- Project workspace → Inferential statistics: opens tests (evidence: `interface/menu_projet.py`)
- Project workspace → Principal components: opens analysis (evidence: `interface/menu_projet.py`)
- Project workspace → Multiple correspondence: opens analysis (evidence: `interface/menu_projet.py`)
- Project workspace → Analysis summaries: opens summaries (evidence: `interface/menu_projet.py`)
- Project workspace → Chart creation: opens charting (evidence: `interface/menu_projet.py`)
- Chart creation → Chart interpretation: interprets chart (evidence: `interface/Graphique_affiche.py`)
- Chart creation → Application database: saves chart (evidence: `interface/Graphique_affiche.py`)
- Project workspace → Chart display: opens chart display (evidence: `interface/menu_projet.py`)
- Project workspace → Table management: opens tables (evidence: `interface/menu_projet.py`)
- Table management → Saved tables: manages saved table (evidence: `interface/Tableau.py`)
- Saved tables → Application database: persists table (evidence: `Models/tableau.py`)
- Project workspace → Word reports: opens reporting (evidence: `interface/menu_projet.py`)
- Word reports → Application database: reads report content (evidence: `interface/Rapport.py`)
- Project data model → Application database: uses storage (evidence: `Models/projet.py`)
