streamlit 1.51.0__py3-none-any.whl → 1.52.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.
Files changed (314) hide show
  1. streamlit/__init__.py +1 -0
  2. streamlit/commands/execution_control.py +89 -14
  3. streamlit/components/v1/component_arrow.py +7 -7
  4. streamlit/components/v2/__init__.py +59 -3
  5. streamlit/components/v2/bidi_component/main.py +161 -13
  6. streamlit/components/v2/bidi_component/serialization.py +13 -6
  7. streamlit/components/v2/component_manager.py +11 -3
  8. streamlit/components/v2/component_registry.py +18 -1
  9. streamlit/components/v2/types.py +2 -2
  10. streamlit/connections/snowflake_connection.py +1 -1
  11. streamlit/connections/snowpark_connection.py +1 -1
  12. streamlit/dataframe_util.py +18 -18
  13. streamlit/delta_generator.py +7 -0
  14. streamlit/delta_generator_singletons.py +8 -14
  15. streamlit/elements/alert.py +16 -0
  16. streamlit/elements/arrow.py +36 -6
  17. streamlit/elements/bokeh_chart.py +10 -78
  18. streamlit/elements/code.py +2 -2
  19. streamlit/elements/deck_gl_json_chart.py +1 -1
  20. streamlit/elements/exception.py +1 -1
  21. streamlit/elements/form.py +27 -0
  22. streamlit/elements/heading.py +60 -5
  23. streamlit/elements/html.py +13 -2
  24. streamlit/elements/image.py +1 -1
  25. streamlit/elements/layouts.py +28 -22
  26. streamlit/elements/lib/built_in_chart_utils.py +49 -16
  27. streamlit/elements/lib/color_util.py +1 -1
  28. streamlit/elements/lib/column_config_utils.py +6 -5
  29. streamlit/elements/lib/layout_utils.py +50 -0
  30. streamlit/elements/lib/pandas_styler_utils.py +17 -9
  31. streamlit/elements/lib/shortcut_utils.py +152 -0
  32. streamlit/elements/markdown.py +50 -3
  33. streamlit/elements/metric.py +31 -1
  34. streamlit/elements/plotly_chart.py +75 -6
  35. streamlit/elements/spinner.py +1 -1
  36. streamlit/elements/text.py +20 -3
  37. streamlit/elements/toast.py +2 -0
  38. streamlit/elements/vega_charts.py +17 -1
  39. streamlit/elements/widgets/audio_input.py +8 -7
  40. streamlit/elements/widgets/button.py +279 -40
  41. streamlit/elements/widgets/button_group.py +27 -2
  42. streamlit/elements/widgets/camera_input.py +1 -1
  43. streamlit/elements/widgets/chat.py +300 -42
  44. streamlit/elements/widgets/color_picker.py +7 -0
  45. streamlit/elements/widgets/data_editor.py +68 -28
  46. streamlit/elements/widgets/file_uploader.py +4 -1
  47. streamlit/elements/widgets/number_input.py +2 -0
  48. streamlit/elements/widgets/text_widgets.py +2 -0
  49. streamlit/elements/widgets/time_widgets.py +581 -9
  50. streamlit/errors.py +22 -0
  51. streamlit/git_util.py +1 -1
  52. streamlit/navigation/page.py +7 -0
  53. streamlit/net_util.py +2 -2
  54. streamlit/proto/Alert_pb2.pyi +3 -3
  55. streamlit/proto/AppPage_pb2.pyi +7 -1
  56. streamlit/proto/ArrowData_pb2.pyi +7 -1
  57. streamlit/proto/ArrowNamedDataSet_pb2.pyi +7 -1
  58. streamlit/proto/ArrowVegaLiteChart_pb2.pyi +7 -1
  59. streamlit/proto/Arrow_pb2.py +10 -10
  60. streamlit/proto/Arrow_pb2.pyi +19 -12
  61. streamlit/proto/AudioInput_pb2.pyi +7 -1
  62. streamlit/proto/Audio_pb2.pyi +7 -1
  63. streamlit/proto/AuthRedirect_pb2.pyi +7 -1
  64. streamlit/proto/AutoRerun_pb2.pyi +7 -1
  65. streamlit/proto/BackMsg_pb2.py +4 -2
  66. streamlit/proto/BackMsg_pb2.pyi +34 -4
  67. streamlit/proto/Balloons_pb2.pyi +7 -1
  68. streamlit/proto/BidiComponent_pb2.pyi +10 -4
  69. streamlit/proto/Block_pb2.pyi +35 -35
  70. streamlit/proto/BokehChart_pb2.pyi +7 -1
  71. streamlit/proto/ButtonGroup_pb2.pyi +9 -9
  72. streamlit/proto/Button_pb2.py +2 -2
  73. streamlit/proto/Button_pb2.pyi +11 -2
  74. streamlit/proto/CameraInput_pb2.pyi +7 -1
  75. streamlit/proto/ChatInput_pb2.py +6 -6
  76. streamlit/proto/ChatInput_pb2.pyi +18 -6
  77. streamlit/proto/Checkbox_pb2.pyi +3 -3
  78. streamlit/proto/ClientState_pb2.pyi +10 -4
  79. streamlit/proto/Code_pb2.pyi +7 -1
  80. streamlit/proto/ColorPicker_pb2.pyi +7 -1
  81. streamlit/proto/Common_pb2.py +3 -3
  82. streamlit/proto/Common_pb2.pyi +35 -23
  83. streamlit/proto/Components_pb2.pyi +19 -13
  84. streamlit/proto/DataFrame_pb2.pyi +55 -49
  85. streamlit/proto/DateInput_pb2.pyi +7 -1
  86. streamlit/proto/DateTimeInput_pb2.py +28 -0
  87. streamlit/proto/DateTimeInput_pb2.pyi +92 -0
  88. streamlit/proto/DeckGlJsonChart_pb2.pyi +3 -3
  89. streamlit/proto/Delta_pb2.pyi +7 -1
  90. streamlit/proto/DocString_pb2.pyi +10 -4
  91. streamlit/proto/DownloadButton_pb2.py +2 -2
  92. streamlit/proto/DownloadButton_pb2.pyi +16 -2
  93. streamlit/proto/Element_pb2.py +5 -3
  94. streamlit/proto/Element_pb2.pyi +23 -5
  95. streamlit/proto/Empty_pb2.pyi +7 -1
  96. streamlit/proto/Exception_pb2.pyi +7 -1
  97. streamlit/proto/Favicon_pb2.pyi +7 -1
  98. streamlit/proto/FileUploader_pb2.pyi +7 -1
  99. streamlit/proto/ForwardMsg_pb2.py +12 -10
  100. streamlit/proto/ForwardMsg_pb2.pyi +42 -15
  101. streamlit/proto/GapSize_pb2.pyi +4 -4
  102. streamlit/proto/GitInfo_pb2.pyi +3 -3
  103. streamlit/proto/GraphVizChart_pb2.pyi +7 -1
  104. streamlit/proto/Heading_pb2.pyi +7 -1
  105. streamlit/proto/HeightConfig_pb2.pyi +7 -1
  106. streamlit/proto/Html_pb2.py +2 -2
  107. streamlit/proto/Html_pb2.pyi +11 -2
  108. streamlit/proto/IFrame_pb2.pyi +7 -1
  109. streamlit/proto/Image_pb2.pyi +10 -4
  110. streamlit/proto/Json_pb2.pyi +7 -1
  111. streamlit/proto/LabelVisibilityMessage_pb2.pyi +3 -3
  112. streamlit/proto/LinkButton_pb2.py +2 -2
  113. streamlit/proto/LinkButton_pb2.pyi +15 -2
  114. streamlit/proto/Logo_pb2.pyi +7 -1
  115. streamlit/proto/Markdown_pb2.pyi +3 -3
  116. streamlit/proto/Metric_pb2.pyi +7 -7
  117. streamlit/proto/MetricsEvent_pb2.pyi +10 -4
  118. streamlit/proto/MultiSelect_pb2.pyi +7 -1
  119. streamlit/proto/NamedDataSet_pb2.pyi +7 -1
  120. streamlit/proto/Navigation_pb2.pyi +3 -3
  121. streamlit/proto/NewSession_pb2.pyi +40 -40
  122. streamlit/proto/NumberInput_pb2.pyi +3 -3
  123. streamlit/proto/PageConfig_pb2.pyi +7 -7
  124. streamlit/proto/PageInfo_pb2.pyi +7 -1
  125. streamlit/proto/PageLink_pb2.py +2 -2
  126. streamlit/proto/PageLink_pb2.pyi +11 -2
  127. streamlit/proto/PageNotFound_pb2.pyi +7 -1
  128. streamlit/proto/PageProfile_pb2.pyi +13 -7
  129. streamlit/proto/PagesChanged_pb2.pyi +7 -1
  130. streamlit/proto/ParentMessage_pb2.pyi +7 -1
  131. streamlit/proto/PlotlyChart_pb2.pyi +6 -6
  132. streamlit/proto/Progress_pb2.pyi +7 -1
  133. streamlit/proto/Radio_pb2.pyi +7 -1
  134. streamlit/proto/RootContainer_pb2.pyi +1 -1
  135. streamlit/proto/Selectbox_pb2.pyi +7 -1
  136. streamlit/proto/SessionEvent_pb2.pyi +7 -1
  137. streamlit/proto/SessionStatus_pb2.pyi +7 -1
  138. streamlit/proto/Skeleton_pb2.pyi +3 -3
  139. streamlit/proto/Slider_pb2.pyi +5 -5
  140. streamlit/proto/Snow_pb2.pyi +7 -1
  141. streamlit/proto/Space_pb2.pyi +7 -1
  142. streamlit/proto/Spinner_pb2.pyi +7 -1
  143. streamlit/proto/TextAlignmentConfig_pb2.py +29 -0
  144. streamlit/proto/TextAlignmentConfig_pb2.pyi +68 -0
  145. streamlit/proto/TextArea_pb2.pyi +7 -1
  146. streamlit/proto/TextInput_pb2.pyi +3 -3
  147. streamlit/proto/Text_pb2.pyi +7 -1
  148. streamlit/proto/TimeInput_pb2.pyi +7 -1
  149. streamlit/proto/Toast_pb2.pyi +7 -1
  150. streamlit/proto/VegaLiteChart_pb2.pyi +7 -1
  151. streamlit/proto/Video_pb2.pyi +6 -6
  152. streamlit/proto/WidgetStates_pb2.pyi +10 -4
  153. streamlit/proto/WidthConfig_pb2.pyi +7 -1
  154. streamlit/proto/openmetrics_data_model_pb2.pyi +52 -52
  155. streamlit/runtime/app_session.py +38 -1
  156. streamlit/runtime/caching/cache_data_api.py +1 -1
  157. streamlit/runtime/caching/cache_resource_api.py +2 -2
  158. streamlit/runtime/caching/cache_utils.py +1 -1
  159. streamlit/runtime/caching/hashing.py +1 -1
  160. streamlit/runtime/download_data_util.py +53 -0
  161. streamlit/runtime/forward_msg_queue.py +1 -0
  162. streamlit/runtime/media_file_manager.py +178 -2
  163. streamlit/runtime/metrics_util.py +87 -3
  164. streamlit/runtime/scriptrunner/script_runner.py +3 -1
  165. streamlit/runtime/state/query_params.py +80 -29
  166. streamlit/runtime/state/session_state.py +2 -2
  167. streamlit/static/index.html +1 -1
  168. streamlit/static/manifest.json +530 -229
  169. streamlit/static/static/js/{ErrorOutline.esm.YoJdlW1p.js → ErrorOutline.esm.sMJdFExW.js} +1 -1
  170. streamlit/static/static/js/{FileDownload.esm.Ddx8VEYy.js → FileDownload.esm.CV-WYqBn.js} +1 -1
  171. streamlit/static/static/js/{FileHelper.90EtOmj9.js → FileHelper.5nCh9KDY.js} +3 -3
  172. streamlit/static/static/js/{FormClearHelper.BB1Km6eP.js → FormClearHelper.-9RbsnV0.js} +1 -1
  173. streamlit/static/static/js/IFrameUtil.DefezniK.js +1 -0
  174. streamlit/static/static/js/InputInstructions.2R3tBtW9.js +1 -0
  175. streamlit/static/static/js/Particles.DDHoXFxh.js +1 -0
  176. streamlit/static/static/js/{ProgressBar.DLY8H6nE.js → ProgressBar.BxmfHxKu.js} +2 -2
  177. streamlit/static/static/js/StreamlitSyntaxHighlighter.BFWV0oqR.js +20 -0
  178. streamlit/static/static/js/{Toolbar.D8nHCkuz.js → Toolbar.DMgU0Vgw.js} +1 -1
  179. streamlit/static/static/js/_arrayIncludes.B19Iyn2B.js +1 -0
  180. streamlit/static/static/js/_baseIndexOf.BTknn6Gb.js +1 -0
  181. streamlit/static/static/js/{base-input.CJGiNqed.js → base-input.BXTqYbyG.js} +4 -4
  182. streamlit/static/static/js/{checkbox.Cpdd482O.js → checkbox.5xWaqPqm.js} +1 -1
  183. streamlit/static/static/js/{createSuper.CuQIogbW.js → createSuper.OIgV8wc-.js} +1 -1
  184. streamlit/static/static/js/data-grid-overlay-editor.B4RIu9cw.js +1 -0
  185. streamlit/static/static/js/{downloader.CN0K7xlu.js → downloader.DwCJck8O.js} +1 -1
  186. streamlit/static/static/js/embed.HKcgTiLB.js +195 -0
  187. streamlit/static/static/js/{es6.BJcsVXQ0.js → es6.4AP97RGk.js} +2 -2
  188. streamlit/static/static/js/{iframeResizer.contentWindow.XzUvQqcZ.js → iframeResizer.contentWindow.BZAsvL9q.js} +1 -1
  189. streamlit/static/static/js/index.-3selq_5.js +2 -0
  190. streamlit/static/static/js/index.1ylynMAS.js +7 -0
  191. streamlit/static/static/js/{index.CxIUUfab.js → index.6UunrySF.js} +53 -122
  192. streamlit/static/static/js/index.8HslT92O.js +14 -0
  193. streamlit/static/static/js/index.B0TPxAZ1.js +1 -0
  194. streamlit/static/static/js/index.B0yp3bM1.js +6 -0
  195. streamlit/static/static/js/index.BHWBaOWH.js +1 -0
  196. streamlit/static/static/js/index.BJas6XzW.js +1 -0
  197. streamlit/static/static/js/index.BKIlG7Ng.js +3 -0
  198. streamlit/static/static/js/index.BMU6zZRk.js +1 -0
  199. streamlit/static/static/js/index.BNMLO-0p.js +2 -0
  200. streamlit/static/static/js/index.BPmBNTel.js +1 -0
  201. streamlit/static/static/js/index.BVuohWM1.js +1 -0
  202. streamlit/static/static/js/index.B_AvdOKC.js +1 -0
  203. streamlit/static/static/js/index.BjQIH-3U.js +1 -0
  204. streamlit/static/static/js/index.BrqtKtSu.js +2 -0
  205. streamlit/static/static/js/index.Buc7XrOl.js +188 -0
  206. streamlit/static/static/js/index.CIC9pLsG.js +2 -0
  207. streamlit/static/static/js/index.CP2YZ73v.js +1 -0
  208. streamlit/static/static/js/index.CSbah0y4.js +27 -0
  209. streamlit/static/static/js/index.CbiYVMT1.js +1 -0
  210. streamlit/static/static/js/index.CbxllBj8.js +1 -0
  211. streamlit/static/static/js/index.Cd1D2eGF.js +263 -0
  212. streamlit/static/static/js/index.Ckcqwai8.js +2 -0
  213. streamlit/static/static/js/index.CqTPbV5Y.js +151 -0
  214. streamlit/static/static/js/index.CxXo5UKy.js +1 -0
  215. streamlit/static/static/js/index.CxbL5FgL.js +1 -0
  216. streamlit/static/static/js/index.D52dMvK5.js +1 -0
  217. streamlit/static/static/js/index.DBUdji-9.js +3 -0
  218. streamlit/static/static/js/index.DMU3coc2.js +1 -0
  219. streamlit/static/static/js/index.DN4sfQLP.js +1 -0
  220. streamlit/static/static/js/{index.DPUXkcQL.js → index.DRDE9rnx.js} +1 -1
  221. streamlit/static/static/js/{index.B_dWA3vd.js → index.DY9Ac89e.js} +2 -2
  222. streamlit/static/static/js/index.DYKCsDvl.js +1 -0
  223. streamlit/static/static/js/index.Da9gznCC.js +1 -0
  224. streamlit/static/static/js/index.DfIRibXG.js +1 -0
  225. streamlit/static/static/js/{index.D3GPA5k4.js → index.Dg5zbEp2.js} +9 -40
  226. streamlit/static/static/js/index.Di9I2cid.js +1 -0
  227. streamlit/static/static/js/index.DkpEv0uV.js +1 -0
  228. streamlit/static/static/js/index.DwJ9Vhsl.js +1 -0
  229. streamlit/static/static/js/index.L7erTnMm.js +1 -0
  230. streamlit/static/static/js/{index.DOFlg3dS.js → index.NaDyAN1s.js} +1 -1
  231. streamlit/static/static/js/index.RNTPpVde.js +1 -0
  232. streamlit/static/static/js/index.VFDFuf_7.js +1 -0
  233. streamlit/static/static/js/index.W-bl3NDo.js +1 -0
  234. streamlit/static/static/js/index.XYozEjwK.js +1 -0
  235. streamlit/static/static/js/index.oyLQ4pue.js +1 -0
  236. streamlit/static/static/js/index.q4fLUQtC.js +11 -0
  237. streamlit/static/static/js/index.q9puCQgK.js +2 -0
  238. streamlit/static/static/js/index.xZBTXGNC.js +1 -0
  239. streamlit/static/static/js/{input.D4MN_FzN.js → input.CcvrgErO.js} +2 -2
  240. streamlit/static/static/js/main.eVHOp4Th.js +13 -0
  241. streamlit/static/static/js/{memory.DrZjtdGT.js → memory.Ck_sLv5Y.js} +1 -1
  242. streamlit/static/static/js/moment.C3j7ZXd7.js +4 -0
  243. streamlit/static/static/js/number-overlay-editor.DgcLMWOy.js +9 -0
  244. streamlit/static/static/js/pandasStylerUtils.DqP0h70z.js +1 -0
  245. streamlit/static/static/js/{possibleConstructorReturn.exeeJQEP.js → possibleConstructorReturn.C_51n46K.js} +1 -1
  246. streamlit/static/static/js/{sandbox.ClO3IuUr.js → sandbox.Q-g3QIZJ.js} +1 -1
  247. streamlit/static/static/js/styled-components.e0V96rJw.js +1 -0
  248. streamlit/static/static/js/threshold.Q1mXg5rX.js +1 -0
  249. streamlit/static/static/js/throttle.D3b5WILl.js +1 -0
  250. streamlit/static/static/js/{timepicker.DAhu-vcF.js → timepicker.Bpn70xGc.js} +1 -1
  251. streamlit/static/static/js/timer.C2hYhUse.js +1 -0
  252. streamlit/static/static/js/{toConsumableArray.DNbljYEC.js → toConsumableArray.DIN_ys1J.js} +1 -1
  253. streamlit/static/static/js/uniqueId.B27POWT6.js +1 -0
  254. streamlit/static/static/js/urls.BwSlolu9.js +1 -0
  255. streamlit/static/static/js/{useBasicWidgetState.D6sOH6oI.js → useBasicWidgetState.DA3_qaXD.js} +1 -1
  256. streamlit/static/static/js/useIntlLocale.BSq6SANa.js +12 -0
  257. streamlit/static/static/js/{useTextInputAutoExpand.4u3_GcuN.js → useTextInputAutoExpand.ytEW5QmA.js} +1 -1
  258. streamlit/static/static/js/useUpdateUiValue.DOxWBNiI.js +1 -0
  259. streamlit/static/static/js/useWaveformController.BCmk6WLk.js +1 -0
  260. streamlit/static/static/js/value.B4vHRSi7.js +1 -0
  261. streamlit/static/static/js/withCalculatedWidth.ChdrMItN.js +1 -0
  262. streamlit/static/static/js/withFullScreenWrapper.7j_lzlaF.js +1 -0
  263. streamlit/string_util.py +8 -1
  264. streamlit/testing/v1/app_test.py +15 -0
  265. streamlit/testing/v1/element_tree.py +62 -0
  266. streamlit/web/bootstrap.py +24 -0
  267. streamlit/web/server/oauth_authlib_routes.py +5 -2
  268. streamlit/web/server/upload_file_request_handler.py +16 -0
  269. {streamlit-1.51.0.dist-info → streamlit-1.52.1.dist-info}/METADATA +9 -5
  270. {streamlit-1.51.0.dist-info → streamlit-1.52.1.dist-info}/RECORD +274 -239
  271. streamlit/static/static/js/InputInstructions.jhH15PqV.js +0 -1
  272. streamlit/static/static/js/Particles.DUsputn1.js +0 -1
  273. streamlit/static/static/js/data-grid-overlay-editor.2Ufgxc6y.js +0 -1
  274. streamlit/static/static/js/index.B1ZQh4P1.js +0 -1
  275. streamlit/static/static/js/index.BKstZk0M.js +0 -27
  276. streamlit/static/static/js/index.BMcFsUee.js +0 -1
  277. streamlit/static/static/js/index.BR-IdcTb.js +0 -2
  278. streamlit/static/static/js/index.BgnZEMVh.js +0 -1
  279. streamlit/static/static/js/index.BohqXifI.js +0 -1
  280. streamlit/static/static/js/index.Br5nxKNj.js +0 -2
  281. streamlit/static/static/js/index.BrIKVbNc.js +0 -3
  282. streamlit/static/static/js/index.BtWUPzle.js +0 -1
  283. streamlit/static/static/js/index.C0RLraek.js +0 -1
  284. streamlit/static/static/js/index.CAIjskgG.js +0 -1
  285. streamlit/static/static/js/index.CAj-7vWz.js +0 -949
  286. streamlit/static/static/js/index.CMtEit2O.js +0 -1
  287. streamlit/static/static/js/index.CkRlykEE.js +0 -12
  288. streamlit/static/static/js/index.CmN3FXfI.js +0 -1617
  289. streamlit/static/static/js/index.CwbFI1_-.js +0 -1
  290. streamlit/static/static/js/index.D2KPNy7e.js +0 -1
  291. streamlit/static/static/js/index.DGAh7DMq.js +0 -1
  292. streamlit/static/static/js/index.DKb_NvmG.js +0 -197
  293. streamlit/static/static/js/index.DMqgUYKq.js +0 -1
  294. streamlit/static/static/js/index.DX1xY89g.js +0 -1
  295. streamlit/static/static/js/index.DYATBCsq.js +0 -2
  296. streamlit/static/static/js/index.DaSmGJ76.js +0 -3
  297. streamlit/static/static/js/index.Dd7bMeLP.js +0 -1
  298. streamlit/static/static/js/index.DjmmgI5U.js +0 -1
  299. streamlit/static/static/js/index.Dq56CyM2.js +0 -1
  300. streamlit/static/static/js/index.DuiXaS5_.js +0 -7
  301. streamlit/static/static/js/index.DvFidMLe.js +0 -2
  302. streamlit/static/static/js/index.DwkhC5Pc.js +0 -1
  303. streamlit/static/static/js/index.Q-3sFn1v.js +0 -1
  304. streamlit/static/static/js/index.QJ5QO9sJ.js +0 -1
  305. streamlit/static/static/js/index.VwTaeety.js +0 -1
  306. streamlit/static/static/js/index.YOqQbeX8.js +0 -1
  307. streamlit/static/static/js/number-overlay-editor.DRwAw1In.js +0 -9
  308. streamlit/static/static/js/uniqueId.oG4Gvj1v.js +0 -1
  309. streamlit/static/static/js/useUpdateUiValue.F2R3eTeR.js +0 -1
  310. streamlit/static/static/js/withFullScreenWrapper.zothJIsI.js +0 -1
  311. {streamlit-1.51.0.data → streamlit-1.52.1.data}/scripts/streamlit.cmd +0 -0
  312. {streamlit-1.51.0.dist-info → streamlit-1.52.1.dist-info}/WHEEL +0 -0
  313. {streamlit-1.51.0.dist-info → streamlit-1.52.1.dist-info}/entry_points.txt +0 -0
  314. {streamlit-1.51.0.dist-info → streamlit-1.52.1.dist-info}/top_level.txt +0 -0
