Sleeper Leagues Data
nolmacdonald opened this issue · 0 comments
nolmacdonald commented
REASON
Access to all endpoints through the Sleeper API allow for obtaining all available data with classes in src/sleeper
. The issue with retrieving from the Sleeper API is the data is returned in JSON structure.
A new class would allow for manipulating the JSON structures such that relevant data can be returned in a Pandas DataFrame.
See Sleeper API Documentation for more information.
DESIGN
Import src/sleeper/leagues.py
to retrieve leagues for a user, rosters, users in a league, matchups, playoff brackets, transactions.
Include functions to return DataFrames for:
- Get all leagues for user
- Get a specific league
- Getting rosters in a league
- Getting users in a league
- Getting matchups in a league
- Getting the playoff bracket
- Get transactions
- Get traded picks
- Get NFL state
IMPACT
Extends ability to pull Sleeper league data.