streamlit-octostar-utils 0.2.0__py3-none-any.whl → 0.2.1__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.
@@ -42,9 +42,9 @@ def as_running_user(force_refresh=False):
42
42
  else st.stop()
43
43
  )
44
44
 
45
- user_hash = int(hashlib.md5(running_user["os_jwt"].encode("utf-8")).hexdigest(), 16)
45
+ user_hash = int(hashlib.md5(running_user.os_jwt.encode("utf-8")).hexdigest(), 16)
46
46
  if "prev_user" not in session or hash(session["prev_user"]) != user_hash:
47
- client = make_client(fixed_jwt=running_user["os_jwt"])
47
+ client = make_client(fixed_jwt=running_user.os_jwt)
48
48
  user = User(client)
49
49
  session["prev_user"] = user
50
50
  session["token_expiry"] = user.jwt_expires_at
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: streamlit-octostar-utils
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Octostar
@@ -23,7 +23,7 @@ streamlit_octostar_utils/nlp/__init__.py,sha256=BtlYDZK_xaEbc7Ju_7MznXbCVPZcdLn2
23
23
  streamlit_octostar_utils/nlp/language.py,sha256=13f6kAALYjC3EclBzcyKPd4GlIeIR1mWPu3S6d-z814,549
24
24
  streamlit_octostar_utils/nlp/ner.py,sha256=EAx4WNCH3jO9KQlK47hG3RMjnNpFadGl7CKfCQmSM7c,13326
25
25
  streamlit_octostar_utils/octostar/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
26
- streamlit_octostar_utils/octostar/client.py,sha256=2oyU3ZJp4a7GxFM3qH5UVzu2KQm2kSSjzFlqG6t6G2Q,1696
26
+ streamlit_octostar_utils/octostar/client.py,sha256=NUvHe9asd65g4-hJ4CuUvUns-9dNWes1XZRJlO9eAAc,1690
27
27
  streamlit_octostar_utils/octostar/context.py,sha256=TpucK48EbeVy4vDqKd9UULEtr1JOY-_4nBs-rXZzESw,212
28
28
  streamlit_octostar_utils/octostar/permissions.py,sha256=G5nZQLR-k-5_Xeto4nDTb32828Ga-SHm1mvSB9tz-t4,1565
29
29
  streamlit_octostar_utils/ontology/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
@@ -36,7 +36,7 @@ streamlit_octostar_utils/threading/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzp
36
36
  streamlit_octostar_utils/threading/async_task_manager.py,sha256=q7N6YZwUvIYMzkSHmsJNheNVCv93c03H6Hyg9uH8pvk,4747
37
37
  streamlit_octostar_utils/threading/session_callback_manager.py,sha256=LvZVP4g6tvKtYmI13f2j1sX_7hm61Groqp5xJine9_k,3973
38
38
  streamlit_octostar_utils/threading/session_state_hot_swapper.py,sha256=6eeCQI6A42hp4DmW2NQw2rbeR-k9N8DhfBKQdN_fbLU,811
39
- streamlit_octostar_utils-0.2.0.dist-info/LICENSE,sha256=dkwVPyV03fPHHtERnF6RnvRXcll__tud9gWca1RcgnQ,1073
40
- streamlit_octostar_utils-0.2.0.dist-info/METADATA,sha256=CfGrV-aE4V02HSNDBHec34ngZR7tLSrAmCR0eyKKNRQ,2256
41
- streamlit_octostar_utils-0.2.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
- streamlit_octostar_utils-0.2.0.dist-info/RECORD,,
39
+ streamlit_octostar_utils-0.2.1.dist-info/LICENSE,sha256=dkwVPyV03fPHHtERnF6RnvRXcll__tud9gWca1RcgnQ,1073
40
+ streamlit_octostar_utils-0.2.1.dist-info/METADATA,sha256=v16q0aIPofBZnQjs0jwkTtAeN2jHiTc2HJ_LjK_NQRo,2256
41
+ streamlit_octostar_utils-0.2.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
+ streamlit_octostar_utils-0.2.1.dist-info/RECORD,,