@@ -102,10 +102,11 @@ class ForwardMsg(google.protobuf.message.Message):
102
102
  AUTH_REDIRECT_FIELD_NUMBER: builtins.int
103
103
  PARENT_MESSAGE_FIELD_NUMBER: builtins.int
104
104
  REF_HASH_FIELD_NUMBER: builtins.int
105
+ DEFERRED_FILE_RESPONSE_FIELD_NUMBER: builtins.int
105
106
  DEBUG_LAST_BACKMSG_ID_FIELD_NUMBER: builtins.int
106
107
  hash: builtins.str
107
108
  """A hash that uniquely identifies this ForwardMsg, for caching."""
108
- script_finished: global___ForwardMsg.ScriptFinishedStatus.ValueType
109
+ script_finished: Global___ForwardMsg.ScriptFinishedStatus.ValueType
109
110
  ref_hash: builtins.str
110
111
  """A reference to a ForwardMsg that has already been delivered
111
112
  and cached in the frontend. The client should substitute the message
@@ -117,7 +118,7 @@ class ForwardMsg(google.protobuf.message.Message):
117
118
  testing.
118
119
  """
119
120
  @property
120
- def metadata(self) -> global___ForwardMsgMetadata:
121
+ def metadata(self) -> Global___ForwardMsgMetadata:
121
122
  """Contains 'non-payload' ForwardMsg data that isn't cached for the purposes
122
123
  of ForwardMsg de-duping.
123
124
  """
