-
Notifications
You must be signed in to change notification settings - Fork 22
Description
It would be nice to be able to populate WDF from multiple sources. Strava is one very obvious pick.
To make this work efficiently few things must be agreed upon:
-
Access Strava API directly using
requests
andjson
(currently implemented instrava.py
and very easy to reason about) or rely on stravalib with all benefits of errors handling, but with an overhead of response-object mapping. -
Decide on what to do with the @requires decorator. Strava calls power - watts for example. One option is to get rid of the decorator and allow methods to specify the column name as an input argument (what
seaborn
orpandas.plot
do for example). Another option is to rename the columns on the fly to canonical names so @requires doesn't get confused. I do prefer the first option.