# pierrekasparian/data-science-fantasy-premier-league architecture

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

- Interactive diagram: https://gitdiagram.com/pierrekasparian/data-science-fantasy-premier-league
- Repository: https://github.com/pierrekasparian/data-science-fantasy-premier-league

## Overview

This is a focused command-line data-matching utility: it reconciles Wyscout Premier League player records with FPL records, using playing time, team overlap, and name similarity, then writes match and unmatched reports. The single sampled script owns the full workflow; the README is empty, so input and output relationships are based on the script’s documented usage and file operations.

Main entry points: [`matching/match_players.py`](https://github.com/pierrekasparian/data-science-fantasy-premier-league/blob/main/matching/match_players.py) (Player matching), [`premier-league-2017-18`](https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/premier-league-2017-18) (Wyscout season data), [`fpl/2017-18`](https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/fpl/2017-18) (FPL 2017–18 data), [`fpl/2018-19`](https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/fpl/2018-19) (FPL 2018–19 data)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_operator(("Repository operator"))
node_matcher["Player matching<br/>[match_players.py]"]
node_wyscout[("Wyscout season data")]
node_fpl1718[("FPL 2017–18 data")]
node_fpl1819[("FPL 2018–19 data")]
node_mapping["Player ID mapping"]
node_unmatched["Unmatched report"]

node_operator -->|"runs"| node_matcher
node_matcher -->|"reads"| node_wyscout
node_matcher -->|"reads"| node_fpl1718
node_matcher -->|"reads"| node_fpl1819
node_matcher -->|"writes"| node_mapping
node_matcher -->|"writes"| node_unmatched

click node_matcher "https://github.com/pierrekasparian/data-science-fantasy-premier-league/blob/main/matching/match_players.py"
click node_wyscout "https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/premier-league-2017-18"
click node_fpl1718 "https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/fpl/2017-18"
click node_fpl1819 "https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/fpl/2018-19"
click node_mapping "https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/matching"
click node_unmatched "https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/matching"

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_operator toneIndigo
class node_matcher,node_mapping,node_unmatched toneTeal
class node_wyscout,node_fpl1718,node_fpl1819 toneAmber
```

## Components

### Other components

- **Repository operator**
- [Player matching](https://github.com/pierrekasparian/data-science-fantasy-premier-league/blob/main/matching/match_players.py): `matching/match_players.py`
- [Wyscout season data](https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/premier-league-2017-18): `premier-league-2017-18`
- [FPL 2017–18 data](https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/fpl/2017-18): `fpl/2017-18`
- [FPL 2018–19 data](https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/fpl/2018-19): `fpl/2018-19`
- [Player ID mapping](https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/matching): `matching`
- [Unmatched report](https://github.com/pierrekasparian/data-science-fantasy-premier-league/tree/main/matching): `matching`

## Connections

- Repository operator → Player matching: runs (evidence: `matching/match_players.py`)
- Player matching → Wyscout season data: reads (evidence: `matching/match_players.py`)
- Player matching → FPL 2017–18 data: reads (evidence: `matching/match_players.py`)
- Player matching → FPL 2018–19 data: reads (evidence: `matching/match_players.py`)
- Player matching → Player ID mapping: writes (evidence: `matching/match_players.py`)
- Player matching → Unmatched report: writes (evidence: `matching/match_players.py`)
