sweatstack 0.49.0__py3-none-any.whl → 0.50.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.
- sweatstack/client.py +10 -2
- {sweatstack-0.49.0.dist-info → sweatstack-0.50.0.dist-info}/METADATA +1 -1
- {sweatstack-0.49.0.dist-info → sweatstack-0.50.0.dist-info}/RECORD +5 -5
- {sweatstack-0.49.0.dist-info → sweatstack-0.50.0.dist-info}/WHEEL +0 -0
- {sweatstack-0.49.0.dist-info → sweatstack-0.50.0.dist-info}/entry_points.txt +0 -0
sweatstack/client.py
CHANGED
|
@@ -692,12 +692,13 @@ class Client(OAuth2Mixin, DelegationMixin, TokenStorageMixin, LocalCacheMixin):
|
|
|
692
692
|
sports: list[Sport | str] | None = None,
|
|
693
693
|
tags: list[str] | None = None,
|
|
694
694
|
limit: int = 100,
|
|
695
|
+
offset: int = 0,
|
|
695
696
|
) -> Generator[ActivitySummary, None, None]:
|
|
696
697
|
num_returned = 0
|
|
697
698
|
default_limit = 100
|
|
698
699
|
params = {
|
|
699
700
|
"limit": default_limit,
|
|
700
|
-
"offset":
|
|
701
|
+
"offset": offset,
|
|
701
702
|
}
|
|
702
703
|
if start is not None:
|
|
703
704
|
params["start"] = start.isoformat()
|
|
@@ -742,6 +743,7 @@ class Client(OAuth2Mixin, DelegationMixin, TokenStorageMixin, LocalCacheMixin):
|
|
|
742
743
|
sports: list[Sport | str] | None = None,
|
|
743
744
|
tags: list[str] | None = None,
|
|
744
745
|
limit: int = 100,
|
|
746
|
+
offset: int = 0,
|
|
745
747
|
as_dataframe: bool = False,
|
|
746
748
|
) -> list[ActivitySummary] | pd.DataFrame:
|
|
747
749
|
"""Gets a list of activities based on specified filters.
|
|
@@ -752,6 +754,7 @@ class Client(OAuth2Mixin, DelegationMixin, TokenStorageMixin, LocalCacheMixin):
|
|
|
752
754
|
sports: Optional list of sports to filter activities by. Can be Sport objects or string IDs.
|
|
753
755
|
tags: Optional list of tags to filter activities by.
|
|
754
756
|
limit: Maximum number of activities to return. Defaults to 100.
|
|
757
|
+
offset: Number of activities to skip. Defaults to 0.
|
|
755
758
|
as_dataframe: Whether to return results as a pandas DataFrame. Defaults to False.
|
|
756
759
|
|
|
757
760
|
Returns:
|
|
@@ -767,6 +770,7 @@ class Client(OAuth2Mixin, DelegationMixin, TokenStorageMixin, LocalCacheMixin):
|
|
|
767
770
|
sports=sports,
|
|
768
771
|
tags=tags,
|
|
769
772
|
limit=limit,
|
|
773
|
+
offset=offset,
|
|
770
774
|
))
|
|
771
775
|
if as_dataframe:
|
|
772
776
|
df = pd.DataFrame([activity.model_dump() for activity in activities])
|
|
@@ -1081,12 +1085,13 @@ class Client(OAuth2Mixin, DelegationMixin, TokenStorageMixin, LocalCacheMixin):
|
|
|
1081
1085
|
sports: list[Sport | str] | None = None,
|
|
1082
1086
|
tags: list[str] | None = None,
|
|
1083
1087
|
limit: int = 100,
|
|
1088
|
+
offset: int = 0,
|
|
1084
1089
|
) -> Generator[TraceDetails, None, None]:
|
|
1085
1090
|
num_returned = 0
|
|
1086
1091
|
default_limit = 100
|
|
1087
1092
|
params = {
|
|
1088
1093
|
"limit": default_limit,
|
|
1089
|
-
"offset":
|
|
1094
|
+
"offset": offset,
|
|
1090
1095
|
}
|
|
1091
1096
|
if start is not None:
|
|
1092
1097
|
params["start"] = start.isoformat()
|
|
@@ -1154,6 +1159,7 @@ class Client(OAuth2Mixin, DelegationMixin, TokenStorageMixin, LocalCacheMixin):
|
|
|
1154
1159
|
sports: list[Sport | str] | None = None,
|
|
1155
1160
|
tags: list[str] | None = None,
|
|
1156
1161
|
limit: int = 100,
|
|
1162
|
+
offset: int = 0,
|
|
1157
1163
|
as_dataframe: bool = False,
|
|
1158
1164
|
) -> list[TraceDetails] | pd.DataFrame:
|
|
1159
1165
|
"""Gets a list of traces based on specified filters.
|
|
@@ -1164,6 +1170,7 @@ class Client(OAuth2Mixin, DelegationMixin, TokenStorageMixin, LocalCacheMixin):
|
|
|
1164
1170
|
sports: Optional list of sports to filter traces by. Can be Sport objects or string IDs.
|
|
1165
1171
|
tags: Optional list of tags to filter traces by.
|
|
1166
1172
|
limit: Maximum number of traces to return. Defaults to 100.
|
|
1173
|
+
offset: Number of traces to skip. Defaults to 0.
|
|
1167
1174
|
as_dataframe: Whether to return results as a pandas DataFrame. Defaults to False.
|
|
1168
1175
|
|
|
1169
1176
|
Returns:
|
|
@@ -1179,6 +1186,7 @@ class Client(OAuth2Mixin, DelegationMixin, TokenStorageMixin, LocalCacheMixin):
|
|
|
1179
1186
|
sports=sports,
|
|
1180
1187
|
tags=tags,
|
|
1181
1188
|
limit=limit,
|
|
1189
|
+
offset=offset,
|
|
1182
1190
|
))
|
|
1183
1191
|
if not as_dataframe:
|
|
1184
1192
|
return traces
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
sweatstack/__init__.py,sha256=tiVfgKlswRPaDMEy0gA7u8rveqEYZTA_kyB9lJ3J6Sc,21
|
|
2
2
|
sweatstack/cli.py,sha256=N1NWOgEZR2yaJvIXxo9qvp_jFlypZYb0nujpbVNYQ6A,720
|
|
3
|
-
sweatstack/client.py,sha256=
|
|
3
|
+
sweatstack/client.py,sha256=oIp1aoQzVGcMyXYqJg_LNq3624DSIllAWhi_g1iRJWs,54685
|
|
4
4
|
sweatstack/constants.py,sha256=fGO6ksOv5HeISv9lHRoYm4besW1GTveXS8YD3K0ljg0,41
|
|
5
5
|
sweatstack/ipython_init.py,sha256=OtBB9dQvyLXklD4kA2x1swaVtU9u73fG4V4-zz4YRAg,139
|
|
6
6
|
sweatstack/jupyterlab_oauth2_startup.py,sha256=YcjXvzeZ459vL_dCkFi1IxX_RNAu80ZX9rwa0OXJfTM,1023
|
|
@@ -11,7 +11,7 @@ sweatstack/streamlit.py,sha256=_PER03s0dYu5eF1MZdewPDqSvYHqMr0lZLu_EnGit3Y,13257
|
|
|
11
11
|
sweatstack/sweatshell.py,sha256=MYLNcWbOdceqKJ3S0Pe8dwHXEeYsGJNjQoYUXpMTftA,333
|
|
12
12
|
sweatstack/utils.py,sha256=AwHRdC1ziOZ5o9RBIB21Uxm-DoClVRAJSVvgsmSmvps,1801
|
|
13
13
|
sweatstack/Sweat Stack examples/Getting started.ipynb,sha256=k2hiSffWecoQ0VxjdpDcgFzBXDQiYEebhnAYlu8cgX8,6335204
|
|
14
|
-
sweatstack-0.
|
|
15
|
-
sweatstack-0.
|
|
16
|
-
sweatstack-0.
|
|
17
|
-
sweatstack-0.
|
|
14
|
+
sweatstack-0.50.0.dist-info/METADATA,sha256=2U6hV_PT2DR5SPnJ8bdKlrIF7Iqded55SI6HOMdQ4x8,852
|
|
15
|
+
sweatstack-0.50.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
16
|
+
sweatstack-0.50.0.dist-info/entry_points.txt,sha256=kCzOUQI3dqbTpEYqtgYDeiKFaqaA7BMlV6D24BMzCFU,208
|
|
17
|
+
sweatstack-0.50.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|