How rebug42/span_code_test works
This is a command-line calculator for English First Division 1974/75 standings. The principal workflow starts with a user supplying a weekly results file and selecting final, specific-week, or all-weeks output. The application discovers the season files, loads and accumulates match results, ranks teams by points, historical goal average, then goals scored, and writes CSV standings while printing tables. The model layer represents match results and cumulative team statistics. README capabilities guide the workflow map; source excerpts support the listed runtime calls.
Main entry points: cli.py CLI application · repository.py Results repository · presenter.py Standings presenter · main.py Entry point
Components 10
CLI entry
- Entry point
main.py
Season workflow
- CLI application
src/cli.py - Weekly results
data/results - Results repository
src/repository.py
Standings domain
- Match and team models
src/models.py - Standings calculator
src/service.py
Results output
- Standings presenter
src/presenter.py - Standings CSV files
data/standings
Other components
- CLI user
- Console output
Connections 10
- CLI user → Entry point: runs
- Entry point → CLI application: starts
- CLI application → Results repository: discovers and loads
- Results repository → Weekly results: reads
- Results repository → Match and team models: creates matches
- CLI application → Standings calculator: calculates standings
- Standings calculator → Match and team models: updates team stats
- CLI application → Standings presenter: renders results
- Standings presenter → Standings CSV files: writes CSV
- Standings presenter → Console output: prints tables