A tool to help you track your draft in an iPython notebook and select players based on injury-adjusted value over replacement
Customize your league with your own scoring and roster settings. Common presets are already defaulted, so just pass in the settings you'd like to override. See below for a 12 team league with half-PPR.
from models.league import League
league = League("demo_league", projection_source="projection", roster_settings = {'teams': 12}, scoring_settings = {'rec': 0.5})
league.best_available_players(n=4)
[Bell, Le'Veon, rb, PIT,
Johnson, David, rb, ARZ,
Gurley, Todd, rb, LAR,
Elliott, Ezekiel, rb, DAL]
league.teams[0].name = "Team with first pick"
drafted_player = league.player_by_name("Bell, Le\'Veon")
drafted_player.add_to_team(team_name="Team with first pick")
league.best_available_players(n=5)
[Johnson, David, rb, ARZ,
Gurley, Todd, rb, LAR,
Elliott, Ezekiel, rb, DAL,
Gordon, Melvin, rb, LAC,
Kamara, Alvin, rb, NOR]
I certainly don't trust a kernel to not die in the 8th round, you shouldn't either!
league.save_to_disk()
resumed_league = League.load_from_disk("demo_league")