streamlit-nightly 1.46.2.dev20250629__py3-none-any.whl → 1.46.2.dev20250701__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.
Files changed (78) hide show
  1. streamlit/runtime/caching/cache_data_api.py +16 -2
  2. streamlit/runtime/caching/cache_resource_api.py +15 -1
  3. streamlit/runtime/caching/cache_utils.py +5 -3
  4. streamlit/static/index.html +1 -1
  5. streamlit/static/manifest.json +218 -218
  6. streamlit/static/static/js/{ErrorOutline.esm.DOv-m0Tq.js → ErrorOutline.esm.BPc3D9N9.js} +1 -1
  7. streamlit/static/static/js/{FileDownload.esm.BJq4sORP.js → FileDownload.esm.BiFtKhyO.js} +1 -1
  8. streamlit/static/static/js/{FileHelper.BQaFP--d.js → FileHelper.D4zH-LPy.js} +1 -1
  9. streamlit/static/static/js/{FormClearHelper.BNPZlucK.js → FormClearHelper.C0oAv5iO.js} +1 -1
  10. streamlit/static/static/js/{Hooks.BbsB0tft.js → Hooks.DUp04RsA.js} +1 -1
  11. streamlit/static/static/js/{InputInstructions.Bn7SfmZQ.js → InputInstructions.DDo33kg9.js} +1 -1
  12. streamlit/static/static/js/{ProgressBar.VamAi00S.js → ProgressBar.DluhCn8Y.js} +1 -1
  13. streamlit/static/static/js/{RenderInPortalIfExists.BMcofnFR.js → RenderInPortalIfExists.CgnRTw5b.js} +1 -1
  14. streamlit/static/static/js/Toolbar.Ds5GetiN.js +1 -0
  15. streamlit/static/static/js/{base-input.CRDju-EK.js → base-input.WGo1U6ZF.js} +1 -1
  16. streamlit/static/static/js/{checkbox.CHb2GSpC.js → checkbox.D6n54iT6.js} +1 -1
  17. streamlit/static/static/js/{createSuper.CoSOeLpp.js → createSuper.5U626-en.js} +1 -1
  18. streamlit/static/static/js/{data-grid-overlay-editor.Dn5QYucy.js → data-grid-overlay-editor.BArb4CJR.js} +1 -1
  19. streamlit/static/static/js/{downloader.CMEM6V2v.js → downloader.O2_sntfr.js} +1 -1
  20. streamlit/static/static/js/{es6.KKrSqGPC.js → es6.q_Hnl4aM.js} +2 -2
  21. streamlit/static/static/js/{iframeResizer.contentWindow.s9tHKC5N.js → iframeResizer.contentWindow.CI0jLiDM.js} +1 -1
  22. streamlit/static/static/js/{index.C_KOPhLq.js → index.6EiR9ocA.js} +1 -1
  23. streamlit/static/static/js/{index.kE3pAFsk.js → index.9k0LltIg.js} +1 -1
  24. streamlit/static/static/js/{index.CmssQLKG.js → index.BBvZmL8i.js} +1 -1
  25. streamlit/static/static/js/{index.maQR6iGO.js → index.BE0RFnDe.js} +5 -5
  26. streamlit/static/static/js/{index.Be15MzB3.js → index.BHq3ymE5.js} +1 -1
  27. streamlit/static/static/js/{index.DjzdbuRp.js → index.BIFkuq05.js} +1 -1
  28. streamlit/static/static/js/{index.Dm2kLKvF.js → index.BK_N8ZQx.js} +1 -1
  29. streamlit/static/static/js/{index.D4KBbzF-.js → index.BcBDhWfd.js} +1 -1
  30. streamlit/static/static/js/{index.DH_lrk03.js → index.BgjJWPwA.js} +1 -1
  31. streamlit/static/static/js/{index.-dLnClVh.js → index.BpJHZBLD.js} +1 -1
  32. streamlit/static/static/js/{index.OVsenoDa.js → index.Bx8y-PCC.js} +1 -1
  33. streamlit/static/static/js/{index.31-60MG1.js → index.C3nRmcoA.js} +2 -2
  34. streamlit/static/static/js/{index.Dp7v49xb.js → index.C4Ex7o_F.js} +1 -1
  35. streamlit/static/static/js/{index.IjtuElHJ.js → index.CJ2HNyRu.js} +1 -1
  36. streamlit/static/static/js/{index.DKRFgERo.js → index.CSmIUY0Y.js} +1 -1
  37. streamlit/static/static/js/{index.CwsRQuWC.js → index.CVeKGjlc.js} +1 -1
  38. streamlit/static/static/js/{index.B-Fi5URX.js → index.CdMiaTQu.js} +1 -1
  39. streamlit/static/static/js/{index.D1qmtSYC.js → index.Chck3OtZ.js} +1 -1
  40. streamlit/static/static/js/{index.CuJ7aHek.js → index.CssTumWz.js} +1 -1
  41. streamlit/static/static/js/{index.Cw62yKYR.js → index.CuZeb5ME.js} +1 -1
  42. streamlit/static/static/js/{index.BF31vT9W.js → index.Cut1d44J.js} +1 -1
  43. streamlit/static/static/js/{index.BOpIRvhB.js → index.CydAyglg.js} +1 -1
  44. streamlit/static/static/js/{index.D-ZjhsnF.js → index.D3dJUIaK.js} +1 -1
  45. streamlit/static/static/js/{index.DAfRod-A.js → index.DExpy6fp.js} +1 -1
  46. streamlit/static/static/js/{index.CQoPrcao.js → index.DFr6h2Mp.js} +1 -1
  47. streamlit/static/static/js/{index.BRFEii3y.js → index.DGehTu4y.js} +1 -1
  48. streamlit/static/static/js/{index.DZfNCrwB.js → index.DKkRsEHh.js} +1 -1
  49. streamlit/static/static/js/{index.QFcvHrXB.js → index.DLIPqPyW.js} +1 -1
  50. streamlit/static/static/js/{index.Ddt-yti9.js → index.DX-uvB3F.js} +1 -1
  51. streamlit/static/static/js/{index.DGAM0SUk.js → index.DXUf_iJw.js} +1 -1
  52. streamlit/static/static/js/{index.D5kLs5xY.js → index.DYssBBFR.js} +1 -1
  53. streamlit/static/static/js/{index.CK0LK9uo.js → index.Df3rWQZG.js} +1 -1
  54. streamlit/static/static/js/{index.CSMFgqFx.js → index.DvfUlU7_.js} +68 -68
  55. streamlit/static/static/js/{index.CA6X3n1h.js → index.TZ6Mn-5O.js} +1 -1
  56. streamlit/static/static/js/{index.dgrTv8XT.js → index.d8SU82Ov.js} +1 -1
  57. streamlit/static/static/js/{index.CKTcU2Jo.js → index.fwYnPZir.js} +1 -1
  58. streamlit/static/static/js/{index.DZ9mRqRM.js → index.ivZN8Zb2.js} +2 -2
  59. streamlit/static/static/js/{input.Da6flC-J.js → input.Da7mGl-e.js} +1 -1
  60. streamlit/static/static/js/{memory.RO-tu8XB.js → memory.Ba9R8N9F.js} +1 -1
  61. streamlit/static/static/js/{mergeWith.oFY5pwbY.js → mergeWith.DuOn5KYt.js} +1 -1
  62. streamlit/static/static/js/{number-overlay-editor.CmedPuXw.js → number-overlay-editor.Cies2BnB.js} +1 -1
  63. streamlit/static/static/js/{possibleConstructorReturn.DqMD2GCK.js → possibleConstructorReturn.PFROJe03.js} +1 -1
  64. streamlit/static/static/js/{sandbox.BoYwQGpJ.js → sandbox.BJEPeXCj.js} +1 -1
  65. streamlit/static/static/js/{textarea.BDbR_YS9.js → textarea.C9d_M8Ah.js} +1 -1
  66. streamlit/static/static/js/{timepicker.oE_U0Vq4.js → timepicker.DqRJAopc.js} +1 -1
  67. streamlit/static/static/js/{toConsumableArray.Coo3T7lR.js → toConsumableArray.BFmb1pdq.js} +1 -1
  68. streamlit/static/static/js/{uniqueId.DdxHnhj2.js → uniqueId.BJtPrMww.js} +1 -1
  69. streamlit/static/static/js/{useBasicWidgetState.BiqDcmFi.js → useBasicWidgetState.DKrm_jMv.js} +1 -1
  70. streamlit/static/static/js/{useOnInputChange.DU3LGlRV.js → useOnInputChange.DVjdiDhw.js} +1 -1
  71. streamlit/static/static/js/{withFullScreenWrapper.CvnKWoJw.js → withFullScreenWrapper.CAgTFtpw.js} +1 -1
  72. {streamlit_nightly-1.46.2.dev20250629.dist-info → streamlit_nightly-1.46.2.dev20250701.dist-info}/METADATA +1 -1
  73. {streamlit_nightly-1.46.2.dev20250629.dist-info → streamlit_nightly-1.46.2.dev20250701.dist-info}/RECORD +77 -77
  74. streamlit/static/static/js/Toolbar.D07m35gs.js +0 -1
  75. {streamlit_nightly-1.46.2.dev20250629.data → streamlit_nightly-1.46.2.dev20250701.data}/scripts/streamlit.cmd +0 -0
  76. {streamlit_nightly-1.46.2.dev20250629.dist-info → streamlit_nightly-1.46.2.dev20250701.dist-info}/WHEEL +0 -0
  77. {streamlit_nightly-1.46.2.dev20250629.dist-info → streamlit_nightly-1.46.2.dev20250701.dist-info}/entry_points.txt +0 -0
  78. {streamlit_nightly-1.46.2.dev20250629.dist-info → streamlit_nightly-1.46.2.dev20250701.dist-info}/top_level.txt +0 -0
