Skip to main content

Tool for creating optimal lineups for daily fantasy sports

Project description

PYDFS-LINEUP-OPTIMIZER Build StatusCoverage Status

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 DraftKing Captain Mode
NFL + + + + + +
NBA + + + + - +
NHL + + + + - -
MLB + + + + - -
WNBA - + - - - -
Golf + - + + - -
Soccer + - - + - -
CFL + - - - - -
LOL - - - - - +
MMA + - - - - -

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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydfs-lineup-optimizer-2.3.0.tar.gz (22.3 kB view details)

Uploaded Source

File details

Details for the file pydfs-lineup-optimizer-2.3.0.tar.gz.

File metadata

  • Download URL: pydfs-lineup-optimizer-2.3.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for pydfs-lineup-optimizer-2.3.0.tar.gz
Algorithm Hash digest
SHA256 a3bab45db365a6cf056bb380f25bcf3da3ef2adad996d121883df0e7cd536fe7
MD5 172e88c1b64f204ab80233960158fec7
BLAKE2b-256 4f0cf82cabed28114fc3cdd66bb21a620294621ce74425e325098a351ae64b9e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page