otf-api 0.2.2__py3-none-any.whl → 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. otf_api/__init__.py +12 -67
  2. otf_api/api.py +794 -36
  3. otf_api/cli/__init__.py +4 -0
  4. otf_api/cli/_utilities.py +60 -0
  5. otf_api/cli/app.py +177 -0
  6. otf_api/cli/bookings.py +231 -0
  7. otf_api/cli/prompts.py +162 -0
  8. otf_api/models/__init__.py +4 -8
  9. otf_api/models/auth.py +18 -12
  10. otf_api/models/base.py +205 -2
  11. otf_api/models/responses/__init__.py +6 -14
  12. otf_api/models/responses/body_composition_list.py +304 -0
  13. otf_api/models/responses/book_class.py +405 -0
  14. otf_api/models/responses/bookings.py +211 -37
  15. otf_api/models/responses/cancel_booking.py +93 -0
  16. otf_api/models/responses/challenge_tracker_content.py +6 -6
  17. otf_api/models/responses/challenge_tracker_detail.py +6 -6
  18. otf_api/models/responses/classes.py +205 -7
  19. otf_api/models/responses/enums.py +0 -35
  20. otf_api/models/responses/favorite_studios.py +5 -5
  21. otf_api/models/responses/latest_agreement.py +2 -2
  22. otf_api/models/responses/lifetime_stats.py +92 -0
  23. otf_api/models/responses/member_detail.py +17 -12
  24. otf_api/models/responses/member_membership.py +2 -2
  25. otf_api/models/responses/member_purchases.py +9 -9
  26. otf_api/models/responses/out_of_studio_workout_history.py +4 -4
  27. otf_api/models/responses/performance_summary_detail.py +1 -1
  28. otf_api/models/responses/performance_summary_list.py +13 -13
  29. otf_api/models/responses/studio_detail.py +10 -10
  30. otf_api/models/responses/studio_services.py +8 -8
  31. otf_api/models/responses/telemetry.py +6 -6
  32. otf_api/models/responses/telemetry_hr_history.py +6 -6
  33. otf_api/models/responses/telemetry_max_hr.py +3 -3
  34. otf_api/models/responses/total_classes.py +2 -2
  35. otf_api/models/responses/workouts.py +4 -4
  36. otf_api-0.3.0.dist-info/METADATA +55 -0
  37. otf_api-0.3.0.dist-info/RECORD +42 -0
  38. otf_api-0.3.0.dist-info/entry_points.txt +3 -0
  39. otf_api/__version__.py +0 -1
  40. otf_api/classes_api.py +0 -44
  41. otf_api/member_api.py +0 -380
  42. otf_api/performance_api.py +0 -54
  43. otf_api/studios_api.py +0 -96
  44. otf_api/telemetry_api.py +0 -95
  45. otf_api-0.2.2.dist-info/METADATA +0 -284
  46. otf_api-0.2.2.dist-info/RECORD +0 -38
  47. {otf_api-0.2.2.dist-info → otf_api-0.3.0.dist-info}/AUTHORS.md +0 -0
  48. {otf_api-0.2.2.dist-info → otf_api-0.3.0.dist-info}/LICENSE +0 -0
  49. {otf_api-0.2.2.dist-info → otf_api-0.3.0.dist-info}/WHEEL +0 -0
otf_api/__init__.py CHANGED
@@ -1,70 +1,15 @@
1
- from . import classes_api, member_api, studios_api, telemetry_api
1
+ import os
2
+ import sys
3
+
4
+ from loguru import logger
5
+
2
6
  from .api import Api
3
7
  from .models.auth import User
4
- from .models.responses import (
5
- ALL_CLASS_STATUS,
6
- ALL_HISTORY_CLASS_STATUS,
7
- ALL_STUDIO_STATUS,
8
- BookingList,
9
- BookingStatus,
10
- ChallengeTrackerContent,
11
- ChallengeTrackerDetailList,
12
- ChallengeType,
13
- EquipmentType,
14
- FavoriteStudioList,
15
- HistoryClassStatus,
16
- LatestAgreement,
17
- MemberDetail,
18
- MemberMembership,
19
- MemberPurchaseList,
20
- OtfClassList,
21
- OutOfStudioWorkoutHistoryList,
22
- PerformanceSummaryDetail,
23
- PerformanceSummaryList,
24
- StudioDetail,
25
- StudioDetailList,
26
- StudioServiceList,
27
- StudioStatus,
28
- Telemetry,
29
- TelemetryHrHistory,
30
- TelemetryMaxHr,
31
- TotalClasses,
32
- WorkoutList,
33
- )
34
8
 
35
- __all__ = [
36
- "Api",
37
- "User",
38
- "member_api",
39
- "BookingList",
40
- "ChallengeTrackerContent",
41
- "ChallengeTrackerDetailList",
42
- "ChallengeType",
43
- "BookingStatus",
44
- "EquipmentType",
45
- "HistoryClassStatus",
46
- "LatestAgreement",
47
- "MemberDetail",
48
- "MemberMembership",
49
- "MemberPurchaseList",
50
- "OutOfStudioWorkoutHistoryList",
51
- "StudioServiceList",
52
- "StudioStatus",
53
- "TotalClasses",
54
- "WorkoutList",
55
- "FavoriteStudioList",
56
- "OtfClassList",
57
- "classes_api",
58
- "studios_api",
59
- "telemetry_api",
60
- "TelemetryHrHistory",
61
- "Telemetry",
62
- "TelemetryMaxHr",
63
- "StudioDetail",
64
- "StudioDetailList",
65
- "ALL_CLASS_STATUS",
66
- "ALL_HISTORY_CLASS_STATUS",
67
- "ALL_STUDIO_STATUS",
68
- "PerformanceSummaryDetail",
69
- "PerformanceSummaryList",
70
- ]
9
+ __version__ = "0.3.0"
10
+
11
+
12
+ __all__ = ["Api", "User"]
13
+
14
+ logger.remove()
15
+ logger.add(sink=sys.stdout, level=os.getenv("OTF_LOG_LEVEL", "INFO"))