@@ -91,16 +91,18 @@ class CachedDataFuncInfo(CachedFuncInfo):
91
91
  def __init__(
92
92
  self,
93
93
  func: types.FunctionType,
94
- show_spinner: bool | str,
95
94
  persist: CachePersistType,
96
95
  max_entries: int | None,
97
96
  ttl: float | timedelta | str | None,
97
+ show_spinner: bool | str,
98
+ show_time: bool = False,
98
99
  hash_funcs: HashFuncsDict | None = None,
99
100
  ) -> None:
100
101
  super().__init__(
101
102
  func,
102
- show_spinner=show_spinner,
103
103
  hash_funcs=hash_funcs,
104
+ show_spinner=show_spinner,
105
+ show_time=show_time,
104
106
  )
105
107
  self.persist = persist
106
108
  self.max_entries = max_entries
@@ -372,6 +374,7 @@ class CacheDataAPI:
372
374
  ttl: float | timedelta | str | None = None,
373
375
  max_entries: int | None = None,
374
376
  show_spinner: bool | str = True,
377
+ show_time: bool = False,
375
378
  persist: CachePersistType | bool = None,
376
379
  experimental_allow_widgets: bool = False,
377
380
  hash_funcs: HashFuncsDict | None = None,
@@ -384,6 +387,7 @@ class CacheDataAPI:
384
387
  ttl: float | timedelta | str | None = None,