@@ -166,16 +167,20 @@ class ForwardMsg(google.protobuf.message.Message):
166
167
  def parent_message(self) -> streamlit.proto.ParentMessage_pb2.ParentMessage:
167
168
  """Platform - message to host"""
168
169
 
170
+ @property
171
+ def deferred_file_response(self) -> Global___DeferredFileResponse:
172
+ """Response for a deferred file request"""
173
+
169
174
  def __init__(
170
175
  self,
171
176
  *,
172
177
  hash: builtins.str = ...,
173
- metadata: global___ForwardMsgMetadata | None = ...,
178
+ metadata: Global___ForwardMsgMetadata | None = ...,
174
179
  new_session: streamlit.proto.NewSession_pb2.NewSession | None = ...,
175
180
  delta: streamlit.proto.Delta_pb2.Delta | None = ...,
176
181
  page_info_changed: streamlit.proto.PageInfo_pb2.PageInfo | None = ...,
177
182
  page_config_changed: streamlit.proto.PageConfig_pb2.PageConfig | None = ...,
178
- script_finished: global___ForwardMsg.ScriptFinishedStatus.ValueType = ...,
183
+ script_finished: Global___ForwardMsg.ScriptFinishedStatus.ValueType = ...,
179
184
  git_info_changed: streamlit.proto.GitInfo_pb2.GitInfo | None = ...,
180
185
  page_profile: streamlit.proto.PageProfile_pb2.PageProfile | None = ...,
181
186
  session_status_changed: streamlit.proto.SessionStatus_pb2.SessionStatus | None = ...,
@@ -189,13 +194,35 @@ class ForwardMsg(google.protobuf.message.Message):
189
194
  auth_redirect: streamlit.proto.AuthRedirect_pb2.AuthRedirect | None = ...,
190
195
  parent_message: streamlit.proto.ParentMessage_pb2.ParentMessage | None = ...,
191
196
  ref_hash: builtins.str = ...,
197
+ deferred_file_response: Global___DeferredFileResponse | None = ...,
192
198
  debug_last_backmsg_id: builtins.str = ...,
193
199
  ) -> None: ...
