A Python package for optimizing and generating DFS lineups.
Project description
DFSLineupOptimizer ![n-roth12](https://pypi-camo.freetls.fastly.net/1386d47d18f42d7649c7beaafd926ace6ef744f9/68747470733a2f2f636972636c6563692e636f6d2f67682f6e2d726f746831322f4446534c696e6575704f7074696d697a65722e7376673f7374796c653d736869656c64)
A Python project for generating NFL daily fantasy contest lineups.
Installation
Clone the repository onto your machine to get started. Ensure you have Python and pip installed, then set up the virtual environment using:
pipenv install -r "requirements.txt"
pipenv shell
This project currently only uses built-in Python modules, so this step is actually not required.
Usage
To generate an optimized lineup for a chosen DFS contest, go to the contest webpage and download the players list as a CSV, which is an option on almost all DFS sites. Then, place the CSV file into the root directory of the project. You can then call optimize
on that file, specifying the site. For example:
python optimize.py DRAFTKINGS DKSalaries.csv
This will output the lineup to the console.
About
Lineups are able to be generated following certain constraints called "Tags". In addition, TagsController can confirm whether a given Lineup conforms to the rules of specific tags, as well as output the list of Tags that the Lineup conforms to. Examples of such Tags are: "Stack: 4x2", "Build: 3 RB", "Punt: TE".
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
Built Distribution
Hashes for lineup_optimizer-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d5b35b089bff408e23d87db42ed694a218af2a087c0b65404ec57d8f980e431 |
|
MD5 | f5a33721dd2192afcb3aa6da2bb0ff3a |
|
BLAKE2b-256 | aecabb72608f813c6a44a450106c109df00f26074405afa61fadc8a7e3eb3b5d |