Module ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameStore NameStore NameStore NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr BinOpAdd NameLoad Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body ImportFrom alias Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Break If UnaryOpNot NameLoad body Raise Call NameLoad Str keyword NameLoad keyword Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return TupleLoad NameLoad Dict Dict Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str If NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad keyword Num Assign NameStore Call NameLoad keyword Num keyword Num keyword Num orelse Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad keyword Num Assign NameStore BinOpSub NameLoad Call NameLoad keyword Num Assign NameStore NameLoad Assign NameStore ListLoad While NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str keyword NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore IfExp BoolOpAnd CompareIsNot NameLoad NameLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareGt Call AttributeLoad NameLoad attr keyword NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If CompareIs NameLoad NameLoad body Continue Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad keyword Call NameLoad AttributeLoad NameLoad attr Continue Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call NameLoad keyword Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad If AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Str body Continue If CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad AttributeLoad NameLoad attr Continue Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Break If Call NameLoad NameLoad body If CompareEq NameLoad NameLoad body Break Assign NameStore NameLoad orelse Break Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr NameLoad Break Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Call AttributeLoad NameLoad attr Str If CompareNotEq AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A tapiriik.settings WEB_ROOT tapiriik.services.service_base ServiceAuthenticationType ServiceBase tapiriik.services.interchange UploadedActivity ActivityType ActivityStatistic ActivityStatisticUnit tapiriik.services.api APIException UserException UserExceptionType APIExcludeActivity tapiriik.services.pwx PWXIO lxml etree django.core.urlresolvers reverse datetime datetime timedelta N/A dateutil.parser N/A requests N/A logging N/A re N/A logger N/A N/A logging getLogger __name__ TrainingPeaksService N/A ServiceBase N/A N/A ID trainingpeaks N/A DisplayName TrainingPeaks N/A DisplayAbbreviation TP N/A AuthenticationType N/A ServiceAuthenticationType UsernamePassword N/A RequiresExtendedAuthorizationDetails True N/A ReceivesStationaryActivities False N/A SupportsHR SupportsCadence SupportsTemp SupportsPower True N/A _workoutTypeMappings N/A Bike Run Walk Swim MTB XC-Ski Rowing X-Train Strength Race Custom Other N/A ActivityType Cycling N/A ActivityType Running N/A ActivityType Walking N/A ActivityType Swimming N/A ActivityType MountainBiking N/A ActivityType CrossCountrySkiing N/A ActivityType Rowing N/A ActivityType Other N/A ActivityType Other N/A ActivityType Other N/A ActivityType Other N/A ActivityType Other N/A SupportedActivities N/A N/A ActivityType List N/A _tp_ns N/A tpw xsi http://www.trainingpeaks.com/TPWebServices/ http://www.w3.org/2001/XMLSchema-instance WebInit N/A N/A self N/A N/A N/A N/A self UserAuthorizationURL N/A WEB_ROOT N/A reverse auth_simple kwargs N/A service N/A self ID N/A _authData N/A N/A self serviceRecord N/A N/A tapiriik.auth.credential_storage CredentialStore N/A password N/A N/A CredentialStore Decrypt N/A N/A serviceRecord ExtendedAuthorization N/A Password N/A username N/A N/A CredentialStore Decrypt N/A N/A serviceRecord ExtendedAuthorization N/A Username N/A N/A username password username password N/A Authorize N/A N/A self email password N/A N/A tapiriik.auth.credential_storage CredentialStore N/A soap_auth_data N/A username password email password N/A resp N/A N/A requests post https://www.trainingpeaks.com/tpwebservices/service.asmx/AuthenticateAccount data soap_auth_data N/A N/A N/A resp status_code 200 N/A N/A N/A APIException Invalid login N/A N/A N/A soap_auth_data update N/A types CoachedPremium,SelfCoachedPremium,SharedCoachedPremium,CoachedFree,SharedFree,Plan N/A users_resp N/A N/A requests post https://www.trainingpeaks.com/tpwebservices/service.asmx/GetAccessibleAthletes data soap_auth_data N/A users_resp N/A N/A etree XML N/A users_resp content N/A personId None N/A xperson users_resp N/A N/A xpersonid N/A N/A xperson find tpw:PersonId namespaces N/A self _tp_ns N/A N/A N/A xpersonid None N/A xpersonid text N/A N/A personId N/A int N/A xpersonid text N/A N/A N/A personId N/A N/A N/A APIException Account not premium block True user_exception N/A UserException N/A UserExceptionType AccountUnpaid intervention_required True extra personId N/A N/A personId N/A N/A Username Password N/A N/A CredentialStore Encrypt email N/A N/A CredentialStore Encrypt password N/A RevokeAuthorization N/A N/A self serviceRecord N/A N/A N/A N/A DeleteCachedData N/A N/A self serviceRecord N/A N/A N/A N/A DownloadActivityList N/A N/A self svcRecord exhaustive N/A False N/A N/A ns N/A self _tp_ns N/A activities N/A N/A exclusions N/A N/A reqData N/A N/A self _authData svcRecord N/A limitDateFormat %d %B %Y N/A exhaustive N/A N/A listEnd N/A N/A N/A datetime now N/A timedelta days 1.5 N/A listStart N/A datetime day 1 month 1 year 1980 N/A N/A listEnd N/A N/A N/A datetime now N/A timedelta days 1.5 N/A listStart N/A listEnd N/A timedelta days 20 N/A lastActivityDay None N/A discoveredWorkoutIds N/A N/A True N/A N/A N/A N/A reqData update N/A startDate endDate N/A N/A listStart strftime limitDateFormat N/A N/A listEnd strftime limitDateFormat N/A N/A Requesting %s to %s N/A listStart listEnd N/A resp N/A N/A requests post https://www.trainingpeaks.com/tpwebservices/service.asmx/GetWorkoutsForAthlete data reqData N/A xresp N/A N/A etree XML N/A resp content N/A xworkout xresp N/A N/A activity N/A UploadedActivity N/A workoutId N/A N/A N/A xworkout find tpw:WorkoutId namespaces ns text N/A workoutDayEl N/A N/A xworkout find tpw:WorkoutDay namespaces ns N/A startTimeEl N/A N/A xworkout find tpw:StartTime namespaces ns N/A workoutDay N/A N/A N/A dateutil parser parse N/A workoutDayEl text N/A startTime N/A N/A N/A startTimeEl None N/A startTimeEl text N/A N/A N/A dateutil parser parse N/A startTimeEl text None N/A N/A N/A lastActivityDay None N/A N/A N/A workoutDay replace tzinfo None lastActivityDay N/A N/A lastActivityDay N/A N/A workoutDay replace tzinfo None N/A N/A startTime None N/A N/A N/A N/A activity StartTime startTime N/A endTimeEl N/A N/A xworkout find tpw:TimeTotalInSeconds namespaces ns N/A N/A N/A endTimeEl text N/A N/A N/A N/A exclusions append N/A APIExcludeActivity Activity has no duration activity_id workoutId user_exception N/A UserException N/A UserExceptionType Corrupt N/A N/A N/A activity EndTime N/A N/A activity StartTime N/A timedelta seconds N/A float N/A endTimeEl text N/A distEl N/A N/A xworkout find tpw:DistanceInMeters namespaces ns N/A N/A distEl text N/A N/A N/A N/A activity Stats Distance N/A ActivityStatistic N/A ActivityStatisticUnit Meters value N/A float N/A distEl text N/A N/A workoutId discoveredWorkoutIds N/A N/A N/A N/A N/A discoveredWorkoutIds append workoutId N/A workoutTypeEl N/A N/A xworkout find tpw:WorkoutTypeDescription namespaces ns N/A N/A workoutTypeEl text N/A N/A N/A N/A workoutTypeEl text Day Off N/A N/A N/A N/A N/A workoutTypeEl text N/A self _workoutTypeMappings N/A N/A N/A N/A exclusions append N/A APIExcludeActivity N/A Activity type %s unknown N/A workoutTypeEl text activity_id workoutId user_exception N/A UserException N/A UserExceptionType Corrupt N/A N/A N/A activity Type N/A N/A self _workoutTypeMappings N/A N/A workoutTypeEl text N/A N/A activity ServiceData N/A WorkoutID workoutId N/A N/A N/A activity CalculateUID N/A N/A N/A activities append activity N/A N/A exhaustive N/A N/A N/A N/A len xresp N/A N/A N/A listStart lastActivityDay N/A N/A N/A listStart lastActivityDay N/A N/A N/A N/A activities exclusions N/A DownloadActivity N/A N/A self svcRecord activity N/A N/A N/A params N/A N/A self _authData svcRecord N/A N/A N/A params update N/A workoutIds personId N/A N/A activity ServiceData N/A WorkoutID N/A svcRecord ExternalID N/A resp N/A N/A requests get https://www.trainingpeaks.com/tpwebservices/service.asmx/GetExtendedWorkoutsForAccessibleAthlete params params N/A activity N/A N/A PWXIO Parse N/A resp content activity N/A N/A activity GPS False N/A flat_wps N/A N/A activity GetFlatWaypoints N/A wp flat_wps N/A N/A N/A N/A wp Location N/A N/A wp Location Latitude N/A N/A wp Location Longitude N/A N/A N/A activity GPS True N/A N/A activity N/A UploadActivity N/A N/A self svcRecord activity N/A N/A N/A pwxdata N/A N/A PWXIO Dump activity N/A params N/A N/A self _authData svcRecord N/A resp N/A N/A requests post https://www.trainingpeaks.com/TPWebServices/EasyFileUpload.ashx params params data N/A N/A pwxdata encode UTF-8 N/A N/A N/A resp text OK N/A N/A N/A APIException N/A N/A N/A Unable to upload activity response  N/A resp text  status  N/A str N/A resp status_code N/A N/A