sweatstack 0.14.4__py3-none-any.whl → 0.14.6__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 CHANGED
@@ -274,6 +274,10 @@ 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"))
278
+ df = self._normalize_dataframe_column(df, "summary")
279
+ df = self._normalize_dataframe_column(df, "laps")
280
+ df = self._normalize_dataframe_column(df, "traces")
277
281
  return self._postprocess_dataframe(df)
278
282
  else:
279
283
  return generator
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sweatstack
3
- Version: 0.14.4
3
+ Version: 0.14.6
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
  sweatstack/__init__.py,sha256=tiVfgKlswRPaDMEy0gA7u8rveqEYZTA_kyB9lJ3J6Sc,21
2
2
  sweatstack/cli.py,sha256=N1NWOgEZR2yaJvIXxo9qvp_jFlypZYb0nujpbVNYQ6A,720
3
- sweatstack/client.py,sha256=op-pfQAAxmoz6XhTL8p2H8GXqCcN92vxwJfoAmCP7CM,19747
3
+ sweatstack/client.py,sha256=zwYNBlPJYe7CKiaR5YPL90r5arXIXeeSIAMzDRbC6Rs,20001
4
4
  sweatstack/constants.py,sha256=fGO6ksOv5HeISv9lHRoYm4besW1GTveXS8YD3K0ljg0,41
5
5
  sweatstack/ipython_init.py,sha256=zBGUlMFkdpLvsNpOpwrNaKRUpUZhzaICvH8ODJgMPcI,229
6
6
  sweatstack/jupyterlab_oauth2_startup.py,sha256=eZ6xi0Sa4hO4vUanimq0SqjduHtiywCURSDNWk_I-7s,1200
@@ -10,7 +10,7 @@ sweatstack/schemas.py,sha256=CdkeV6IRmIuvxae7C5dz-hVlb6hkzEYfqKHHgVJprmY,90
10
10
  sweatstack/streamlit.py,sha256=_9FOzEADveEIMytNIdQWhboyq6Pvi0E9e1yZhhd85Cg,3455
11
11
  sweatstack/sweatshell.py,sha256=MYLNcWbOdceqKJ3S0Pe8dwHXEeYsGJNjQoYUXpMTftA,333
12
12
  sweatstack/utils.py,sha256=HtR1NNCKus59vfgfaCSFS-tHA11mtdcuUx5lS6ZX58g,1773
13
- sweatstack-0.14.4.dist-info/METADATA,sha256=AEnvgVLiu4O2RTlnbUWFg-KwU9iHVnrYgvC5h-hTBZo,2966
14
- sweatstack-0.14.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- sweatstack-0.14.4.dist-info/entry_points.txt,sha256=kCzOUQI3dqbTpEYqtgYDeiKFaqaA7BMlV6D24BMzCFU,208
16
- sweatstack-0.14.4.dist-info/RECORD,,
13
+ sweatstack-0.14.6.dist-info/METADATA,sha256=YxcIqTthHcjSyrFVWB4ab7ZTL8QqVzweAhxs_VZhLgI,2966
14
+ sweatstack-0.14.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ sweatstack-0.14.6.dist-info/entry_points.txt,sha256=kCzOUQI3dqbTpEYqtgYDeiKFaqaA7BMlV6D24BMzCFU,208
16
+ sweatstack-0.14.6.dist-info/RECORD,,