sweatstack 0.14.5__tar.gz → 0.14.7__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sweatstack
3
- Version: 0.14.5
3
+ Version: 0.14.7
4
4
  Summary: The official Python client for SweatStack
5
5
  Author-email: Aart Goossens <aart@gssns.io>
6
6
  Requires-Python: >=3.12
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sweatstack"
3
- version = "0.14.5"
3
+ version = "0.14.7"
4
4
  description = "The official Python client for SweatStack"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -86,7 +86,7 @@ class OAuth2Mixin:
86
86
  "code_verifier": code_verifier
87
87
  }
88
88
  response = httpx.post(
89
- f"{self.url}/oauth/token",
89
+ f"{self.url}/api/v1/oauth/token",
90
90
  data=token_data,
91
91
  )
92
92
  try:
@@ -274,6 +274,7 @@ class Client(OAuth2Mixin):
274
274
  )
275
275
  if as_dataframe:
276
276
  df = pd.DataFrame([activity.model_dump() for activity in generator])
277
+ df = df.set_index(df["start"].rename("timestamp"))
277
278
  df = self._normalize_dataframe_column(df, "summary")
278
279
  df = self._normalize_dataframe_column(df, "laps")
279
280
  df = self._normalize_dataframe_column(df, "traces")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes