Skip to content

ahump20/football

v1.0.1MIT

Football fundamentals for the NFL and college: rules, EPA and success rate from nflverse and sportsdataverse play-by-play, quarterback evaluation, passer rating and NCAA efficiency, and free data sources.

football

/plugin marketplace add ahump20/Sports-Plugins
/plugin install football@Sports-Plugins
SkillWhat it does
football-rulesNFL and NCAA rules where they differ and where models get them wrong, with rule references
football-analyticsnflfast.py computes NFL team and player EPA, success rate and CPOE from nflverse play-by-play, plus NFL passer rating and NCAA passing efficiency; cfbfast.py does the same for college from sportsdataverse play-by-play and official box scores
football-dataVerified nflverse, sportsdataverse and College Football Data sources (play-by-play, box scores, adjusted ratings, polls, recruiting, transfer portal), keys, sign conventions and limits

Checked against published numbers in skills/football-analytics/tests:

CaseExpectedSource
Lamar Jackson 2024 passing EPA172.279nflverse player stats
Patrick Mahomes, 2024 week 1 passing EPA11.084nflverse player stats
Josh Allen 2023 passing EPA91.693nflverse player stats
Aaron Rodgers 2011 passer rating122.5Packers.com
Joe Burrow 2019 NCAA efficiency202.0Davey O'Brien Award
Texas 2024 offense: 1,108 plays, 92.49 EPA, 509 successesmatchsportsdataverse advanced game boxes
Texas at Michigan 2024: Texas 68 plays, 11.43 EPA; Ewers 14.64 passing EPAexactsportsdataverse advanced game boxes
Quinn Ewers 2024: 293/445, 3,472 yds, 31 TD, 12 INT148.98NCAA, via cfbstats.com
python3 -m unittest discover -s plugins/football/skills/football-analytics/tests
SPORTS_LIVE=1 python3 -m unittest discover -s plugins/football/skills/football-analytics/tests   # downloads 2023 and 2024 NFL and 2024 college play-by-play

Python 3.9+, standard library only.