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
Close
Hashes for pydfs-lineup-optimizer-3.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 737c8966160ffda0d820134cbf9a2e66c41ac59ccbe8bbc90c053c91dadd32a5 |
|
MD5 | e20c09cb262351777e8d7e56186d3d64 |
|
BLAKE2b-256 | f9ee40b54d24bc3c7b1fce5fa4a7727cc6e35d88bd0d1dc113671fadeabadb8e |