Skip to content

fantasyfb v0.8.0

Choose a tag to compare

@tefirman tefirman released this 23 Aug 23:51
· 158 commits to main since this release
97305cc

fantasyfb v0.8.0

Custom roster shapes for generic mock drafts, plus a fix for mock-opponent picks drifting from real-world ADP.

pip install --upgrade fantasyfb

Highlights

  • Custom roster shapes for generic mock drafts. --roster-spots on snake-draft and salary-cap-draft lets a --platform generic mock draft use any roster shape, extra flex, superflex via Q/W/R/T, a bigger bench, instead of the fixed default, via comma-separated POSITION=COUNT pairs (e.g. QB=1,RB=2,W/R/T=2,Q/W/R/T=1,BN=6) or an interactive prompt when omitted. GenericClient and League(platform="generic") also accept a roster_spots DataFrame directly for scripted use; an unrecognized position code raises ValueError at construction time instead of failing downstream in VORP/roster logic.
  • random/random til me now stay closer to real-world ADP. Simulated opponents' candidate pool was ranked top-VORP-first, with ADP only reweighting sampling within that already VORP-biased shortlist, so mock opponents routinely reached for players far ahead of their market ADP. The pool is now windowed to players within window_rounds of the current overall pick (mirroring the nearest view) before ranking by need-adjusted VORP, so simulated drafts read as more realistic.

See CHANGELOG.md for the full list.