streamlit-nightly 1.46.2.dev20250628__py3-none-any.whl → 1.46.2.dev20250630__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.
- streamlit/runtime/caching/cache_data_api.py +16 -2
- streamlit/runtime/caching/cache_resource_api.py +15 -1
- streamlit/runtime/caching/cache_utils.py +5 -3
- streamlit/static/index.html +1 -1
- streamlit/static/manifest.json +218 -218
- streamlit/static/static/js/{ErrorOutline.esm.DOv-m0Tq.js → ErrorOutline.esm.Dxjg6IRT.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.BJq4sORP.js → FileDownload.esm.DUks_wV_.js} +1 -1
- streamlit/static/static/js/{FileHelper.BQaFP--d.js → FileHelper.BbPTP1JB.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.BNPZlucK.js → FormClearHelper.CPbpL4Iu.js} +1 -1
- streamlit/static/static/js/{Hooks.BbsB0tft.js → Hooks.CxUXOgrk.js} +1 -1
- streamlit/static/static/js/{InputInstructions.Bn7SfmZQ.js → InputInstructions.DJ1rHmtw.js} +1 -1
- streamlit/static/static/js/{ProgressBar.VamAi00S.js → ProgressBar.CHuwkwTP.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.BMcofnFR.js → RenderInPortalIfExists.D95lvcfx.js} +1 -1
- streamlit/static/static/js/{Toolbar.D07m35gs.js → Toolbar.BseShgV1.js} +1 -1
- streamlit/static/static/js/{base-input.CRDju-EK.js → base-input.WYe9-ubW.js} +1 -1
- streamlit/static/static/js/{checkbox.CHb2GSpC.js → checkbox.q85ZLs2m.js} +1 -1
- streamlit/static/static/js/{createSuper.CoSOeLpp.js → createSuper.B8q8YLDg.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.Dn5QYucy.js → data-grid-overlay-editor.Dvyj9Tv8.js} +1 -1
- streamlit/static/static/js/{downloader.CMEM6V2v.js → downloader.DNzHzyGV.js} +1 -1
- streamlit/static/static/js/{es6.KKrSqGPC.js → es6.DspIW9uw.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.s9tHKC5N.js → iframeResizer.contentWindow.r0RTNCiE.js} +1 -1
- streamlit/static/static/js/{index.CwsRQuWC.js → index.-rWhcLJP.js} +1 -1
- streamlit/static/static/js/{index.CA6X3n1h.js → index.1c3oM2N7.js} +1 -1
- streamlit/static/static/js/{index.D4KBbzF-.js → index.3gA1NIOE.js} +1 -1
- streamlit/static/static/js/{index.CuJ7aHek.js → index.3xavF_0n.js} +1 -1
- streamlit/static/static/js/{index.DKRFgERo.js → index.AWNbYFrb.js} +1 -1
- streamlit/static/static/js/{index.D5kLs5xY.js → index.BJraUn_t.js} +1 -1
- streamlit/static/static/js/{index.kE3pAFsk.js → index.BN07pOu4.js} +1 -1
- streamlit/static/static/js/{index.Dp7v49xb.js → index.BRKsam4Y.js} +1 -1
- streamlit/static/static/js/{index.maQR6iGO.js → index.BlBZJ-Nr.js} +5 -5
- streamlit/static/static/js/{index.DZ9mRqRM.js → index.BlCKLDOZ.js} +2 -2
- streamlit/static/static/js/{index.BRFEii3y.js → index.BxV4Hdx3.js} +1 -1
- streamlit/static/static/js/{index.B-Fi5URX.js → index.CAv2zgjK.js} +1 -1
- streamlit/static/static/js/{index.DGAM0SUk.js → index.CBTQKi-P.js} +1 -1
- streamlit/static/static/js/{index.BF31vT9W.js → index.CGyNHtSj.js} +1 -1
- streamlit/static/static/js/{index.DH_lrk03.js → index.CJVmqGWb.js} +1 -1
- streamlit/static/static/js/{index.Dm2kLKvF.js → index.CVmI74U6.js} +1 -1
- streamlit/static/static/js/{index.CSMFgqFx.js → index.CW9dTClp.js} +56 -56
- streamlit/static/static/js/{index.D-ZjhsnF.js → index.CZ4DY8ui.js} +1 -1
- streamlit/static/static/js/{index.Cw62yKYR.js → index.Ca1oUX_q.js} +1 -1
- streamlit/static/static/js/{index.DAfRod-A.js → index.ChKqi4i3.js} +1 -1
- streamlit/static/static/js/{index.QFcvHrXB.js → index.CobtVpzC.js} +1 -1
- streamlit/static/static/js/{index.OVsenoDa.js → index.Cu1q0VW4.js} +1 -1
- streamlit/static/static/js/{index.C_KOPhLq.js → index.CwsfJRGf.js} +1 -1
- streamlit/static/static/js/{index.CK0LK9uo.js → index.DAHN8zmn.js} +1 -1
- streamlit/static/static/js/{index.-dLnClVh.js → index.DI6GST9u.js} +1 -1
- streamlit/static/static/js/{index.DjzdbuRp.js → index.Da1q_KWc.js} +1 -1
- streamlit/static/static/js/{index.CmssQLKG.js → index.DcWAX9sK.js} +1 -1
- streamlit/static/static/js/{index.D1qmtSYC.js → index.Dl3PDYIm.js} +1 -1
- streamlit/static/static/js/{index.IjtuElHJ.js → index.FoBY-QWg.js} +1 -1
- streamlit/static/static/js/{index.dgrTv8XT.js → index.JtAQSo4b.js} +1 -1
- streamlit/static/static/js/{index.CKTcU2Jo.js → index.QwG_LwRf.js} +1 -1
- streamlit/static/static/js/{index.31-60MG1.js → index.TRFuoL4h.js} +1 -1
- streamlit/static/static/js/{index.Ddt-yti9.js → index.fMByvmk4.js} +1 -1
- streamlit/static/static/js/{index.BOpIRvhB.js → index.fwPkRvFV.js} +1 -1
- streamlit/static/static/js/{index.Be15MzB3.js → index.mPd_0hyY.js} +1 -1
- streamlit/static/static/js/{index.CQoPrcao.js → index.yF9-AUSb.js} +1 -1
- streamlit/static/static/js/{index.DZfNCrwB.js → index.zK_Kki5l.js} +1 -1
- streamlit/static/static/js/{input.Da6flC-J.js → input.BblW0DV1.js} +1 -1
- streamlit/static/static/js/{memory.RO-tu8XB.js → memory.BFpqnunH.js} +1 -1
- streamlit/static/static/js/{mergeWith.oFY5pwbY.js → mergeWith.DMaSpMaL.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.CmedPuXw.js → number-overlay-editor.Cr9sn26b.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.DqMD2GCK.js → possibleConstructorReturn.B3NcCHDd.js} +1 -1
- streamlit/static/static/js/{sandbox.BoYwQGpJ.js → sandbox.3jFBLWNf.js} +1 -1
- streamlit/static/static/js/{textarea.BDbR_YS9.js → textarea.dsrIcAKo.js} +1 -1
- streamlit/static/static/js/{timepicker.oE_U0Vq4.js → timepicker.CbF35-hi.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.Coo3T7lR.js → toConsumableArray.BqKiiQ0r.js} +1 -1
- streamlit/static/static/js/{uniqueId.DdxHnhj2.js → uniqueId.DrVTLd2c.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.BiqDcmFi.js → useBasicWidgetState.CTBqw8Kt.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.DU3LGlRV.js → useOnInputChange.D1XRaVU2.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.CvnKWoJw.js → withFullScreenWrapper.CbCRhtqE.js} +1 -1
- {streamlit_nightly-1.46.2.dev20250628.dist-info → streamlit_nightly-1.46.2.dev20250630.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.46.2.dev20250628.dist-info → streamlit_nightly-1.46.2.dev20250630.dist-info}/RECORD +77 -77
- {streamlit_nightly-1.46.2.dev20250628.data → streamlit_nightly-1.46.2.dev20250630.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.46.2.dev20250628.dist-info → streamlit_nightly-1.46.2.dev20250630.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.46.2.dev20250628.dist-info → streamlit_nightly-1.46.2.dev20250630.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.46.2.dev20250628.dist-info → streamlit_nightly-1.46.2.dev20250630.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
|
)
|
streamlit/static/index.html
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
<script>
|
38
38
|
window.prerenderReady = false
|
39
39
|
</script>
|
40
|
-
<script type="module" crossorigin src="./static/js/index.
|
40
|
+
<script type="module" crossorigin src="./static/js/index.CW9dTClp.js"></script>
|
41
41
|
<link rel="stylesheet" crossorigin href="./static/css/index.CJVRHjQZ.css">
|
42
42
|
</head>
|
43
43
|
<body>
|