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 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)

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-3.6.0.tar.gz (36.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pydfs-lineup-optimizer-3.6.0.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pydfs-lineup-optimizer-3.6.0.tar.gz
Algorithm Hash digest
SHA256 7cb0f98fc8b09152139a9732cd11dc38136ce1a3bd5d0015e32a9704e5f50bca
MD5 8f7b5f2b33c5f8ab8a5f3425e1fccc9c
BLAKE2b-256 4ea0ed4da85d1b785f155598ac4b5b5e2c1aef3122cefbef077d59e663c842fa

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