Skip to content

EthanRosenthal/fml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fml

fantasy movie league prediction as an allocation problem:

Maximize expected revenue subject to finite budget

See blog post for more details

Installation

pip install -r requirements.txt

Create a Google Sheet with inputs and outputs tabs. Create related OAuth credentials. Download credentials locally and include their names in conf.yml file.

Running locally

You can either run the optimizer script as

python -m fml.optimizer

or run the Flask app locally

gunicorn fml.app:app

If running the Flask app locally, then replace this line with

 <form action="/" method="post">

Deployment

Make a virtual enviornment (using virtualenv) with any name that is not fml.

Next, use Zappa to initialize and deploy the app.

zappa init
zappa deploy dev

Releases

No releases published

Packages

No packages published