Skip to content

BenDrozdoff/fantasy_football_2018

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fantasy Football Draft Tool

Ben Drozdoff

A tool to help you track your draft in an iPython notebook and select players based on injury-adjusted value over replacement

Usage

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})

See best available players

league.best_available_players(n=4)
[Bell, Le'Veon, rb, PIT,
 Johnson, David, rb, ARZ,
 Gurley, Todd, rb, LAR,
 Elliott, Ezekiel, rb, DAL]

Simulate a draft

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]

Save progress to disk

I certainly don't trust a kernel to not die in the 8th round, you shouldn't either!

league.save_to_disk()

Reload progress from disk

resumed_league = League.load_from_disk("demo_league")

About

A fantasy football draft tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages