sweatstack 0.14.3__tar.gz → 0.14.4__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.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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sweatstack"
3
- version = "0.14.3"
3
+ version = "0.14.4"
4
4
  description = "The official Python client for SweatStack"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -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
 
@@ -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
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes