lineup-optimizer


Namelineup-optimizer JSON
Version 0.0.3 PyPI version JSON
download
home_page
SummaryA Python package for optimizing and generating DFS lineups.
upload_time2023-09-13 23:01:14
maintainer
docs_urlNone
authorNolan Roth
requires_python>=3.7
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # DFSLineupOptimizer [![n-roth12](https://circleci.com/gh/n-roth12/DFSLineupOptimizer.svg?style=shield)](https://app.circleci.com/pipelines/github/n-roth12/DFSLineupOptimizer)  [![PyPI version](https://badge.fury.io/py/lineup-optimizer.svg)](https://badge.fury.io/py/lineup-optimizer)
A Python project for generating NFL daily fantasy contest lineups.  

### Installation
#### As Package
To install and use as a Python package:
```
python3 -m pip install lineup-optimizer
```
#### Repo
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, an option on almost all DFS sites. Then, place the CSV file into the root directory of the project. The examples below will use the name 'DKSalaries_example.csv' as a placeholder for one such CSV file.
You can choose to generate lineups from the command line, or from within a Python script:
#### Import Package
```
from lineup_optimizer import optimize_lineup

lineup = optimize_lineup('DRAFTKINGS', 'DKSalaries_example.csv')
print(lineup)
```
#### Command Line
```
python optimize.py DRAFTKINGS DKSalaries_example.csv
```
These 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".

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "lineup-optimizer",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Nolan Roth",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/1c/68/947bccd2c836a6630859a6b837b03f8f3a065033090d546725152b29acdc/lineup_optimizer-0.0.3.tar.gz",
    "platform": null,
    "description": "# DFSLineupOptimizer [![n-roth12](https://circleci.com/gh/n-roth12/DFSLineupOptimizer.svg?style=shield)](https://app.circleci.com/pipelines/github/n-roth12/DFSLineupOptimizer)  [![PyPI version](https://badge.fury.io/py/lineup-optimizer.svg)](https://badge.fury.io/py/lineup-optimizer)\nA Python project for generating NFL daily fantasy contest lineups.  \n\n### Installation\n#### As Package\nTo install and use as a Python package:\n```\npython3 -m pip install lineup-optimizer\n```\n#### Repo\nClone the repository onto your machine to get started. Ensure you have Python and pip installed, then set up the virtual environment using:\n```\npipenv install -r \"requirements.txt\"\npipenv shell\n```\nThis project currently only uses built-in Python modules, so this step is actually not required.\n### Usage\nTo generate an optimized lineup for a chosen DFS contest, go to the contest webpage and download the players list as a CSV, an option on almost all DFS sites. Then, place the CSV file into the root directory of the project. The examples below will use the name 'DKSalaries_example.csv' as a placeholder for one such CSV file.\nYou can choose to generate lineups from the command line, or from within a Python script:\n#### Import Package\n```\nfrom lineup_optimizer import optimize_lineup\n\nlineup = optimize_lineup('DRAFTKINGS', 'DKSalaries_example.csv')\nprint(lineup)\n```\n#### Command Line\n```\npython optimize.py DRAFTKINGS DKSalaries_example.csv\n```\nThese will output the lineup to the console.\n### About \nLineups are able to be generated following certain constraints called \"Tags\". In addition, TagsController can confirm whether a given Lineup conforms \nto 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\", \n\"Build: 3 RB\", \"Punt: TE\".\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A Python package for optimizing and generating DFS lineups.",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/n-roth12/DFSLineupOptimizer"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5611471816eb636f8d994581b46de920bccdbeeeebb34d571b191fef875119fc",
                "md5": "2d1558ae4265b22231d9d7cece8dbd21",
                "sha256": "9a0637fb54c69093df911bfde1ebe3e8a0ceff6f4e2c8aed4a8318622e45f2d4"
            },
            "downloads": -1,
            "filename": "lineup_optimizer-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2d1558ae4265b22231d9d7cece8dbd21",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 14202,
            "upload_time": "2023-09-13T23:01:12",
            "upload_time_iso_8601": "2023-09-13T23:01:12.300985Z",
            "url": "https://files.pythonhosted.org/packages/56/11/471816eb636f8d994581b46de920bccdbeeeebb34d571b191fef875119fc/lineup_optimizer-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c68947bccd2c836a6630859a6b837b03f8f3a065033090d546725152b29acdc",
                "md5": "fa5208985e500d9bcee9d83c5bfe012f",
                "sha256": "47c692724672a4c17016386bcea3a0e192ddf777408022781b180ead1426c6e8"
            },
            "downloads": -1,
            "filename": "lineup_optimizer-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "fa5208985e500d9bcee9d83c5bfe012f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 107526,
            "upload_time": "2023-09-13T23:01:14",
            "upload_time_iso_8601": "2023-09-13T23:01:14.041298Z",
            "url": "https://files.pythonhosted.org/packages/1c/68/947bccd2c836a6630859a6b837b03f8f3a065033090d546725152b29acdc/lineup_optimizer-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-13 23:01:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "n-roth12",
    "github_project": "DFSLineupOptimizer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "circle": true,
    "requirements": [],
    "lcname": "lineup-optimizer"
}
        
Elapsed time: 0.17292s