Tool for creating optimal lineups for daily fantasy sports
Project description
PYDFS-LINEUP-OPTIMIZER 

pydfs-lineup-optimizer_enhanced is a tool for creating optimal lineups for daily fantasy sport.
Installation
To install pydfs-lineup-optimizer-enhanced, simply run:
$ pip install pydfs-lineup-optimizer-enhanced
Support
Now it supports following dfs sites:
| League | DraftKings | FanDuel | FantasyDraft | Yahoo | FanBall | DraftKings Captain Mode | FanDuel Single Game | DraftKings Tiers | FANTEAM |
|---|---|---|---|---|---|---|---|---|---|
| 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 Fanteam fantasy NBA. It loads players list from "fanteam.csv" and select 10 best lineups.
from pydfs_lineup_optimizer import Site, Sport, get_optimizer
optimizer = get_optimizer(Site.FANTEAM, Sport.SOCCER)
optimizer.load_players_from_csv("fanteam.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydfs_lineup_optimizer_enhanced-4.0.2.tar.gz.
File metadata
- Download URL: pydfs_lineup_optimizer_enhanced-4.0.2.tar.gz
- Upload date:
- Size: 50.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea117a7f52e30d5c7362deb10618f93700361254fe360b0321750000d4fdd66d
|
|
| MD5 |
107e053ca59f93ffa49fd1d193b19b85
|
|
| BLAKE2b-256 |
f0d9a3ec3e8d1c68bdef6f9b1944fac6a77d8db3d42665b2403ac26ee6910544
|
File details
Details for the file pydfs_lineup_optimizer_enhanced-4.0.2-py3-none-any.whl.
File metadata
- Download URL: pydfs_lineup_optimizer_enhanced-4.0.2-py3-none-any.whl
- Upload date:
- Size: 57.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb2d90be194a4c8b924c1c0599276dd5fdead1d42f1bf84674c28326bca85315
|
|
| MD5 |
2276f3bf58e550a5dfa83b642a3c5ff8
|
|
| BLAKE2b-256 |
e56f51ec5f4fb072cf9a127dadfc6888e06ebd616130ac0e5139c5fcc833693f
|