Tool for creating optimal lineups for daily fantasy sports
Project description
PYDFS-LINEUP-OPTIMIZER
pydfs-lineup-optimizer is a tool for creating optimal lineups for daily fantasy sport.
Installation
To install pydfs-lineup-optimizer, simply run:
$ pip install pydfs-lineup-optimizer
Support
Now it supports following dfs sites:
League | DraftKings | FanDuel | FantasyDraft | Yahoo | FanBall | DraftKing Captain Mode |
---|---|---|---|---|---|---|
NFL | + | + | + | + | + | + |
NBA | + | + | + | + | - | + |
NHL | + | + | + | + | - | - |
MLB | + | + | + | + | - | + |
WNBA | - | + | - | - | - | - |
Golf | + | - | + | + | - | - |
Soccer | + | - | - | + | - | - |
CFL | + | - | - | - | - | - |
LOL | - | - | - | - | - | + |
MMA | + | - | - | - | - | - |
Documentation
Documentation is available at https://pydfs-lineup-optimizer.readthedocs.io/en/latest
Example
Here is a example for evaluating optimal lineup for Yahoo fantasy NBA. It's loads players list from "yahoo-NBA.csv" and select 10 best lineup.
from pydfs_lineup_optimizer import Site, Sport, get_optimizer
optimizer = get_optimizer(Site.YAHOO, Sport.BASKETBALL)
optimizer.load_players_from_csv("yahoo-NBA.csv")
for lineup in optimizer.optimize(10):
print(lineup)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for pydfs-lineup-optimizer-2.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14a0885539b6bc70a83ba2b7289808d47d75230111a2ce71af46143831d44df6 |
|
MD5 | f23738fdd366b710a8772269ffe53782 |
|
BLAKE2b-256 | 015488da91a900ea4ef7553e51868faff5912fd97ad6b69cdca60f9f0916092c |