Tool for creating optimal lineups for daily fantasy sports
Project description
PYDFS-LINEUP-OPTIMIZER ![Build Status](https://pypi-camo.freetls.fastly.net/322e05ddac124f2043262223a071a6e255c6beb3/68747470733a2f2f7472617669732d63692e6f72672f44696d614b75646f73682f70796466732d6c696e6575702d6f7074696d697a65722e7376673f6272616e63683d6d6173746572)
![Coverage Status](https://pypi-camo.freetls.fastly.net/5e08a29829ade6bf21e72fb65dfd11d0144d7461/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f44696d614b75646f73682f70796466732d6c696e6575702d6f7074696d697a65722f62616467652e7376673f6272616e63683d6d6173746572)
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 | DraftKings Captain Mode | FanDuel Single Game | DraftKings Tiers |
---|---|---|---|---|---|---|---|---|
NFL | + | + | + | + | + | + | + | + |
NBA | + | + | + | + | - | + | + | + |
NHL | + | + | + | + | - | + | - | + |
MLB | + | + | + | + | - | + | - | + |
WNBA | + | + | - | - | - | + | - | - |
Golf | + | + | + | + | - | - | - | - |
Soccer | + | - | - | + | - | + | - | - |
CFL | + | - | - | - | - | - | - | - |
LOL | - | + | - | - | - | + | + | - |
MMA | + | + | - | - | - | - | - | - |
NASCAR | + | + | - | - | - | - | - | - |
Tennis | + | - | - | - | - | - | - | - |
CSGO | + | - | - | - | - | - | - | - |
Documentation
Documentation is available at https://pydfs-lineup-optimizer.readthedocs.io/en/latest
Example
Here is an example for evaluating optimal lineup for Yahoo fantasy NBA. It loads players list from "yahoo-NBA.csv" and select 10 best lineups.
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-3.4.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c819b331aaf05fbf7ba39d25e1995ba079c85f3bc513776c722e970ea25700 |
|
MD5 | 35160bd83c0d636a0acfce11dfc68cad |
|
BLAKE2b-256 | 9b823d44e73e0479775470ee03277fb49d6ac403cef2c91bd5b2bd7e87e6ea4e |