385
388
  max_entries: int | None = None,
386
389
  show_spinner: bool | str = True,
390
+ show_time: bool = False,
387
391
  persist: CachePersistType | bool = None,
388
392
  experimental_allow_widgets: bool = False,
389
393
  hash_funcs: HashFuncsDict | None = None,
@@ -394,6 +398,7 @@ class CacheDataAPI:
394
398
  max_entries=max_entries,
395
399
  persist=persist,
396
400
  show_spinner=show_spinner,
401
+ show_time=show_time,
397
402
  experimental_allow_widgets=experimental_allow_widgets,
398
403
  hash_funcs=hash_funcs,
399
404
  )
@@ -405,6 +410,7 @@ class CacheDataAPI:
405
410
  ttl: float | timedelta | str | None,
406
411
  max_entries: int | None,
407
412
  show_spinner: bool | str,
413
+ show_time: bool = False,
408
414
  persist: CachePersistType | bool,
409
415
  experimental_allow_widgets: bool,
410
416
  hash_funcs: HashFuncsDict | None = None,
@@ -457,6 +463,12 @@ class CacheDataAPI:
457
463
  a "cache miss" and the cached data is being created. If string,
458
464
  value of show_spinner param will be used for spinner text.
459
465
 
466
+ show_time : bool
467
+ Whether to show the elapsed time next to the spinner text. If this is
468
+ ``False`` (default), no time is displayed. If this is ``True``,
469
+ elapsed time is displayed with a precision of 0.1 seconds. The time
470
+ format is not configurable.
471
+
460
472
  persist : "disk", bool, or None
461
473
  Optional location to persist cached data to. Passing "disk" (or True)
462
474
  will persist the cached data to the local disk. None (or False) will disable
@@ -594,6 +606,7 @@ class CacheDataAPI:
594
606
  func=f, # type: ignore
595
607
  persist=persist_string,
596
608
  show_spinner=show_spinner,
609
+ show_time=show_time,
597
610
  max_entries=max_entries,
598
611
  ttl=ttl,
599
612
  hash_funcs=hash_funcs,
@@ -609,6 +622,7 @@ class CacheDataAPI:
609
622
  func=cast("types.FunctionType", func),
610
623
  persist=persist_string,
611
624
  show_spinner=show_spinner,
625
+ show_time=show_time,
612
626
  max_entries=max_entries,
613
627
  ttl=ttl,
614
628
  hash_funcs=hash_funcs,
@@ -160,11 +160,13 @@ class CachedResourceFuncInfo(CachedFuncInfo):
160
160
  ttl: float | timedelta | str | None,
161
161
  validate: ValidateFunc | None,
162
162
  hash_funcs: HashFuncsDict | None = None,
163
+ show_time: bool = False,
163
164
  ) -> None:
164
165
  super().__init__(
165
166
  func,
166
- show_spinner=show_spinner,
167
167
  hash_funcs=hash_funcs,
168
+ show_spinner=show_spinner,
169
+ show_time=show_time,
168
170
  )
