How neurodendrite/calcio-forecast works
Calcio Forecast is a local football-probability and forecasting application. Its documented historical-data workflow runs from the CLI through source acquisition, team-name resolution and quality checks into persistent records; forecasts are registered before match results and later compared to assess reliability. The README also describes Elo and Poisson/Dixon–Coles predictions and season simulations. The graph includes the documented UI and forecast branches, but several of their internal call paths are not shown in the supplied excerpts, so those links are left unasserted.
Main entry points: pipeline.py Import pipeline · spot.py Spot workflow · cli.py CLI commands · importazione.py Import service
Components 20
Application entry
- CLI commands
src/calcio_forecast/cli.py - Desktop UI
src/calcio_forecast/ui/app.py - Main window
src/calcio_forecast/ui/finestra.py
Data acquisition
- Football data sources
src/calcio_forecast/acquisizione/fonti - HTTP client
src/calcio_forecast/acquisizione/http.py - Import service
src/calcio_forecast/servizi/importazione.py - Import pipeline
src/calcio_forecast/acquisizione/pipeline.py - Team resolution
src/calcio_forecast/anagrafica/seed.py - Match records
src/calcio_forecast/dominio/partite.py - Data quality
src/calcio_forecast/acquisizione/qualita.py
Forecasting
- Spot workflow
src/calcio_forecast/servizi/spot.py - Elo ratings
src/calcio_forecast/modelli/elo.py - Outcome probabilities
src/calcio_forecast/modelli/esito_ordinato.py - Season simulations
src/calcio_forecast/modelli - Prediction register
src/calcio_forecast/dominio/registro.py - Forecast comparison
src/calcio_forecast/servizi/confronto.py
Persistence and configuration
- Data archive
src/calcio_forecast/dati/archivio.py - SQLite database
src/calcio_forecast/dati/db.py - Settings and paths
src/calcio_forecast/configurazione/impostazioni.py
Other components
- User
Connections 23
- User → CLI commands: runs commands
README.md - CLI commands → Import service: runs import
src/calcio_forecast/cli.py - Import service → Import pipeline: starts import
src/calcio_forecast/servizi/importazione.py - Import pipeline → HTTP client: requests data
src/calcio_forecast/acquisizione/pipeline.py - Import pipeline → Football data sources: selects sources
src/calcio_forecast/acquisizione/pipeline.py - Import pipeline → Team resolution: resolves teams
src/calcio_forecast/acquisizione/pipeline.py - Import pipeline → Data quality: checks records
src/calcio_forecast/acquisizione/pipeline.py - Import pipeline → Match records: normalizes matches
src/calcio_forecast/acquisizione/pipeline.py - Import pipeline → Data archive: stores import data
src/calcio_forecast/acquisizione/pipeline.py - Data archive → SQLite database: writes records
src/calcio_forecast/dati/archivio.py - CLI commands → Desktop UI: launches UI
src/calcio_forecast/cli.py - Desktop UI → Main window: opens window
src/calcio_forecast/ui/app.py - User → Desktop UI: uses application
README.md - User → Spot workflow: requests forecasts
- Spot workflow → Elo ratings: calculates ratings
src/calcio_forecast/servizi/spot.py - Spot workflow → Outcome probabilities: computes outcomes
src/calcio_forecast/servizi/spot.py - Spot workflow → Prediction register: registers forecasts
src/calcio_forecast/servizi/spot.py - Spot workflow → Data archive: reads match data
src/calcio_forecast/servizi/spot.py - User → Forecast comparison: reviews accuracy
- Forecast comparison → Prediction register: compares forecasts
README.md - User → Season simulations: requests simulations
- CLI commands → Settings and paths: loads settings
src/calcio_forecast/cli.py - Import service → Settings and paths: uses settings
src/calcio_forecast/servizi/importazione.py