sweatstack 0.15.0__py3-none-any.whl → 0.17.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/streamlit.py CHANGED
@@ -75,6 +75,7 @@ class StreamlitAuth:
75
75
  "client_id": self.client_id,
76
76
  "redirect_uri": self.redirect_uri,
77
77
  "scope": "data:read",
78
+ "prompt": "none",
78
79
  }
79
80
  path = "/oauth/authorize"
80
81
  authorization_url = urllib.parse.urljoin(DEFAULT_URL, path + "?" + urllib.parse.urlencode(params))
@@ -112,6 +113,7 @@ class StreamlitAuth:
112
113
 
113
114
  def authenticate(self):
114
115
  if self.is_authenticated():
116
+ st.toast("SweatStack authentication successful!", icon="✅")
115
117
  self._show_sweatstack_logout()
116
118
  elif code := st.query_params.get("code"):
117
119
  self._exchange_token(code)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sweatstack
3
- Version: 0.15.0
3
+ Version: 0.17.0
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=VHzWimCalP9XlsNSQsAafJnmW5GGhth_szXwDuBoRKg,4362
10
+ sweatstack/streamlit.py,sha256=F5oQdWkcJ76Um5fRqFT5QrjpEz8v3OaiH9kMQOYktgo,4466
11
11
  sweatstack/sweatshell.py,sha256=MYLNcWbOdceqKJ3S0Pe8dwHXEeYsGJNjQoYUXpMTftA,333
12
12
  sweatstack/utils.py,sha256=HtR1NNCKus59vfgfaCSFS-tHA11mtdcuUx5lS6ZX58g,1773
13
- sweatstack-0.15.0.dist-info/METADATA,sha256=38qkeRBI2WCz6DHEETNIoMm7hQC2e6FO209L_L3Z54Y,2966
14
- sweatstack-0.15.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- sweatstack-0.15.0.dist-info/entry_points.txt,sha256=kCzOUQI3dqbTpEYqtgYDeiKFaqaA7BMlV6D24BMzCFU,208
16
- sweatstack-0.15.0.dist-info/RECORD,,
13
+ sweatstack-0.17.0.dist-info/METADATA,sha256=fCrgu9umxH57CPonX4eKReH9OXaMpNbJ3pz2-3dy8oM,2966
14
+ sweatstack-0.17.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ sweatstack-0.17.0.dist-info/entry_points.txt,sha256=kCzOUQI3dqbTpEYqtgYDeiKFaqaA7BMlV6D24BMzCFU,208
16
+ sweatstack-0.17.0.dist-info/RECORD,,