How abdelghanikemmissa/football-international-1872-aujourd-hui- works
This is a football-data analytics project: raw match-related CSVs are loaded into DuckDB, transformed through dbt staging, intermediate, and mart models, then exported as CSVs for analysis in the Power BI report. The loader and exporter relationships are visible in the sampled Python files. SQL model dependencies and the report’s data connections were not sampled, so those links are shown as unverified rather than asserted.
Main entry points: int_matches.sql Match integration · dev.duckdb DuckDB warehouse · fact_match.sql Match fact · load_raw.py Raw data loader
Components 19
Data ingestion
- Raw CSV datasets
football_bi/data/raw - Raw data loader
football_bi/load_raw.py - DuckDB warehouse
football_bi/dev.duckdb
dbt transformations
- Results staging
football_bi/models/staging/stg_results.sql - Shootouts staging
football_bi/models/staging/stg_shootouts.sql - Goalscorers staging
football_bi/models/staging/stg_goalscorers.sql - Former names staging
football_bi/models/staging/stg_former_names.sql - Match integration
football_bi/models/intermediate/int_matches.sql - Goal integration
football_bi/models/intermediate/int_goals.sql - Shootout integration
football_bi/models/intermediate/int_shootouts.sql
Analytics marts
- Date dimension
football_bi/models/marts/dim_date.sql - Team dimension
football_bi/models/marts/dim_team.sql - Tournament dimension
football_bi/models/marts/dim_tournament.sql - Venue dimension
football_bi/models/marts/dim_venue.sql - Match fact
football_bi/models/marts/fact_match.sql - Team-match view
football_bi/models/marts/v_team_match.sql
Reporting and export
- Mart CSV exporter
football_bi/export_marts.py - Exported mart CSVs
football_bi/exports - Power BI report
football_bi/football_bi_project.pbix
Connections 21
- Raw data loader → Raw CSV datasets: reads CSVs
football_bi/load_raw.py - Raw data loader → DuckDB warehouse: loads tables
football_bi/load_raw.py - Results staging → DuckDB warehouse: reads raw data
- Shootouts staging → DuckDB warehouse: reads raw data
- Goalscorers staging → DuckDB warehouse: reads raw data
- Former names staging → DuckDB warehouse: reads raw data
- Match integration → Results staging: transforms
- Goal integration → Goalscorers staging: transforms
- Shootout integration → Shootouts staging: transforms
- Date dimension → Match integration: builds dimension
- Team dimension → Match integration: builds dimension
- Team dimension → Former names staging: uses name history
- Tournament dimension → Match integration: builds dimension
- Venue dimension → Match integration: builds dimension
- Match fact → Match integration: builds fact
- Match fact → Goal integration: uses goals
- Match fact → Shootout integration: uses shootouts
- Team-match view → Match fact: derives view
- Mart CSV exporter → DuckDB warehouse: copies mart tables
football_bi/export_marts.py - Mart CSV exporter → Exported mart CSVs: writes CSVs
football_bi/export_marts.py - Power BI report → Exported mart CSVs: may consume