Weekly projections for 9 category head-to-head format ESPN NBA fantasy basketball.
- Environment & Config:
- Reads ESPN league credentials from environment variables (
src/config.py).
- Reads ESPN league credentials from environment variables (
- API Integration:
- Connects to ESPN fantasy basketball using
espn_api. - Provides functions to create a league instance and summarize teams (
src/api/espn_client.py).
- Connects to ESPN fantasy basketball using
- Stat Processing:
- Computes expected weekly stats for players and aggregates team totals (
src/features/stats_processing.py).
- Computes expected weekly stats for players and aggregates team totals (
- Matchup Comparison:
- Compares two teams' expected stats and determines category winners (
src/features/matchup.py).
- Compares two teams' expected stats and determines category winners (
- Simulation:
- Monte Carlo simulation for weekly category outcomes and win probabilities (
src/simulation/monte_carlo.py).
- Monte Carlo simulation for weekly category outcomes and win probabilities (
- Visualization:
- Generates grouped bar plots for matchup comparisons (
src/viz/plots.py).
- Generates grouped bar plots for matchup comparisons (
- Streamlit App:
- Interactive UI for selecting teams and viewing matchup projections (
app/streamlit_app.py).
- Interactive UI for selecting teams and viewing matchup projections (
- Testing:
- Unit tests for config, API, stat processing, matchup logic, and plotting (
tests/).
- Unit tests for config, API, stat processing, matchup logic, and plotting (
- Integrate real player stats and schedules into projections.
- Complete Streamlit UI for full matchup analysis.
- Add more advanced simulation and visualization features.