Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dimakudosh/pydfs-lineup-optimizer

Daily Fantasy Sports lineup optimzer for all popular daily fantasy sports sites
https://github.com/dimakudosh/pydfs-lineup-optimizer

draftkings fanduel fantasy fantasy-draft fantasy-football fantasy-sports golf league-of-legends mlb nascar nba nfl nhl pydfs-lineup-optimizer python soccer sports tennis wnba yahoo-fantasy

Last synced: 7 days ago
JSON representation

Daily Fantasy Sports lineup optimzer for all popular daily fantasy sports sites

Awesome Lists containing this project

README

        

# PYDFS-LINEUP-OPTIMIZER [![Build Status](https://travis-ci.com/DimaKudosh/pydfs-lineup-optimizer.svg?branch=master)](https://travis-ci.org/DimaKudosh/pydfs-lineup-optimizer)[![Coverage Status](https://coveralls.io/repos/github/DimaKudosh/pydfs-lineup-optimizer/badge.svg?branch=master)](https://coveralls.io/github/DimaKudosh/pydfs-lineup-optimizer?branch=master)
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 | + | - | - | - | - | - | - | - |
CFB | + | - | - | - | - | - | - | - |
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.
```python
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)
```