# barthelemy-bengloan/project_adv_python_git_linux architecture

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

- Interactive diagram: https://gitdiagram.com/barthelemy-bengloan/project_adv_python_git_linux
- Repository: https://github.com/barthelemy-bengloan/project_adv_python_git_linux

## Overview

This is a Python Dash dashboard for viewing market-price history and intraday analysis. The visible workflow is a user opening the dashboard, which reads historical or real-time CSV data and presents charts and daily metrics; a scheduled-in-code routine can roll intraday data into history at 20:00. The tree also names scraping scripts and a cron file, but their contents and wiring were not provided, so those acquisition components are shown without asserted connections. Evidence is limited to the README and the dashboard excerpts.

Main entry points: [`dashboard.py`](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/dashboard.py) (Dash application), [`data_output.csv`](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/data_output.csv) (Intraday prices), [`data_history.csv`](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/data_history.csv) (Price history)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_dash_app["Dash application<br/>[dashboard.py]"]
end

subgraph group_analytics["Analytics"]
  node_history_processing["History processing<br/>[dashboard.py]"]
  node_intraday_report["Intraday report<br/>[dashboard.py]"]
  node_risk_metrics["Risk metrics<br/>[dashboard.py]"]
end

subgraph group_data["Market data"]
  node_history_csv[("Price history<br/>[data_history.csv]")]
  node_intraday_csv[("Intraday prices<br/>[data_output.csv]")]
  node_raw_json["Raw data<br/>[raw_data.json]"]
end

subgraph group_acquisition["Data acquisition"]
  node_scrapers["Scraping scripts<br/>[scrape_history.sh]"]
  node_intraday_scraper["Intraday scraper<br/>[scrape_intraday.sh]"]
  node_cron_schedule["Intraday schedule<br/>[cron_intraday.txt]"]
end

node_user(("Dashboard user"))

node_user -->|"opens"| node_dash_app
node_dash_app -->|"renders history"| node_history_processing
node_history_processing -->|"reads"| node_history_csv
node_dash_app -->|"creates report"| node_intraday_report
node_intraday_report -->|"reads"| node_intraday_csv
node_intraday_report -->|"calculates"| node_risk_metrics
node_dash_app -->|"reads"| node_intraday_csv
node_dash_app -->|"updates at 20:00"| node_history_csv
node_dash_app -->|"reads for update"| node_intraday_csv

click node_dash_app "https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/dashboard.py"
click node_history_processing "https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/dashboard.py"
click node_intraday_report "https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/dashboard.py"
click node_risk_metrics "https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/dashboard.py"
click node_history_csv "https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/data_history.csv"
click node_intraday_csv "https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/data_output.csv"
click node_raw_json "https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/raw_data.json"
click node_scrapers "https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/scrape_history.sh"
click node_intraday_scraper "https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/scrape_intraday.sh"
click node_cron_schedule "https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/cron_intraday.txt"

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_dash_app,node_user toneBlue
class node_history_processing,node_intraday_report,node_risk_metrics toneAmber
class node_history_csv,node_intraday_csv,node_raw_json toneMint
class node_scrapers,node_intraday_scraper,node_cron_schedule toneRose
```

## Components

### Dashboard

- [Dash application](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/dashboard.py): `dashboard.py`

### Analytics

- [History processing](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/dashboard.py): `dashboard.py`
- [Intraday report](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/dashboard.py): `dashboard.py`
- [Risk metrics](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/dashboard.py): `dashboard.py`

### Market data

- [Price history](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/data_history.csv): `data_history.csv`
- [Intraday prices](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/data_output.csv): `data_output.csv`
- [Raw data](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/raw_data.json): `raw_data.json`

### Data acquisition

- [Scraping scripts](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/scrape_history.sh): `scrape_history.sh`
- [Intraday scraper](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/scrape_intraday.sh): `scrape_intraday.sh`
- [Intraday schedule](https://github.com/barthelemy-bengloan/project_adv_python_git_linux/blob/main/cron_intraday.txt): `cron_intraday.txt`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Dash application: opens (evidence: `dashboard.py`)
- Dash application → History processing: renders history (evidence: `dashboard.py`)
- History processing → Price history: reads (evidence: `dashboard.py`)
- Dash application → Intraday report: creates report (evidence: `dashboard.py`)
- Intraday report → Intraday prices: reads (evidence: `dashboard.py`)
- Intraday report → Risk metrics: calculates (evidence: `dashboard.py`)
- Dash application → Intraday prices: reads (evidence: `dashboard.py`)
- Dash application → Price history: updates at 20:00 (evidence: `dashboard.py`)
- Dash application → Intraday prices: reads for update (evidence: `dashboard.py`)
