Skip to content

fantasyfb v0.11.0

Choose a tag to compare

@tefirman tefirman released this 21 Oct 05:04
· 87 commits to main since this release
8608e38

fantasyfb v0.11.0

A rooting guide and PDF export for the HTML report, sortable free agents, and the groundwork for a hosted web app.

pip install --upgrade fantasyfb

Highlights

  • Rooting guide in the HTML report. fantasyfb --format html --deltas now adds a Rooting guide tab. For the team you pick, it lists this week's games with the change in your expected earnings if either side wins and a "Root for ..." call, plus a league-wide matrix shaded red to green. Previously --deltas was silently ignored for HTML reports.
  • Save as PDF. The report has a print stylesheet and a "Save as PDF" button that prints every tab, one per page, following your selected team, sort order and filters.
  • Matchup lineups in the Schedule tab. Click a game card to see both teams' projected starting lineups for the current week.
  • Easier-to-read report tables. Free agents columns (Proj, Matchup, WAR, Bye, Rostered) are now click-to-sort, and Standings percentages sit under their headers. The Standings "Bye" column is renamed "First-round bye".
  • Draft web app for Sleeper and Yahoo leagues. A small FastAPI app in app/ (not part of the PyPI package) runs season sims and serves the same HTML report. It supports Sleeper by league link and read-only Yahoo sign-in, and includes Cloud Run deployment files, run timeouts and queue limits. Adds, drops and the rooting guide are off by default in the app. Yahoo reports now carry the "Powered by Yahoo" badge.
  • Library changes for server use. YahooTokenAuth keeps a user's Yahoo tokens in memory, and YahooFantasyClient(oauth=...) accepts it. League(client=...) now sets name and lg_id instead of failing, and Ctrl-C is no longer swallowed by Yahoo query retries.
  • Offline end-to-end test of the weekly run. A snapshot test replays recorded league data through the full pipeline and checks invariants aimed at the game-day bugs earlier releases kept finding.

See CHANGELOG.md for the full list.