How badr-abba/atlasperformance works
AtlasPerformance is a football analytics platform for World Cup and Africa Cup of Nations data. Its main workflow is to extract competition, team, match and player data from a football API, clean and validate it, persist it, then serve API and dashboard views with statistics and player-performance insights. The graph also includes the documented match-comparison and search capabilities. Some routes and frontend wiring are only partially sampled; those links are shown only where the README or source index supports them.
Main entry points: run_etl.py ETL orchestrator · main.py FastAPI application · models.py Domain models · database.py PostgreSQL database
Components 22
Data ingestion
- ETL orchestrator
etl/run_etl.py - Competition extraction
etl/extract/competitions.py - Team extraction
etl/extract/teams.py - Match extraction
etl/extract/matches.py - Player and stats extraction
etl/extract/players.py - API client and cache
etl/utils/http_client.py
ETL processing
- Data cleaning
etl/transform/cleaners.py - Data validation
etl/transform/validators.py - Database loaders
etl/load/loaders.py
Application API
- FastAPI application
app/main.py - Competition and team routes
app/routers/competitions.py - Match routes
app/routers/matches.py - Player routes
app/routers/players.py - Performance routes
app/routers/performances.py - API schemas
app/schemas
Analytics experience
- Analytics routes
app/routers/analytics.py - Statistics service
app/services/statistics_service.py - Dashboard and search
frontend/templates
Persistence
- Domain models
app/models.py - PostgreSQL database
app/database.py
Other components
- Analyst
- Football data API
Connections 35
- Analyst → FastAPI application: requests views
README.md - FastAPI application → Competition and team routes: registers
app/main.py - FastAPI application → Match routes: registers
app/main.py - FastAPI application → Player routes: registers
app/main.py - FastAPI application → Performance routes: registers
app/main.py - FastAPI application → Analytics routes: registers
app/main.py - FastAPI application → Dashboard and search: serves dashboard
- ETL orchestrator → Competition extraction: fetches competitions
etl/run_etl.py - ETL orchestrator → Team extraction: fetches teams
etl/run_etl.py - ETL orchestrator → Match extraction: fetches matches
etl/run_etl.py - ETL orchestrator → Player and stats extraction: fetches players
etl/run_etl.py - Competition extraction → API client and cache: requests data
etl/extract/competitions.py - Team extraction → API client and cache: requests data
etl/extract/teams.py - Match extraction → API client and cache: requests data
etl/extract/matches.py - Player and stats extraction → API client and cache: requests data
etl/extract/players.py - API client and cache → Football data API: sends GET requests
etl/utils/http_client.py - ETL orchestrator → Data cleaning: cleans records
etl/run_etl.py - ETL orchestrator → Data validation: validates records
etl/run_etl.py - ETL orchestrator → Database loaders: loads records
etl/run_etl.py - Database loaders → PostgreSQL database: writes records
etl/load/loaders.py - Database loaders → Domain models: maps entities
etl/load/loaders.py - Competition and team routes → PostgreSQL database: queries data
app/routers/competitions.py - Competition and team routes → Domain models: queries entities
app/routers/competitions.py - Match routes → PostgreSQL database: queries data
app/routers/matches.py - Match routes → Domain models: queries entities
app/routers/matches.py - Player routes → PostgreSQL database: queries data
app/routers/players.py - Player routes → Domain models: queries entities
app/routers/players.py - Performance routes → PostgreSQL database: queries data
app/routers/performances.py - Performance routes → Domain models: queries entities
app/routers/performances.py - Analytics routes → Statistics service: requests calculations
app/routers/analytics.py - Analytics routes → PostgreSQL database: queries data
app/routers/analytics.py - Statistics service → Domain models: aggregates records
app/services/statistics_service.py - Player routes → API schemas: validates responses
app/routers/players.py - Match routes → API schemas: validates responses
app/routers/matches.py - Domain models → PostgreSQL database: uses base
app/models.py