Skip to main content

Tool for creating optimal lineups for daily fantasy sports

Project description

PYDFS-LINEUP-OPTIMIZER Build StatusCoverage Status

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


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_enhanced-4.0.2.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydfs_lineup_optimizer_enhanced-4.0.2-py3-none-any.whl (57.9 kB view details)

Uploaded Python 3

File details

Details for the file pydfs_lineup_optimizer_enhanced-4.0.2.tar.gz.

File metadata

File hashes

Hashes for pydfs_lineup_optimizer_enhanced-4.0.2.tar.gz
Algorithm Hash digest
SHA256 ea117a7f52e30d5c7362deb10618f93700361254fe360b0321750000d4fdd66d
MD5 107e053ca59f93ffa49fd1d193b19b85
BLAKE2b-256 f0d9a3ec3e8d1c68bdef6f9b1944fac6a77d8db3d42665b2403ac26ee6910544

See more details on using hashes here.

File details

Details for the file pydfs_lineup_optimizer_enhanced-4.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pydfs_lineup_optimizer_enhanced-4.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb2d90be194a4c8b924c1c0599276dd5fdead1d42f1bf84674c28326bca85315
MD5 2276f3bf58e550a5dfa83b642a3c5ff8
BLAKE2b-256 e56f51ec5f4fb072cf9a127dadfc6888e06ebd616130ac0e5139c5fcc833693f

See more details on using hashes here.

Supported by

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