194
- def HasField(self, field_name: typing.Literal["auth_redirect", b"auth_redirect", "auto_rerun", b"auto_rerun", "delta", b"delta", "file_urls_response", b"file_urls_response", "git_info_changed", b"git_info_changed", "logo", b"logo", "metadata", b"metadata", "navigation", b"navigation", "new_session", b"new_session", "page_config_changed", b"page_config_changed", "page_info_changed", b"page_info_changed", "page_not_found", b"page_not_found", "page_profile", b"page_profile", "pages_changed", b"pages_changed", "parent_message", b"parent_message", "ref_hash", b"ref_hash", "script_finished", b"script_finished", "session_event", b"session_event", "session_status_changed", b"session_status_changed", "type", b"type"]) -> builtins.bool: ...
195
- def ClearField(self, field_name: typing.Literal["auth_redirect", b"auth_redirect", "auto_rerun", b"auto_rerun", "debug_last_backmsg_id", b"debug_last_backmsg_id", "delta", b"delta", "file_urls_response", b"file_urls_response", "git_info_changed", b"git_info_changed", "hash", b"hash", "logo", b"logo", "metadata", b"metadata", "navigation", b"navigation", "new_session", b"new_session", "page_config_changed", b"page_config_changed", "page_info_changed", b"page_info_changed", "page_not_found", b"page_not_found", "page_profile", b"page_profile", "pages_changed", b"pages_changed", "parent_message", b"parent_message", "ref_hash", b"ref_hash", "script_finished", b"script_finished", "session_event", b"session_event", "session_status_changed", b"session_status_changed", "type", b"type"]) -> None: ...
196
- def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["new_session", "delta", "page_info_changed", "page_config_changed", "script_finished", "git_info_changed", "page_profile", "session_status_changed", "session_event", "navigation", "page_not_found", "pages_changed", "file_urls_response", "auto_rerun", "logo", "auth_redirect", "parent_message", "ref_hash"] | None: ...
200
+ def HasField(self, field_name: typing.Literal["auth_redirect", b"auth_redirect", "auto_rerun", b"auto_rerun", "deferred_file_response", b"deferred_file_response", "delta", b"delta", "file_urls_response", b"file_urls_response", "git_info_changed", b"git_info_changed", "logo", b"logo", "metadata", b"metadata", "navigation", b"navigation", "new_session", b"new_session", "page_config_changed", b"page_config_changed", "page_info_changed", b"page_info_changed", "page_not_found", b"page_not_found", "page_profile", b"page_profile", "pages_changed", b"pages_changed", "parent_message", b"parent_message", "ref_hash", b"ref_hash", "script_finished", b"script_finished", "session_event", b"session_event", "session_status_changed", b"session_status_changed", "type", b"type"]) -> builtins.bool: ...
201
+ def ClearField(self, field_name: typing.Literal["auth_redirect", b"auth_redirect", "auto_rerun", b"auto_rerun", "debug_last_backmsg_id", b"debug_last_backmsg_id", "deferred_file_response", b"deferred_file_response", "delta", b"delta", "file_urls_response", b"file_urls_response", "git_info_changed", b"git_info_changed", "hash", b"hash", "logo", b"logo", "metadata", b"metadata", "navigation", b"navigation", "new_session", b"new_session", "page_config_changed", b"page_config_changed", "page_info_changed", b"page_info_changed", "page_not_found", b"page_not_found", "page_profile", b"page_profile", "pages_changed", b"pages_changed", "parent_message", b"parent_message", "ref_hash", b"ref_hash", "script_finished", b"script_finished", "session_event", b"session_event", "session_status_changed", b"session_status_changed", "type", b"type"]) -> None: ...
202
+ def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["new_session", "delta", "page_info_changed", "page_config_changed", "script_finished", "git_info_changed", "page_profile", "session_status_changed", "session_event", "navigation", "page_not_found", "pages_changed", "file_urls_response", "auto_rerun", "logo", "auth_redirect", "parent_message", "ref_hash", "deferred_file_response"] | None: ...
203
+
204
+ Global___ForwardMsg: typing_extensions.TypeAlias = ForwardMsg
205
+
206
+ @typing.final
207
+ class DeferredFileResponse(google.protobuf.message.Message):
208
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
209
+
210
+ FILE_ID_FIELD_NUMBER: builtins.int
211
+ URL_FIELD_NUMBER: builtins.int
212
+ ERROR_MSG_FIELD_NUMBER: builtins.int
213
+ file_id: builtins.str
214
+ url: builtins.str
215
+ error_msg: builtins.str
216
+ def __init__(
217
+ self,
218
+ *,
219
+ file_id: builtins.str = ...,
220
+ url: builtins.str = ...,
221
+ error_msg: builtins.str = ...,
222
+ ) -> None: ...
223
+ def ClearField(self, field_name: typing.Literal["error_msg", b"error_msg", "file_id", b"file_id", "url", b"url"]) -> None: ...
197
224
 
