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 | FanDuel Single Game |
---|---|---|---|---|---|---|---|
NFL | + | + | + | + | + | + | + |
NBA | + | + | + | + | - | + | - |
NHL | + | + | + | + | - | - | - |
MLB | + | + | + | + | - | + | - |
WNBA | + | + | - | - | - | + | - |
Golf | + | + | + | + | - | - | - |
Soccer | + | - | - | + | - | + | - |
CFL | + | - | - | - | - | - | - |
LOL | - | - | - | - | - | + | - |
MMA | + | - | - | - | - | - | - |
NASCAR | + | - | - | - | - | - | - |
Tennis | + | - | - | - | - | - | - |
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
File details
Details for the file pydfs-lineup-optimizer-2.7.0.tar.gz
.
File metadata
- Download URL: pydfs-lineup-optimizer-2.7.0.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8899f21687bedaac445410b5bd9887b2f51bec6b4584d7bf13549ec18fe5dd0a |
|
MD5 | b53004fc50a6316f3b4b8fb04ba76fa6 |
|
BLAKE2b-256 | 90be5173747be79cc4158547efbf513a4aa57e79f308eaf83ff43d9772bc8284 |