pydfs-lineup-optimizer
Open-source Python library for building optimal DFS lineups across major sites
About pydfs-lineup-optimizer
pydfs-lineup-optimizer is an MIT-licensed Python package that generates optimal DFS lineups from site salary files and your own projections. It supports DraftKings, FanDuel, Yahoo and several smaller sites across many sports, including captain/showdown, single-game and tiers formats. It is one of the more widely used open-source DFS optimizers, though its latest PyPI release (3.6.1) and last code commit are both from September 2021.
Features
- pip-installable Python package
- Loads DK, FD and Yahoo salary CSVs
- Stacking, exposure and lock/exclude rules
- Showdown/captain and single-game formats
- Generates many unique lineups per run
- Documentation on Read the Docs
Sports and sites covered
Pricing
Free
MIT license; install via pip
Prices as listed on github.com when we checked. Confirm current pricing on their site.
Compare pydfs-lineup-optimizer
Alternatives to pydfs-lineup-optimizer
Compare all alternatives
DFS optimizer, contest simulator and bankroll tracker built with Establish The Run
Lineup optimizerNFLNBAMLBNHLGolf+11DraftKings, FanDuel, Yahoo, UnderdogFree, or $24.99/mo
DFS optimizer plus Lineup Rewind contest review and Lineup Study of top players' builds
Lineup optimizerNFLCFBNBACBBWNBA+10DraftKings, FanDuel, Yahoo, OwnersBoxFrom $4.95/wk
Simulation-driven DFS optimizer with projections, ownership, late swap and contest sims
Lineup optimizerNFLCFBNBACBBWNBA+10DraftKings, FanDuel, Yahoo, OwnersBoxFrom $97/mo
All-sport DFS membership with Domination Station optimizer, projections and coaching
Lineup optimizerNFLCFBNBACBBWNBA+10DraftKings, FanDuel, PrizePicks, UnderdogFrom $9.99/wk
Single-plan DFS optimizer and contest simulator for DraftKings and FanDuel, 16 sports
Lineup optimizerNFLCFBMLBGolfMMA+9DraftKings, FanDuelFrom $50/moMulti-site DFS optimizer with entry assignment, late swap and contest sim metrics
Lineup optimizerNBAWNBACBBNFLCFB+9DraftKings, FanDuel, YahooFrom $50/wk
Sources and corrections
Last checked Oct 3, 2026. We build every listing from the sources below and recheck them regularly. If something about pydfs-lineup-optimizer has changed, let us know.