169
171
  self.max_entries = max_entries
170
172
  self.ttl = ttl
@@ -246,6 +248,7 @@ class CacheResourceAPI:
246
248
  ttl: float | timedelta | str | None = None,
247
249
  max_entries: int | None = None,
248
250
  show_spinner: bool | str = True,
251
+ show_time: bool = False,
249
252
  validate: ValidateFunc | None = None,
250
253
  experimental_allow_widgets: bool = False,
251
254
  hash_funcs: HashFuncsDict | None = None,
@@ -258,6 +261,7 @@ class CacheResourceAPI:
258
261
  ttl: float | timedelta | str | None = None,
259
262
  max_entries: int | None = None,
260
263
  show_spinner: bool | str = True,
264
+ show_time: bool = False,
261
265
  validate: ValidateFunc | None = None,
262
266
  experimental_allow_widgets: bool = False,
263
267
  hash_funcs: HashFuncsDict | None = None,
@@ -267,6 +271,7 @@ class CacheResourceAPI:
267
271
  ttl=ttl,
268
272
  max_entries=max_entries,
269
273
  show_spinner=show_spinner,
274
+ show_time=show_time,
270
275
  validate=validate,
271
276
  experimental_allow_widgets=experimental_allow_widgets,
272
277
  hash_funcs=hash_funcs,
@@ -279,6 +284,7 @@ class CacheResourceAPI:
279
284
  ttl: float | timedelta | str | None,
280
285
  max_entries: int | None,
281
286
  show_spinner: bool | str,
287
+ show_time: bool = False,
282
288
  validate: ValidateFunc | None,
283
289
  experimental_allow_widgets: bool,
284
290
  hash_funcs: HashFuncsDict | None = None,
@@ -331,6 +337,12 @@ class CacheResourceAPI:
331
337
  a "cache miss" and the cached resource is being created. If string,
332
338
  value of show_spinner param will be used for spinner text.
333
339
 
340
+ show_time : bool
341
+ Whether to show the elapsed time next to the spinner text. If this is
342
+ ``False`` (default), no time is displayed. If this is ``True``,
343
+ elapsed time is displayed with a precision of 0.1 seconds. The time
344
+ format is not configurable.
345
+
334
346
  validate : callable or None
335
347
  An optional validation function for cached data. ``validate`` is called
336
348
  each time the cached value is accessed. It receives the cached value as
@@ -448,6 +460,7 @@ class CacheResourceAPI:
448
460
  CachedResourceFuncInfo(
449
461
  func=f, # type: ignore
450
462
  show_spinner=show_spinner,
463
+ show_time=show_time,
451
464
  max_entries=max_entries,
452
465
  ttl=ttl,
453
466
  validate=validate,
@@ -459,6 +472,7 @@ class CacheResourceAPI:
459
472
  CachedResourceFuncInfo(
460
473
  func=cast("types.FunctionType", func),
461
474
  show_spinner=show_spinner,
475
+ show_time=show_time,
462
476
  max_entries=max_entries,
463
477
  ttl=ttl,
464
478
  validate=validate,
@@ -128,12 +128,14 @@ class CachedFuncInfo:
128
128
  def __init__(
129
129
  self,
130
130
  func: FunctionType,
131
- show_spinner: bool | str,
132
131
  hash_funcs: HashFuncsDict | None,
132
+ show_spinner: bool | str,
133
+ show_time: bool = False,
133
134
  ) -> None:
134
135
  self.func = func
135
- self.show_spinner = show_spinner
136
136
  self.hash_funcs = hash_funcs
137
+ self.show_spinner = show_spinner
138
+ self.show_time = show_time
137
139
 
138
140
  @property
139
141
  def cache_type(self) -> CacheType:
@@ -253,7 +255,7 @@ class CachedFunc:
253
255
  # on behalf of the user.
254
256
  is_nested_cache_function = in_cached_function.get()
255
257
  spinner_or_no_context = (
256
- spinner(spinner_message, _cache=True)
258
+ spinner(spinner_message, _cache=True, show_time=self._info.show_time)
257
259
  if spinner_message is not None and not is_nested_cache_function
258
260
  else contextlib.nullcontext()
259
261
  )
@@ -37,7 +37,7 @@
37
37
  <script>
38
38
  window.prerenderReady = false
39
39
  </script>
40
- <script type="module" crossorigin src="./static/js/index.CSMFgqFx.js"></script>
40
+ <script type="module" crossorigin src="./static/js/index.DvfUlU7_.js"></script>
41
41
  <link rel="stylesheet" crossorigin href="./static/css/index.CJVRHjQZ.css">
42
42
  </head>
43
43
  <body>