| Customizable fantasy football optimizer built with Python and PuLP linear programming. Optimizes DFS lineups for the highest projection under contest roster and salary rules, including configurable player locks, exclusions, stacking, and position controls. |
- Python 3.8+
- PuLP
- DraftKings API
- Sleeper API
- Pandas
- Streamlit
- Fetches player pool for Sunday Classic contests from DraftKings API
- Fetches PPR projections from Sleeper API matched to player
- Allows interactive customization of constraints (locks, exclusions, stacks, position limits)
- Uses PuLP to maximize projected points under contest roster and salary rules
- Dashboard displays the optimized lineup
- Lock or exclude players from your lineup
- Require at least 1 FLEX from a specified team
- QB + RB/WR/TE stacks (same team or opposing)
- RB + DST stacks
- Specify position for FLEX slot
- Exclude players opposing your DST
- Set limit of 1 RB per team
$ git clone https://github.com/ashhhlynn/custom-fantasy-optimizer.git$ cd custom-fantasy-optimizer$ pip install -r requirements.txt$ streamlit run dfs.pyThis project is MIT licensed.