sweatstack 0.14.3__py3-none-any.whl → 0.14.4__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/streamlit.py CHANGED
@@ -30,12 +30,12 @@ class StreamlitAuth:
30
30
  self.redirect_uri = redirect_uri or os.environ.get("SWEATSTACK_REDIRECT_URI")
31
31
 
32
32
  self.api_key = st.session_state.get("sweatstack_api_key")
33
- self.client = Client(self.api_key)
33
+ self.client = Client(self.api_key, streamlit_compatible=True)
34
34
 
35
35
  def _show_sweatstack_logout(self):
36
36
  if st.button("Logout"):
37
37
  self.api_key = None
38
- self.client = Client()
38
+ self.client = Client(streamlit_compatible=True)
39
39
  st.session_state.pop("sweatstack_api_key")
40
40
  st.rerun()
41
41
 
sweatstack/utils.py CHANGED
@@ -16,7 +16,7 @@ def decode_jwt_body(jwt: str) -> dict:
16
16
  return json.loads(decoded)
17
17
 
18
18
 
19
- def make_dataframe_streamlit_compatible(df):
19
+ def make_dataframe_streamlit_compatible(df: pd.DataFrame) -> pd.DataFrame:
20
20
  """
21
21
  Converts all columns containing enum values in a DataFrame to their respective string values.
22
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sweatstack
3
- Version: 0.14.3
3
+ Version: 0.14.4
4
4
  Summary: The official Python client for SweatStack
5
5
  Author-email: Aart Goossens <aart@gssns.io>
6
6
  Requires-Python: >=3.12
@@ -7,10 +7,10 @@ sweatstack/jupyterlab_oauth2_startup.py,sha256=eZ6xi0Sa4hO4vUanimq0SqjduHtiywCUR
7
7
  sweatstack/openapi_schemas.py,sha256=vtYHa6A0kADFbd_jK1O7Kbn8YkbPfzaIwsRDDYjYeSA,13038
8
8
  sweatstack/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  sweatstack/schemas.py,sha256=CdkeV6IRmIuvxae7C5dz-hVlb6hkzEYfqKHHgVJprmY,90
10
- sweatstack/streamlit.py,sha256=xmASRIB-TfqMc3je6Qkkr0D-L9lr9oNVUWcXUzgiMME,3403
10
+ sweatstack/streamlit.py,sha256=_9FOzEADveEIMytNIdQWhboyq6Pvi0E9e1yZhhd85Cg,3455
11
11
  sweatstack/sweatshell.py,sha256=MYLNcWbOdceqKJ3S0Pe8dwHXEeYsGJNjQoYUXpMTftA,333
12
- sweatstack/utils.py,sha256=kQZi7W5BXYn4Exmykvhf8A91YHbsCMR37Mobunt3pNE,1743
13
- sweatstack-0.14.3.dist-info/METADATA,sha256=UI1v17FhKY8UrrLiP8rri3clWr8wkBtNR-pOe3rcbrc,2966
14
- sweatstack-0.14.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- sweatstack-0.14.3.dist-info/entry_points.txt,sha256=kCzOUQI3dqbTpEYqtgYDeiKFaqaA7BMlV6D24BMzCFU,208
16
- sweatstack-0.14.3.dist-info/RECORD,,
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,,