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:
$ pip install pydfs-lineup-optimizer
Support
Now it supports following dfs sites:
League | DraftKings | FanDuel | FantasyDraft | Yahoo | FanBall |
---|---|---|---|---|---|
NFL | + | + | + | + | + |
NBA | + | + | + | + | - |
NHL | + | + | + | + | - |
MLB | + | + | + | + | - |
WNBA | - | + | - | - | - |
Golf | + | - | + | + | - |
Soccer | + | - | - | + | - |
CFL | + | - | - | - | - |
LOL | + | - | - | - | - |
Documentation
Documentation is available at https://pydfs-lineup-optimizer.readthedocs.io/en/latest
Example
Here is a example for evaluating optimal lineup for Yahoo fantasy NBA. It's loads players list from "yahoo-NBA.csv" and select 10 best lineup with 4 Oklahoma City Thunder players.
from pydfs_lineup_optimizer import Site, Sport, get_optimizer
optimizer = get_optimizer(Site.YAHOO, Sport.BASKETBALL)
optimizer.load_players_from_csv("yahoo-NBA.csv")
lineup_generator = optimizer.optimize(10)
for lineup in lineup_generator:
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-2.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70c92c5a79dbaa3cdd4fd822188ea7c8980de6f8b008f89574278de7c4de2ace |
|
MD5 | eb57b2dc10d460404a55dcff75a5cc81 |
|
BLAKE2b-256 | 519de0f3a6f219a6f5b625a6b8060fdf56a39d3d22ea8ea0e7e14ac27d5894ef |