fantasy-analytics

Build Status Coverage Status Code style: black

Authors

  • Mitchell Bregman
  • Leon Kozlowski

Setup

$ git clone https://github.com/themarathoncontinues/fantasy-analytics.git
$ cd fantasy-analytics

$ python3.6 -m venv venv
$ source venv/bin/activate

$ pip install -e .

Local Testing

In order to see any logger level logs test locally

$ echo "espn_s2 = {your_espn_s2_here}" >> .env
$ echo "swid = {your_swid_here}" >> .env
$ echo "username = {your_username_here}" >> .env
$ echo "password = {your_password_here}" >> .env

$ python notebooks/league_tester.py

Flows

With Prefect flows all downstream and upstream tasks can be tracked

  1. Flow('league_flow')
  • fetch league metadata for a given league and year

  1. Flow('players_flow)
  • fetch players for every roster in a league