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-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
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.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.1.tar.gz (49.7 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.1-py3-none-any.whl (56.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pydfs_lineup_optimizer_enhanced-4.0.1.tar.gz
Algorithm Hash digest
SHA256 fe1edfe45f1403274eaf8f5832ca4f37469c300ca0b4852c269e2798d04b8dc9
MD5 f1c6fd233d9669e5dbc9a67ab3f36bf6
BLAKE2b-256 4a58d9be538380308435ec970593acda3807c3171a8e4f02210b9292279812b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydfs_lineup_optimizer_enhanced-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c8f6bd15218f59b5269c793f1cb6fd8292354e7dc516e9eeab51bc14880a92d
MD5 7d93fe2b9900b62f5c4a0608ae5b4f25
BLAKE2b-256 737823ca9b5ef71de8f9551ab0506f0d5540602df9b1f439c6b11511eef3215d

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