# drixouuk/mppcr architecture

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

- Interactive diagram: https://gitdiagram.com/drixouuk/mppcr
- Repository: https://github.com/drixouuk/mppcr

## Overview

MPPCR is a French web application for assessing MS Project schedules. A user submits a planning file and selects DCMA-14, Monte Carlo, or both; the Flask app runs the analysis scripts and presents findings, risk estimates, and requested exports. The graph also preserves documented capabilities for scoring, forecasting, version comparison, and WBS risk breakdown. Internal analysis stages are grouped by responsibility, but unsampled orchestration and data flow within those stages are not inferred.

Main entry points: [`app.py`](https://github.com/drixouuk/mppcr/blob/main/app.py) (Flask app), [`dcma14.py`](https://github.com/drixouuk/mppcr/blob/main/dcma14.py) (DCMA-14 checks), [`montecarlo.py`](https://github.com/drixouuk/mppcr/blob/main/montecarlo.py) (Dependency network), [`rapport_pdf.py`](https://github.com/drixouuk/mppcr/blob/main/rapport_pdf.py) (PDF report)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflow"]
  node_webapp["Flask app<br/>[app.py]"]
  node_quota[("Usage counter<br/>[app.py]")]
  node_upload["Planning upload<br/>[app.py]"]
  node_formpage["Analysis form<br/>[index.html]"]
  node_errorpage["Error screen<br/>[error.html]"]
end

subgraph group_quality["Quality analysis"]
  node_dcma["DCMA-14 checks<br/>[dcma14.py]"]
  node_score["Compliance score<br/>[app.py]"]
end

subgraph group_risk["Risk analysis"]
  node_mcnetwork["Dependency network<br/>[montecarlo.py]"]
  node_mcforecast["PERT simulation<br/>[montecarlo.py]"]
  node_mcresults["Risk metrics<br/>[montecarlo.py]"]
  node_macro["WBS risk breakdown<br/>[montecarlo.py]"]
end

subgraph group_outputs["Results and exports"]
  node_compare["Version comparison<br/>[app.py]"]
  node_resultpage["Analysis results<br/>[result.html]"]
  node_csvexcel["CSV and Excel<br/>[app.py]"]
  node_pdf["PDF report<br/>[rapport_pdf.py]"]
end

node_user(("Planner"))

node_user -->|"submits analysis"| node_webapp
node_webapp -->|"accepts file"| node_upload
node_webapp -->|"checks quota"| node_quota
node_webapp -->|"runs diagnostic"| node_dcma
node_webapp -->|"runs simulation"| node_mcnetwork
node_dcma -->|"provides checks"| node_score
node_mcnetwork -->|"feeds simulation"| node_mcforecast
node_mcforecast -->|"produces metrics"| node_mcresults
node_mcresults -->|"breaks down risk"| node_macro
node_webapp -->|"compares versions"| node_compare
node_webapp -->|"renders results"| node_resultpage
node_webapp -->|"offers analysis"| node_formpage
node_webapp -->|"renders errors"| node_errorpage
node_webapp -->|"exports data"| node_csvexcel
node_webapp -->|"builds report"| node_pdf
node_pdf -->|"formats report data"| node_resultpage

click node_webapp "https://github.com/drixouuk/mppcr/blob/main/app.py"
click node_quota "https://github.com/drixouuk/mppcr/blob/main/app.py"
click node_upload "https://github.com/drixouuk/mppcr/blob/main/app.py"
click node_dcma "https://github.com/drixouuk/mppcr/blob/main/dcma14.py"
click node_score "https://github.com/drixouuk/mppcr/blob/main/app.py"
click node_mcnetwork "https://github.com/drixouuk/mppcr/blob/main/montecarlo.py"
click node_mcforecast "https://github.com/drixouuk/mppcr/blob/main/montecarlo.py"
click node_mcresults "https://github.com/drixouuk/mppcr/blob/main/montecarlo.py"
click node_macro "https://github.com/drixouuk/mppcr/blob/main/montecarlo.py"
click node_compare "https://github.com/drixouuk/mppcr/blob/main/app.py"
click node_resultpage "https://github.com/drixouuk/mppcr/blob/main/templates/result.html"
click node_formpage "https://github.com/drixouuk/mppcr/blob/main/templates/index.html"
click node_errorpage "https://github.com/drixouuk/mppcr/blob/main/templates/error.html"
click node_csvexcel "https://github.com/drixouuk/mppcr/blob/main/app.py"
click node_pdf "https://github.com/drixouuk/mppcr/blob/main/rapport_pdf.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_webapp,node_quota,node_upload,node_formpage,node_errorpage toneBlue
class node_dcma,node_score toneAmber
class node_mcnetwork,node_mcforecast,node_mcresults,node_macro toneMint
class node_compare,node_resultpage,node_csvexcel,node_pdf toneRose
class node_user toneIndigo
```

## Components

### Web workflow

- [Flask app](https://github.com/drixouuk/mppcr/blob/main/app.py): `app.py`
- [Usage counter](https://github.com/drixouuk/mppcr/blob/main/app.py): `app.py`
- [Planning upload](https://github.com/drixouuk/mppcr/blob/main/app.py): `app.py`
- [Analysis form](https://github.com/drixouuk/mppcr/blob/main/templates/index.html): `templates/index.html`
- [Error screen](https://github.com/drixouuk/mppcr/blob/main/templates/error.html): `templates/error.html`

### Quality analysis

- [DCMA-14 checks](https://github.com/drixouuk/mppcr/blob/main/dcma14.py): `dcma14.py`
- [Compliance score](https://github.com/drixouuk/mppcr/blob/main/app.py): `app.py`

### Risk analysis

- [Dependency network](https://github.com/drixouuk/mppcr/blob/main/montecarlo.py): `montecarlo.py`
- [PERT simulation](https://github.com/drixouuk/mppcr/blob/main/montecarlo.py): `montecarlo.py`
- [Risk metrics](https://github.com/drixouuk/mppcr/blob/main/montecarlo.py): `montecarlo.py`
- [WBS risk breakdown](https://github.com/drixouuk/mppcr/blob/main/montecarlo.py): `montecarlo.py`

### Results and exports

- [Version comparison](https://github.com/drixouuk/mppcr/blob/main/app.py): `app.py`
- [Analysis results](https://github.com/drixouuk/mppcr/blob/main/templates/result.html): `templates/result.html`
- [CSV and Excel](https://github.com/drixouuk/mppcr/blob/main/app.py): `app.py`
- [PDF report](https://github.com/drixouuk/mppcr/blob/main/rapport_pdf.py): `rapport_pdf.py`

### Other components

- **Planner**

## Connections

- Planner → Flask app: submits analysis (evidence: `README.md`)
- Flask app → Planning upload: accepts file (evidence: `README.md`)
- Flask app → Usage counter: checks quota (evidence: `README.md`)
- Flask app → DCMA-14 checks: runs diagnostic (evidence: `app.py`)
- Flask app → Dependency network: runs simulation (evidence: `app.py`)
- DCMA-14 checks → Compliance score: provides checks (evidence: `README.md`)
- Dependency network → PERT simulation: feeds simulation (evidence: `montecarlo.py`)
- PERT simulation → Risk metrics: produces metrics (evidence: `README.md`)
- Risk metrics → WBS risk breakdown: breaks down risk (evidence: `montecarlo.py`)
- Flask app → Version comparison: compares versions (evidence: `README.md`)
- Flask app → Analysis results: renders results (evidence: `README.md`)
- Flask app → Analysis form: offers analysis (evidence: `README.md`)
- Flask app → Error screen: renders errors (evidence: `app.py`)
- Flask app → CSV and Excel: exports data (evidence: `README.md`)
- Flask app → PDF report: builds report (evidence: `app.py`)
- PDF report → Analysis results: formats report data (evidence: `README.md`)