198
- global___ForwardMsg = ForwardMsg
225
+ Global___DeferredFileResponse: typing_extensions.TypeAlias = DeferredFileResponse
199
226
 
200
227
  @typing.final
201
228
  class ForwardMsgMetadata(google.protobuf.message.Message):
@@ -226,7 +253,7 @@ class ForwardMsgMetadata(google.protobuf.message.Message):
226
253
  """
227
254
 
228
255
  @property
229
- def element_dimension_spec(self) -> global___ElementDimensionSpec:
256
+ def element_dimension_spec(self) -> Global___ElementDimensionSpec:
230
257
  """DEPRECATED: This is not used anymore."""
231
258
 
232
259
  def __init__(
@@ -234,13 +261,13 @@ class ForwardMsgMetadata(google.protobuf.message.Message):
234
261
  *,
235
262
  cacheable: builtins.bool = ...,
236
263
  delta_path: collections.abc.Iterable[builtins.int] | None = ...,
237
- element_dimension_spec: global___ElementDimensionSpec | None = ...,
264
+ element_dimension_spec: Global___ElementDimensionSpec | None = ...,
238
265
  active_script_hash: builtins.str = ...,
239
266
  ) -> None: ...
240
267
  def HasField(self, field_name: typing.Literal["element_dimension_spec", b"element_dimension_spec"]) -> builtins.bool: ...
241
268
  def ClearField(self, field_name: typing.Literal["active_script_hash", b"active_script_hash", "cacheable", b"cacheable", "delta_path", b"delta_path", "element_dimension_spec", b"element_dimension_spec"]) -> None: ...
242
269
 
243
- global___ForwardMsgMetadata = ForwardMsgMetadata
270
+ Global___ForwardMsgMetadata: typing_extensions.TypeAlias = ForwardMsgMetadata
244
271
 
245
272
  @typing.final
246
273
  class ElementDimensionSpec(google.protobuf.message.Message):
@@ -264,7 +291,7 @@ class ElementDimensionSpec(google.protobuf.message.Message):
264
291
  ) -> None: ...
265
292
  def ClearField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> None: ...
266
293
 
267
- global___ElementDimensionSpec = ElementDimensionSpec
294
+ Global___ElementDimensionSpec: typing_extensions.TypeAlias = ElementDimensionSpec
268
295
 
269
296
  @typing.final
270
297
  class ForwardMsgList(google.protobuf.message.Message):
@@ -279,12 +306,12 @@ class ForwardMsgList(google.protobuf.message.Message):
279
306
 
280
307
  MESSAGES_FIELD_NUMBER: builtins.int
281
308
  @property
282
- def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ForwardMsg]: ...
309
+ def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ForwardMsg]: ...
283
310
  def __init__(
284
311
  self,
285
312
  *,
286
- messages: collections.abc.Iterable[global___ForwardMsg] | None = ...,
313
+ messages: collections.abc.Iterable[Global___ForwardMsg] | None = ...,
287
314
  ) -> None: ...
288
315
  def ClearField(self, field_name: typing.Literal["messages", b"messages"]) -> None: ...
289
316
 
290
- global___ForwardMsgList = ForwardMsgList
317
+ Global___ForwardMsgList: typing_extensions.TypeAlias = ForwardMsgList
@@ -50,21 +50,21 @@ SMALL: GapSize.ValueType # 1
50
50
  MEDIUM: GapSize.ValueType # 2
51
51
  LARGE: GapSize.ValueType # 3
52
52
  NONE: GapSize.ValueType # 4
53
- global___GapSize = GapSize
53
+ Global___GapSize: typing_extensions.TypeAlias = GapSize
54
54
 
55
55
  @typing.final
56
56
  class GapConfig(google.protobuf.message.Message):
57
57
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
58
58
 
59
59
  GAP_SIZE_FIELD_NUMBER: builtins.int
60
- gap_size: global___GapSize.ValueType
60
+ gap_size: Global___GapSize.ValueType
61
61
  def __init__(
62
62
  self,
63
63
  *,
64
- gap_size: global___GapSize.ValueType = ...,
64
+ gap_size: Global___GapSize.ValueType = ...,
65
65
  ) -> None: ...
66
66
  def HasField(self, field_name: typing.Literal["gap_size", b"gap_size", "gap_spec", b"gap_spec"]) -> builtins.bool: ...
67
67
  def ClearField(self, field_name: typing.Literal["gap_size", b"gap_size", "gap_spec", b"gap_spec"]) -> None: ...
68
68
  def WhichOneof(self, oneof_group: typing.Literal["gap_spec", b"gap_spec"]) -> typing.Literal["gap_size"] | None: ...
69
69
 
70
- global___GapConfig = GapConfig
70
+ Global___GapConfig: typing_extensions.TypeAlias = GapConfig
@@ -63,7 +63,7 @@ class GitInfo(google.protobuf.message.Message):
63
63
  repository: builtins.str
64
64
  branch: builtins.str
65
65
  module: builtins.str
66
- state: global___GitInfo.GitStates.ValueType
66
+ state: Global___GitInfo.GitStates.ValueType
67
67
  @property
68
68
  def untracked_files(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
69
69
  @property
@@ -76,8 +76,8 @@ class GitInfo(google.protobuf.message.Message):
76
76
  module: builtins.str = ...,
77
77
  untracked_files: collections.abc.Iterable[builtins.str] | None = ...,
78
78
  uncommitted_files: collections.abc.Iterable[builtins.str] | None = ...,
79
- state: global___GitInfo.GitStates.ValueType = ...,
79
+ state: Global___GitInfo.GitStates.ValueType = ...,
80
80
  ) -> None: ...
81
81
  def ClearField(self, field_name: typing.Literal["branch", b"branch", "module", b"module", "repository", b"repository", "state", b"state", "uncommitted_files", b"uncommitted_files", "untracked_files", b"untracked_files"]) -> None: ...
82
82
 
83
- global___GitInfo = GitInfo
83
+ Global___GitInfo: typing_extensions.TypeAlias = GitInfo
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -50,4 +56,4 @@ class GraphVizChart(google.protobuf.message.Message):
50
56
  ) -> None: ...
51
57
  def ClearField(self, field_name: typing.Literal["element_id", b"element_id", "engine", b"engine", "spec", b"spec", "use_container_width", b"use_container_width"]) -> None: ...
52
58
 
53
- global___GraphVizChart = GraphVizChart
59
+ Global___GraphVizChart: typing_extensions.TypeAlias = GraphVizChart
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -53,4 +59,4 @@ class Heading(google.protobuf.message.Message):
53
59
  ) -> None: ...
54
60
  def ClearField(self, field_name: typing.Literal["anchor", b"anchor", "body", b"body", "divider", b"divider", "help", b"help", "hide_anchor", b"hide_anchor", "tag", b"tag"]) -> None: ...
55
61
 
56
- global___Heading = Heading
62
+ Global___Heading: typing_extensions.TypeAlias = Heading
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -48,4 +54,4 @@ class HeightConfig(google.protobuf.message.Message):
48
54
  def ClearField(self, field_name: typing.Literal["height_spec", b"height_spec", "pixel_height", b"pixel_height", "rem_height", b"rem_height", "use_content", b"use_content", "use_stretch", b"use_stretch"]) -> None: ...
49
55
  def WhichOneof(self, oneof_group: typing.Literal["height_spec", b"height_spec"]) -> typing.Literal["use_stretch", "use_content", "pixel_height", "rem_height"] | None: ...
50
56
 
51
- global___HeightConfig = HeightConfig
57
+ Global___HeightConfig: typing_extensions.TypeAlias = HeightConfig
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
14
14
 
15
15
 
16
16
 
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1astreamlit/proto/Html.proto\"\x14\n\x04Html\x12\x0c\n\x04\x62ody\x18\x01 \x01(\tB)\n\x1c\x63om.snowflake.apps.streamlitB\tHtmlProtob\x06proto3')
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1astreamlit/proto/Html.proto\"5\n\x04Html\x12\x0c\n\x04\x62ody\x18\x01 \x01(\t\x12\x1f\n\x17unsafe_allow_javascript\x18\x02 \x01(\x08\x42)\n\x1c\x63om.snowflake.apps.streamlitB\tHtmlProtob\x06proto3')
18
18
 
19
19
  _globals = globals()
20
20
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -23,5 +23,5 @@ if not _descriptor._USE_C_DESCRIPTORS:
23
23
  _globals['DESCRIPTOR']._loaded_options = None
24
24
  _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\tHtmlProto'
25
25
  _globals['_HTML']._serialized_start=30
26
- _globals['_HTML']._serialized_end=50
26
+ _globals['_HTML']._serialized_end=83
27
27
  # @@protoc_insertion_point(module_scope)
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -31,12 +37,15 @@ class Html(google.protobuf.message.Message):
31
37
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
32
38
 
33
39
  BODY_FIELD_NUMBER: builtins.int
40
+ UNSAFE_ALLOW_JAVASCRIPT_FIELD_NUMBER: builtins.int
34
41
  body: builtins.str
42
+ unsafe_allow_javascript: builtins.bool
35
43
  def __init__(
36
44
  self,
37
45
  *,
38
46
  body: builtins.str = ...,
47
+ unsafe_allow_javascript: builtins.bool = ...,
39
48
  ) -> None: ...
40
- def ClearField(self, field_name: typing.Literal["body", b"body"]) -> None: ...
49
+ def ClearField(self, field_name: typing.Literal["body", b"body", "unsafe_allow_javascript", b"unsafe_allow_javascript"]) -> None: ...
41
50
 
42
- global___Html = Html
51
+ Global___Html: typing_extensions.TypeAlias = Html
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -65,4 +71,4 @@ class IFrame(google.protobuf.message.Message):
65
71
  @typing.overload
66
72
  def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["src", "srcdoc"] | None: ...
67
73
 
68
- global___IFrame = IFrame
74
+ Global___IFrame: typing_extensions.TypeAlias = IFrame
@@ -22,8 +22,14 @@ import collections.abc
22
22
  import google.protobuf.descriptor
23
23
  import google.protobuf.internal.containers
24
24
  import google.protobuf.message
25
+ import sys
25
26
  import typing
26
27
 
28
+ if sys.version_info >= (3, 10):
29
+ import typing as typing_extensions
30
+ else:
31
+ import typing_extensions
32
+
27
33
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
28
34
 
29
35
  @typing.final
@@ -50,7 +56,7 @@ class Image(google.protobuf.message.Message):
50
56
  ) -> None: ...
51
57
  def ClearField(self, field_name: typing.Literal["caption", b"caption", "markup", b"markup", "url", b"url"]) -> None: ...
52
58
 
53
- global___Image = Image
59
+ Global___Image: typing_extensions.TypeAlias = Image
54
60
 
55
61
  @typing.final
56
62
  class ImageList(google.protobuf.message.Message):
@@ -63,13 +69,13 @@ class ImageList(google.protobuf.message.Message):
63
69
  width: builtins.int
64
70
  """DEPRECATED use widthConfig on Element.proto"""
65
71
  @property
66
- def imgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Image]: ...
72
+ def imgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Image]: ...
67
73
  def __init__(
68
74
  self,
69
75
  *,
70
- imgs: collections.abc.Iterable[global___Image] | None = ...,
76
+ imgs: collections.abc.Iterable[Global___Image] | None = ...,
71
77
  width: builtins.int = ...,
72
78
  ) -> None: ...
73
79
  def ClearField(self, field_name: typing.Literal["imgs", b"imgs", "width", b"width"]) -> None: ...
74
80
 
75
- global___ImageList = ImageList
81
+ Global___ImageList: typing_extensions.TypeAlias = ImageList
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -50,4 +56,4 @@ class Json(google.protobuf.message.Message):
50
56
  def ClearField(self, field_name: typing.Literal["_max_expand_depth", b"_max_expand_depth", "body", b"body", "expanded", b"expanded", "max_expand_depth", b"max_expand_depth"]) -> None: ...
51
57
  def WhichOneof(self, oneof_group: typing.Literal["_max_expand_depth", b"_max_expand_depth"]) -> typing.Literal["max_expand_depth"] | None: ...
52
58
 
53
- global___Json = Json
59
+ Global___Json: typing_extensions.TypeAlias = Json
@@ -57,12 +57,12 @@ class LabelVisibilityMessage(google.protobuf.message.Message):
57
57
  COLLAPSED: LabelVisibilityMessage.LabelVisibilityOptions.ValueType # 2
58
58
 
59
59
  VALUE_FIELD_NUMBER: builtins.int
60
- value: global___LabelVisibilityMessage.LabelVisibilityOptions.ValueType
60
+ value: Global___LabelVisibilityMessage.LabelVisibilityOptions.ValueType
61
61
  def __init__(
62
62
  self,
63
63
  *,
64
- value: global___LabelVisibilityMessage.LabelVisibilityOptions.ValueType = ...,
64
+ value: Global___LabelVisibilityMessage.LabelVisibilityOptions.ValueType = ...,
65
65
  ) -> None: ...
66
66
  def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
67
67
 
68
- global___LabelVisibilityMessage = LabelVisibilityMessage
68
+ Global___LabelVisibilityMessage: typing_extensions.TypeAlias = LabelVisibilityMessage
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
14
14
 
15
15
 
16
16
 
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/LinkButton.proto\"\x81\x01\n\nLinkButton\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0b\n\x03url\x18\x06 \x01(\t\x12\x10\n\x08\x64isabled\x18\x07 \x01(\x08\x12\x1b\n\x13use_container_width\x18\x08 \x01(\x08\x12\x0c\n\x04type\x18\t \x01(\t\x12\x0c\n\x04icon\x18\n \x01(\tB/\n\x1c\x63om.snowflake.apps.streamlitB\x0fLinkButtonProtob\x06proto3')
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/LinkButton.proto\"\x9f\x01\n\nLinkButton\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0b\n\x03url\x18\x06 \x01(\t\x12\x10\n\x08\x64isabled\x18\x07 \x01(\x08\x12\x1b\n\x13use_container_width\x18\x08 \x01(\x08\x12\x0c\n\x04type\x18\t \x01(\t\x12\x0c\n\x04icon\x18\n \x01(\t\x12\x10\n\x08shortcut\x18\x0b \x01(\tB/\n\x1c\x63om.snowflake.apps.streamlitB\x0fLinkButtonProtob\x06proto3')
18
18
 
19
19
  _globals = globals()
20
20
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -23,5 +23,5 @@ if not _descriptor._USE_C_DESCRIPTORS:
23
23
  _globals['DESCRIPTOR']._loaded_options = None
24
24
  _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\017LinkButtonProto'
25
25
  _globals['_LINKBUTTON']._serialized_start=37
26
- _globals['_LINKBUTTON']._serialized_end=166
26
+ _globals['_LINKBUTTON']._serialized_end=196
27
27
  # @@protoc_insertion_point(module_scope)
@@ -20,14 +20,21 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
28
34
  class LinkButton(google.protobuf.message.Message):
29
35
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
30
36
 
37
+ ID_FIELD_NUMBER: builtins.int
31
38
  LABEL_FIELD_NUMBER: builtins.int
32
39
  HELP_FIELD_NUMBER: builtins.int
33
40
  URL_FIELD_NUMBER: builtins.int
@@ -35,6 +42,9 @@ class LinkButton(google.protobuf.message.Message):
35
42
  USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
36
43
  TYPE_FIELD_NUMBER: builtins.int
37
44
  ICON_FIELD_NUMBER: builtins.int
45
+ SHORTCUT_FIELD_NUMBER: builtins.int
46
+ id: builtins.str
47
+ """The ID is only needed if a shortcut is provided."""
38
48
  label: builtins.str
39
49
  help: builtins.str
40
50
  url: builtins.str
@@ -42,9 +52,11 @@ class LinkButton(google.protobuf.message.Message):
42
52
  use_container_width: builtins.bool
43
53
  type: builtins.str
44
54
  icon: builtins.str
55
+ shortcut: builtins.str
45
56
  def __init__(
46
57
  self,
47
58
  *,
59
+ id: builtins.str = ...,
48
60
  label: builtins.str = ...,
49
61
  help: builtins.str = ...,
50
62
  url: builtins.str = ...,
@@ -52,7 +64,8 @@ class LinkButton(google.protobuf.message.Message):
52
64
  use_container_width: builtins.bool = ...,
53
65
  type: builtins.str = ...,
54
66
  icon: builtins.str = ...,
67
+ shortcut: builtins.str = ...,
55
68
  ) -> None: ...
56
- def ClearField(self, field_name: typing.Literal["disabled", b"disabled", "help", b"help", "icon", b"icon", "label", b"label", "type", b"type", "url", b"url", "use_container_width", b"use_container_width"]) -> None: ...
69
+ def ClearField(self, field_name: typing.Literal["disabled", b"disabled", "help", b"help", "icon", b"icon", "id", b"id", "label", b"label", "shortcut", b"shortcut", "type", b"type", "url", b"url", "use_container_width", b"use_container_width"]) -> None: ...
57
70
 
58
- global___LinkButton = LinkButton
71
+ Global___LinkButton: typing_extensions.TypeAlias = LinkButton
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -48,4 +54,4 @@ class Logo(google.protobuf.message.Message):
48
54
  ) -> None: ...
49
55
  def ClearField(self, field_name: typing.Literal["icon_image", b"icon_image", "image", b"image", "link", b"link", "size", b"size"]) -> None: ...
50
56
 
51
- global___Logo = Logo
57
+ Global___Logo: typing_extensions.TypeAlias = Logo
@@ -70,7 +70,7 @@ class Markdown(google.protobuf.message.Message):
70
70
  allow_html: builtins.bool
71
71
  is_caption: builtins.bool
72
72
  """TODO [Karen]: Remove this field if favor of element_type"""
73
- element_type: global___Markdown.Type.ValueType
73
+ element_type: Global___Markdown.Type.ValueType
74
74
  help: builtins.str
75
75
  def __init__(
76
76
  self,
@@ -78,9 +78,9 @@ class Markdown(google.protobuf.message.Message):
78
78
  body: builtins.str = ...,
79
79
  allow_html: builtins.bool = ...,
80
80
  is_caption: builtins.bool = ...,
81
- element_type: global___Markdown.Type.ValueType = ...,
81
+ element_type: Global___Markdown.Type.ValueType = ...,
82
82
  help: builtins.str = ...,
83
83
  ) -> None: ...
84
84
  def ClearField(self, field_name: typing.Literal["allow_html", b"allow_html", "body", b"body", "element_type", b"element_type", "help", b"help", "is_caption", b"is_caption"]) -> None: ...
85
85
 
86
- global___Markdown = Markdown
86
+ Global___Markdown: typing_extensions.TypeAlias = Markdown
@@ -96,11 +96,11 @@ class Metric(google.protobuf.message.Message):
96
96
  label: builtins.str
97
97
  body: builtins.str
98
98
  delta: builtins.str
99
- direction: global___Metric.MetricDirection.ValueType
100
- color: global___Metric.MetricColor.ValueType
99
+ direction: Global___Metric.MetricDirection.ValueType
100
+ color: Global___Metric.MetricColor.ValueType
101
101
  help: builtins.str
102
102
  show_border: builtins.bool
103
- chart_type: global___Metric.ChartType.ValueType
103
+ chart_type: Global___Metric.ChartType.ValueType
104
104
  @property
105
105
  def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
106
106
  @property
@@ -111,15 +111,15 @@ class Metric(google.protobuf.message.Message):
111
111
  label: builtins.str = ...,
112
112
  body: builtins.str = ...,
113
113
  delta: builtins.str = ...,
114
- direction: global___Metric.MetricDirection.ValueType = ...,
115
- color: global___Metric.MetricColor.ValueType = ...,
114
+ direction: Global___Metric.MetricDirection.ValueType = ...,
115
+ color: Global___Metric.MetricColor.ValueType = ...,
116
116
  help: builtins.str = ...,
117
117
  label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
118
118
  show_border: builtins.bool = ...,
119
119
  chart_data: collections.abc.Iterable[builtins.float] | None = ...,
120
- chart_type: global___Metric.ChartType.ValueType = ...,
120
+ chart_type: Global___Metric.ChartType.ValueType = ...,
121
121
  ) -> None: ...
122
122
  def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
123
123
  def ClearField(self, field_name: typing.Literal["body", b"body", "chart_data", b"chart_data", "chart_type", b"chart_type", "color", b"color", "delta", b"delta", "direction", b"direction", "help", b"help", "label", b"label", "label_visibility", b"label_visibility", "show_border", b"show_border"]) -> None: ...
124
124
 
125
- global___Metric = Metric
125
+ Global___Metric: typing_extensions.TypeAlias = Metric
@@ -23,8 +23,14 @@ import google.protobuf.descriptor
23
23
  import google.protobuf.internal.containers
24
24
  import google.protobuf.message
25
25
  import streamlit.proto.PageProfile_pb2
26
+ import sys
26
27
  import typing
27
28
 
29
+ if sys.version_info >= (3, 10):
30
+ import typing as typing_extensions
31
+ else:
32
+ import typing_extensions
33
+
28
34
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
29
35
 
30
36
  @typing.final
@@ -133,7 +139,7 @@ class MetricsEvent(google.protobuf.message.Message):
133
139
  @property
134
140
  def attributions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
135
141
  @property
136
- def browser_info(self) -> global___BrowserInfo: ...
142
+ def browser_info(self) -> Global___BrowserInfo: ...
137
143
  def __init__(
138
144
  self,
139
145
  *,
@@ -180,12 +186,12 @@ class MetricsEvent(google.protobuf.message.Message):
180
186
  page_script_hash: builtins.str = ...,
181
187
  active_theme: builtins.str = ...,
182
188
  total_load_time: builtins.int = ...,
183
- browser_info: global___BrowserInfo | None = ...,
189
+ browser_info: Global___BrowserInfo | None = ...,
184
190
  ) -> None: ...
185
191
  def HasField(self, field_name: typing.Literal["browser_info", b"browser_info"]) -> builtins.bool: ...
186
192
  def ClearField(self, field_name: typing.Literal["active_theme", b"active_theme", "anonymous_id", b"anonymous_id", "app_id", b"app_id", "attributions", b"attributions", "branch", b"branch", "browser_info", b"browser_info", "commands", b"commands", "config", b"config", "context_locale", b"context_locale", "context_page_path", b"context_page_path", "context_page_referrer", b"context_page_referrer", "context_page_search", b"context_page_search", "context_page_title", b"context_page_title", "context_page_url", b"context_page_url", "context_user_agent", b"context_user_agent", "creator_id", b"creator_id", "dev", b"dev", "event", b"event", "exec_time", b"exec_time", "has_display", b"has_display", "headless", b"headless", "hosted_at", b"hosted_at", "is_fragment_run", b"is_fragment_run", "is_hello", b"is_hello", "is_webdriver", b"is_webdriver", "label", b"label", "machine_id_v3", b"machine_id_v3", "machine_id_v4", b"machine_id_v4", "main_module", b"main_module", "numPages", b"numPages", "os", b"os", "owner", b"owner", "page_script_hash", b"page_script_hash", "prep_time", b"prep_time", "python_version", b"python_version", "repo", b"repo", "report_hash", b"report_hash", "server_os", b"server_os", "session_id", b"session_id", "source", b"source", "streamlit_version", b"streamlit_version", "timezone", b"timezone", "total_load_time", b"total_load_time", "uncaught_exception", b"uncaught_exception"]) -> None: ...
187
193
 
188
- global___MetricsEvent = MetricsEvent
194
+ Global___MetricsEvent: typing_extensions.TypeAlias = MetricsEvent
189
195
 
190
196
  @typing.final
191
197
  class BrowserInfo(google.protobuf.message.Message):
@@ -209,4 +215,4 @@ class BrowserInfo(google.protobuf.message.Message):
209
215
  ) -> None: ...
210
216
  def ClearField(self, field_name: typing.Literal["browser_name", b"browser_name", "browser_version", b"browser_version", "device_type", b"device_type", "os", b"os"]) -> None: ...
211
217
 
212
- global___BrowserInfo = BrowserInfo
218
+ Global___BrowserInfo: typing_extensions.TypeAlias = BrowserInfo
@@ -23,8 +23,14 @@ import google.protobuf.descriptor
23
23
  import google.protobuf.internal.containers
24
24
  import google.protobuf.message
25
25
  import streamlit.proto.LabelVisibilityMessage_pb2
26
+ import sys
26
27
  import typing
27
28
 
29
+ if sys.version_info >= (3, 10):
30
+ import typing as typing_extensions
31
+ else:
32
+ import typing_extensions
33
+
28
34
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
29
35
 
30
36
  @typing.final
@@ -90,4 +96,4 @@ class MultiSelect(google.protobuf.message.Message):
90
96
  def ClearField(self, field_name: typing.Literal["_accept_new_options", b"_accept_new_options", "accept_new_options", b"accept_new_options", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max_selections", b"max_selections", "options", b"options", "placeholder", b"placeholder", "raw_values", b"raw_values", "set_value", b"set_value", "value", b"value"]) -> None: ...
91
97
  def WhichOneof(self, oneof_group: typing.Literal["_accept_new_options", b"_accept_new_options"]) -> typing.Literal["accept_new_options"] | None: ...
92
98
 
93
- global___MultiSelect = MultiSelect
99
+ Global___MultiSelect: typing_extensions.TypeAlias = MultiSelect