# h-ssiqueira/blood_sugar_level architecture

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

- Interactive diagram: https://gitdiagram.com/h-ssiqueira/blood_sugar_level
- Repository: https://github.com/h-ssiqueira/blood_sugar_level

## Overview

This repository is a personal blood-glucose dataset with small Python utilities for formatting CSV data and initializing/importing it into MySQL. The documented workflow includes glucose-range interpretation and a Kaggle visualization example, but no visualization application is present here. The excerpts show the formatter operating on files in data/formatted and the database loader importing that directory; they do not show a connection from data/original to the formatter. The database utilities and domain insights are documented, but no query or reporting workflow is shown.

Main entry points: [`project/infrastructure/database.py`](https://github.com/h-ssiqueira/blood_sugar_level/blob/master/project/infrastructure/database.py) (Database initializer and importer), [`data/formatted`](https://github.com/h-ssiqueira/blood_sugar_level/tree/master/data/formatted) (Formatted CSVs), [`project/util/languageUtil.py`](https://github.com/h-ssiqueira/blood_sugar_level/blob/master/project/util/languageUtil.py) (CSV formatter), [`data/bloodSugarLevelTable.sql`](https://github.com/h-ssiqueira/blood_sugar_level/blob/master/data/bloodSugarLevelTable.sql) (Table schema)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Glucose data"]
  node_original["Original CSVs"]
  node_formatted["Formatted CSVs"]
end

subgraph group_processing["Data processing"]
  node_formatter["CSV formatter<br/>[languageUtil.py]"]
end

subgraph group_storage["Database storage"]
  node_schema["Table schema"]
  node_loader["Database initializer and importer<br/>[database.py]"]
  node_mysql[("MySQL database")]
end

subgraph group_insights["Interpretation"]
  node_interpretation["Glucose ranges and insights<br/>[README.md]"]
  node_kaggle["Kaggle dataset and example"]
end

node_formatter -->|"formats in place"| node_formatted
node_loader -->|"imports CSVs"| node_formatted
node_loader -->|"executes schema"| node_schema
node_loader -->|"creates and populates"| node_mysql
node_kaggle -.->|"provides clear data"| node_formatted
node_kaggle -->|"hosts example"| node_interpretation

click node_original "https://github.com/h-ssiqueira/blood_sugar_level/tree/master/data/original"
click node_formatter "https://github.com/h-ssiqueira/blood_sugar_level/blob/master/project/util/languageUtil.py"
click node_formatted "https://github.com/h-ssiqueira/blood_sugar_level/tree/master/data/formatted"
click node_schema "https://github.com/h-ssiqueira/blood_sugar_level/blob/master/data/bloodSugarLevelTable.sql"
click node_loader "https://github.com/h-ssiqueira/blood_sugar_level/blob/master/project/infrastructure/database.py"
click node_interpretation "https://github.com/h-ssiqueira/blood_sugar_level/blob/master/README.md"

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_original,node_formatted toneBlue
class node_formatter toneAmber
class node_schema,node_loader,node_mysql toneMint
class node_interpretation,node_kaggle toneRose
```

## Components

### Glucose data

- [Original CSVs](https://github.com/h-ssiqueira/blood_sugar_level/tree/master/data/original): `data/original`
- [Formatted CSVs](https://github.com/h-ssiqueira/blood_sugar_level/tree/master/data/formatted): `data/formatted`

### Data processing

- [CSV formatter](https://github.com/h-ssiqueira/blood_sugar_level/blob/master/project/util/languageUtil.py): `project/util/languageUtil.py`

### Database storage

- [Table schema](https://github.com/h-ssiqueira/blood_sugar_level/blob/master/data/bloodSugarLevelTable.sql): `data/bloodSugarLevelTable.sql`
- [Database initializer and importer](https://github.com/h-ssiqueira/blood_sugar_level/blob/master/project/infrastructure/database.py): `project/infrastructure/database.py`
- **MySQL database**

### Interpretation

- [Glucose ranges and insights](https://github.com/h-ssiqueira/blood_sugar_level/blob/master/README.md): `README.md`
- **Kaggle dataset and example**

## Connections

- CSV formatter → Formatted CSVs: formats in place (evidence: `project/util/languageUtil.py`)
- Database initializer and importer → Formatted CSVs: imports CSVs (evidence: `project/infrastructure/database.py`)
- Database initializer and importer → Table schema: executes schema (evidence: `project/infrastructure/database.py`)
- Database initializer and importer → MySQL database: creates and populates (evidence: `project/infrastructure/database.py`)
- Kaggle dataset and example → Formatted CSVs: provides clear data (evidence: `README.md`)
- Kaggle dataset and example → Glucose ranges and insights: hosts example (evidence: `README.md`)
