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 | 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.
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)
Metadata
Release files for pydfs-lineup-optimizer 3.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pydfs-lineup-optimizer-3.6.1.tar.gz | 36.2 kB | Details |
Release files / pydfs-lineup-optimizer-3.6.1.tar.gz
| Download URL | pydfs-lineup-optimizer-3.6.1.tar.gz |
|---|---|
| Size | 36.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f17cb14ced01b840f22dce78d0ece0cf9f617ec2fa1b9cfb93e8d985c4371ae
|
|
BLAKE2b-256 checksum How to use checksums |
02e55a203342c690d06d2c92fc4a92edfdc1a98e587014a8bf09e571487e3b49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
|