streamlit 1.51.0__py3-none-any.whl → 1.52.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.
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.ZJDbmVTx.js} +1 -1
  170. streamlit/static/static/js/{FileDownload.esm.Ddx8VEYy.js → FileDownload.esm.Dx0vI3vH.js} +1 -1
  171. streamlit/static/static/js/{FileHelper.90EtOmj9.js → FileHelper.B7Ero7qQ.js} +3 -3
  172. streamlit/static/static/js/{FormClearHelper.BB1Km6eP.js → FormClearHelper.CG2XN1_g.js} +1 -1
  173. streamlit/static/static/js/IFrameUtil.DefezniK.js +1 -0
  174. streamlit/static/static/js/InputInstructions.Cj5-1zf6.js +1 -0
  175. streamlit/static/static/js/Particles.BfWfv0Aw.js +1 -0
  176. streamlit/static/static/js/{ProgressBar.DLY8H6nE.js → ProgressBar.CGQ8OgfO.js} +2 -2
  177. streamlit/static/static/js/StreamlitSyntaxHighlighter.DTKLpwhl.js +20 -0
  178. streamlit/static/static/js/{Toolbar.D8nHCkuz.js → Toolbar.B2qFUmd9.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.o9tL8MDP.js} +4 -4
  182. streamlit/static/static/js/{checkbox.Cpdd482O.js → checkbox.0BeV1IBL.js} +1 -1
  183. streamlit/static/static/js/{createSuper.CuQIogbW.js → createSuper.RBO59fEm.js} +1 -1
  184. streamlit/static/static/js/data-grid-overlay-editor.CiTkUy0t.js +1 -0
  185. streamlit/static/static/js/{downloader.CN0K7xlu.js → downloader.DwNZg3Mw.js} +1 -1
  186. streamlit/static/static/js/embed.XT9xNd3F.js +195 -0
  187. streamlit/static/static/js/{es6.BJcsVXQ0.js → es6.x9KsYQg-.js} +2 -2
  188. streamlit/static/static/js/{iframeResizer.contentWindow.XzUvQqcZ.js → iframeResizer.contentWindow.ZVXpMPi0.js} +1 -1
  189. streamlit/static/static/js/index.5VPOamri.js +1 -0
  190. streamlit/static/static/js/index.8HslT92O.js +14 -0
  191. streamlit/static/static/js/index.AnXMIBz3.js +7 -0
  192. streamlit/static/static/js/index.B0yp3bM1.js +6 -0
  193. streamlit/static/static/js/index.B1fRb5wF.js +1 -0
  194. streamlit/static/static/js/index.B527JZdO.js +3 -0
  195. streamlit/static/static/js/index.BHgV-yW4.js +1 -0
  196. streamlit/static/static/js/index.BQr-XwGV.js +1 -0
  197. streamlit/static/static/js/index.BTtmaLDB.js +1 -0
  198. streamlit/static/static/js/index.BWB_91TA.js +1 -0
  199. streamlit/static/static/js/index.BfEKaEmw.js +1 -0
  200. streamlit/static/static/js/index.BfXjTO8b.js +1 -0
  201. streamlit/static/static/js/index.Bjy4NRu9.js +3 -0
  202. streamlit/static/static/js/index.Bu5JWpT_.js +1 -0
  203. streamlit/static/static/js/index.BuCx76ZV.js +1 -0
  204. streamlit/static/static/js/index.BxjzhVUb.js +2 -0
  205. streamlit/static/static/js/index.By55VdPY.js +1 -0
  206. streamlit/static/static/js/index.CF5MxTbK.js +1 -0
  207. streamlit/static/static/js/index.CLmq_z9K.js +1 -0
  208. streamlit/static/static/js/index.CNH4rdSz.js +1 -0
  209. streamlit/static/static/js/{index.D3GPA5k4.js → index.CTgm_-jO.js} +9 -40
  210. streamlit/static/static/js/index.C_rK-Swb.js +188 -0
  211. streamlit/static/static/js/index.CjozwSzS.js +1 -0
  212. streamlit/static/static/js/{index.DOFlg3dS.js → index.CkGVt6-G.js} +1 -1
  213. streamlit/static/static/js/index.CuvXOyER.js +2 -0
  214. streamlit/static/static/js/{index.B_dWA3vd.js → index.CyUHWoCC.js} +2 -2
  215. streamlit/static/static/js/index.CyroQtI4.js +2 -0
  216. streamlit/static/static/js/index.D6HmkoDm.js +263 -0
  217. streamlit/static/static/js/index.DAqCNvsO.js +1 -0
  218. streamlit/static/static/js/index.DB_w_CZQ.js +1 -0
  219. streamlit/static/static/js/index.DBalctjj.js +2 -0
  220. streamlit/static/static/js/index.DK0RFJUG.js +11 -0
  221. streamlit/static/static/js/index.DMxc2XFp.js +151 -0
  222. streamlit/static/static/js/index.DO5utP74.js +2 -0
  223. streamlit/static/static/js/index.DS7lf09n.js +1 -0
  224. streamlit/static/static/js/index.DWexTVLY.js +1 -0
  225. streamlit/static/static/js/index.DXxnU5ej.js +1 -0
  226. streamlit/static/static/js/index.DcU3uDvB.js +2 -0
  227. streamlit/static/static/js/index.DlltaH7J.js +1 -0
  228. streamlit/static/static/js/index.DpNTZz82.js +27 -0
  229. streamlit/static/static/js/index.Dr9HIhQw.js +1 -0
  230. streamlit/static/static/js/index.DsgAU5lc.js +1 -0
  231. streamlit/static/static/js/{index.DPUXkcQL.js → index.KfXqjDYy.js} +1 -1
  232. streamlit/static/static/js/index.PaidgjCs.js +1 -0
  233. streamlit/static/static/js/index.RJZuWCGA.js +1 -0
  234. streamlit/static/static/js/{index.CxIUUfab.js → index.hbeqcRTn.js} +53 -122
  235. streamlit/static/static/js/index.q5hIQwAY.js +1 -0
  236. streamlit/static/static/js/index.rORSX6IW.js +1 -0
  237. streamlit/static/static/js/index.uSX757_v.js +1 -0
  238. streamlit/static/static/js/index.x_QRaLMd.js +1 -0
  239. streamlit/static/static/js/{input.D4MN_FzN.js → input.D5oh9-aB.js} +2 -2
  240. streamlit/static/static/js/main.q9oGOg0H.js +13 -0
  241. streamlit/static/static/js/{memory.DrZjtdGT.js → memory.5kCSFUJS.js} +1 -1
  242. streamlit/static/static/js/moment.C3j7ZXd7.js +4 -0
  243. streamlit/static/static/js/number-overlay-editor.Cn_LsK8N.js +9 -0
  244. streamlit/static/static/js/pandasStylerUtils.BqhXt51_.js +1 -0
  245. streamlit/static/static/js/{possibleConstructorReturn.exeeJQEP.js → possibleConstructorReturn.DD9NK1Z8.js} +1 -1
  246. streamlit/static/static/js/{sandbox.ClO3IuUr.js → sandbox.DACSyz29.js} +1 -1
  247. streamlit/static/static/js/styled-components.C3R090At.js +1 -0
  248. streamlit/static/static/js/threshold.Q1mXg5rX.js +1 -0
  249. streamlit/static/static/js/throttle.B0GR3Iyz.js +1 -0
  250. streamlit/static/static/js/{timepicker.DAhu-vcF.js → timepicker.BdhzPxrv.js} +1 -1
  251. streamlit/static/static/js/timer.C2hYhUse.js +1 -0
  252. streamlit/static/static/js/{toConsumableArray.DNbljYEC.js → toConsumableArray.Db2pdqM2.js} +1 -1
  253. streamlit/static/static/js/uniqueId.CtqIr-Yh.js +1 -0
  254. streamlit/static/static/js/urls.BwSlolu9.js +1 -0
  255. streamlit/static/static/js/{useBasicWidgetState.D6sOH6oI.js → useBasicWidgetState.Bfp6TnSw.js} +1 -1
  256. streamlit/static/static/js/useIntlLocale.hRV75Xgj.js +12 -0
  257. streamlit/static/static/js/{useTextInputAutoExpand.4u3_GcuN.js → useTextInputAutoExpand.QepX7n8Y.js} +1 -1
  258. streamlit/static/static/js/useUpdateUiValue.DHx8TzX6.js +1 -0
  259. streamlit/static/static/js/useWaveformController.WxVzpzEX.js +1 -0
  260. streamlit/static/static/js/value.B4vHRSi7.js +1 -0
  261. streamlit/static/static/js/withCalculatedWidth.DcKeRSWJ.js +1 -0
  262. streamlit/static/static/js/withFullScreenWrapper.CrHddARq.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.0.dist-info}/METADATA +9 -5
  270. {streamlit-1.51.0.dist-info → streamlit-1.52.0.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.0.data}/scripts/streamlit.cmd +0 -0
  312. {streamlit-1.51.0.dist-info → streamlit-1.52.0.dist-info}/WHEEL +0 -0
  313. {streamlit-1.51.0.dist-info → streamlit-1.52.0.dist-info}/entry_points.txt +0 -0
  314. {streamlit-1.51.0.dist-info → streamlit-1.52.0.dist-info}/top_level.txt +0 -0
@@ -21,8 +21,14 @@ import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
23
  import streamlit.proto.DataFrame_pb2
24
+ import sys
24
25
  import typing
25
26
 
27
+ if sys.version_info >= (3, 10):
28
+ import typing as typing_extensions
29
+ else:
30
+ import typing_extensions
31
+
26
32
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
27
33
 
28
34
  @typing.final
@@ -56,4 +62,4 @@ class NamedDataSet(google.protobuf.message.Message):
56
62
  def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
57
63
  def ClearField(self, field_name: typing.Literal["data", b"data", "has_name", b"has_name", "name", b"name"]) -> None: ...
58
64
 
59
- global___NamedDataSet = NamedDataSet
65
+ Global___NamedDataSet: typing_extensions.TypeAlias = NamedDataSet
@@ -66,7 +66,7 @@ class Navigation(google.protobuf.message.Message):
66
66
  POSITION_FIELD_NUMBER: builtins.int
67
67
  PAGE_SCRIPT_HASH_FIELD_NUMBER: builtins.int
68
68
  EXPANDED_FIELD_NUMBER: builtins.int
69
- position: global___Navigation.Position.ValueType
69
+ position: Global___Navigation.Position.ValueType
70
70
  page_script_hash: builtins.str
71
71
  """The script hash for the page identified by st.navigation"""
72
72
  expanded: builtins.bool
@@ -79,10 +79,10 @@ class Navigation(google.protobuf.message.Message):
79
79
  *,
80
80
  sections: collections.abc.Iterable[builtins.str] | None = ...,
81
81
  app_pages: collections.abc.Iterable[streamlit.proto.AppPage_pb2.AppPage] | None = ...,
82
- position: global___Navigation.Position.ValueType = ...,
82
+ position: Global___Navigation.Position.ValueType = ...,
83
83
  page_script_hash: builtins.str = ...,
84
84
  expanded: builtins.bool = ...,
85
85
  ) -> None: ...
86
86
  def ClearField(self, field_name: typing.Literal["app_pages", b"app_pages", "expanded", b"expanded", "page_script_hash", b"page_script_hash", "position", b"position", "sections", b"sections"]) -> None: ...
87
87
 
88
- global___Navigation = Navigation
88
+ Global___Navigation: typing_extensions.TypeAlias = Navigation
@@ -69,7 +69,7 @@ class NewSession(google.protobuf.message.Message):
69
69
  main_script_hash: builtins.str
70
70
  """Hash of the main script running (ie streamlit run main_script.py)"""
71
71
  @property
72
- def initialize(self) -> global___Initialize:
72
+ def initialize(self) -> Global___Initialize:
73
73
  """Initialization data. This data does *not* change from rerun to rerun,
74
74
  but we send it every time so that we don't have to track whether the
75
75
  client has already received it. The client is responsible for
@@ -77,13 +77,13 @@ class NewSession(google.protobuf.message.Message):
77
77
  """
78
78
 
79
79
  @property
80
- def config(self) -> global___Config:
80
+ def config(self) -> Global___Config:
81
81
  """Config options that are (mostly) defined in the .streamlit/config.toml
82
82
  file.
83
83
  """
84
84
 
85
85
  @property
86
- def custom_theme(self) -> global___CustomThemeConfig:
86
+ def custom_theme(self) -> Global___CustomThemeConfig:
87
87
  """Theme configuration options defined in the .streamlit/config.toml file.
88
88
  See the "theme" config section.
89
89
  """
@@ -101,12 +101,12 @@ class NewSession(google.protobuf.message.Message):
101
101
  def __init__(
102
102
  self,
103
103
  *,
104
- initialize: global___Initialize | None = ...,
104
+ initialize: Global___Initialize | None = ...,
105
105
  script_run_id: builtins.str = ...,
106
106
  name: builtins.str = ...,
107
107
  main_script_path: builtins.str = ...,
108
- config: global___Config | None = ...,
109
- custom_theme: global___CustomThemeConfig | None = ...,
108
+ config: Global___Config | None = ...,
109
+ custom_theme: Global___CustomThemeConfig | None = ...,
110
110
  app_pages: collections.abc.Iterable[streamlit.proto.AppPage_pb2.AppPage] | None = ...,
111
111
  page_script_hash: builtins.str = ...,
112
112
  fragment_ids_this_run: collections.abc.Iterable[builtins.str] | None = ...,
@@ -115,7 +115,7 @@ class NewSession(google.protobuf.message.Message):
115
115
  def HasField(self, field_name: typing.Literal["config", b"config", "custom_theme", b"custom_theme", "initialize", b"initialize"]) -> builtins.bool: ...
116
116
  def ClearField(self, field_name: typing.Literal["app_pages", b"app_pages", "config", b"config", "custom_theme", b"custom_theme", "fragment_ids_this_run", b"fragment_ids_this_run", "initialize", b"initialize", "main_script_hash", b"main_script_hash", "main_script_path", b"main_script_path", "name", b"name", "page_script_hash", b"page_script_hash", "script_run_id", b"script_run_id"]) -> None: ...
117
117
 
118
- global___NewSession = NewSession
118
+ Global___NewSession: typing_extensions.TypeAlias = NewSession
119
119
 
120
120
  @typing.final
121
121
  class Initialize(google.protobuf.message.Message):
@@ -144,9 +144,9 @@ class Initialize(google.protobuf.message.Message):
144
144
  is_hello: builtins.bool
145
145
  """True if the command used to start this app was `streamlit hello`."""
146
146
  @property
147
- def user_info(self) -> global___UserInfo: ...
147
+ def user_info(self) -> Global___UserInfo: ...
148
148
  @property
149
- def environment_info(self) -> global___EnvironmentInfo: ...
149
+ def environment_info(self) -> Global___EnvironmentInfo: ...
150
150
  @property
151
151
  def session_status(self) -> streamlit.proto.SessionStatus_pb2.SessionStatus:
152
152
  """The session status at the time the connection was established"""
@@ -154,8 +154,8 @@ class Initialize(google.protobuf.message.Message):
154
154
  def __init__(
155
155
  self,
156
156
  *,
157
- user_info: global___UserInfo | None = ...,
158
- environment_info: global___EnvironmentInfo | None = ...,
157
+ user_info: Global___UserInfo | None = ...,
158
+ environment_info: Global___EnvironmentInfo | None = ...,
159
159
  session_status: streamlit.proto.SessionStatus_pb2.SessionStatus | None = ...,
160
160
  command_line: builtins.str = ...,
161
161
  session_id: builtins.str = ...,
@@ -164,7 +164,7 @@ class Initialize(google.protobuf.message.Message):
164
164
  def HasField(self, field_name: typing.Literal["environment_info", b"environment_info", "session_status", b"session_status", "user_info", b"user_info"]) -> builtins.bool: ...
165
165
  def ClearField(self, field_name: typing.Literal["command_line", b"command_line", "environment_info", b"environment_info", "is_hello", b"is_hello", "session_id", b"session_id", "session_status", b"session_status", "user_info", b"user_info"]) -> None: ...
166
166
 
167
- global___Initialize = Initialize
167
+ Global___Initialize: typing_extensions.TypeAlias = Initialize
168
168
 
169
169
  @typing.final
170
170
  class Config(google.protobuf.message.Message):
@@ -212,7 +212,7 @@ class Config(google.protobuf.message.Message):
212
212
  """See config option "ui.hideTopBar"."""
213
213
  hide_sidebar_nav: builtins.bool
214
214
  """See config option "client.showSidebarNavigation"."""
215
- toolbar_mode: global___Config.ToolbarMode.ValueType
215
+ toolbar_mode: Global___Config.ToolbarMode.ValueType
216
216
  def __init__(
217
217
  self,
218
218
  *,
@@ -222,11 +222,11 @@ class Config(google.protobuf.message.Message):
222
222
  allow_run_on_save: builtins.bool = ...,
223
223
  hide_top_bar: builtins.bool = ...,
224
224
  hide_sidebar_nav: builtins.bool = ...,
225
- toolbar_mode: global___Config.ToolbarMode.ValueType = ...,
225
+ toolbar_mode: Global___Config.ToolbarMode.ValueType = ...,
226
226
  ) -> None: ...
227
227
  def ClearField(self, field_name: typing.Literal["allow_run_on_save", b"allow_run_on_save", "gather_usage_stats", b"gather_usage_stats", "hide_sidebar_nav", b"hide_sidebar_nav", "hide_top_bar", b"hide_top_bar", "mapbox_token", b"mapbox_token", "max_cached_message_age", b"max_cached_message_age", "toolbar_mode", b"toolbar_mode"]) -> None: ...
228
228
 
229
- global___Config = Config
229
+ Global___Config: typing_extensions.TypeAlias = Config
230
230
 
231
231
  @typing.final
232
232
  class CustomThemeConfig(google.protobuf.message.Message):
@@ -332,9 +332,9 @@ class CustomThemeConfig(google.protobuf.message.Message):
332
332
  secondary_background_color: builtins.str
333
333
  background_color: builtins.str
334
334
  text_color: builtins.str
335
- font: global___CustomThemeConfig.FontFamily.ValueType
335
+ font: Global___CustomThemeConfig.FontFamily.ValueType
336
336
  """DEPRECATED: Use body_font instead:"""
337
- base: global___CustomThemeConfig.BaseTheme.ValueType
337
+ base: Global___CustomThemeConfig.BaseTheme.ValueType
338
338
  widget_background_color: builtins.str
339
339
  """DEPRECATED: This color is not applied anymore:"""
340
340
  widget_border_color: builtins.str
@@ -384,15 +384,15 @@ class CustomThemeConfig(google.protobuf.message.Message):
384
384
  violet_text_color: builtins.str
385
385
  gray_text_color: builtins.str
386
386
  @property
387
- def radii(self) -> global___Radii:
387
+ def radii(self) -> Global___Radii:
388
388
  """DEPRECATED: Please use the base_radius theme config instead:"""
389
389
 
390
390
  @property
391
- def font_faces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FontFace]: ...
391
+ def font_faces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FontFace]: ...
392
392
  @property
393
- def font_sources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FontSource]: ...
393
+ def font_sources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FontSource]: ...
394
394
  @property
395
- def font_sizes(self) -> global___FontSizes:
395
+ def font_sizes(self) -> Global___FontSizes:
396
396
  """DEPRECATED: Please use the base_font_size theme config instead:"""
397
397
 
398
398
  @property
@@ -404,13 +404,13 @@ class CustomThemeConfig(google.protobuf.message.Message):
404
404
  @property
405
405
  def chart_sequential_colors(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
406
406
  @property
407
- def sidebar(self) -> global___CustomThemeConfig:
407
+ def sidebar(self) -> Global___CustomThemeConfig:
408
408
  """Theme sections:"""
409
409
 
410
410
  @property
411
- def light(self) -> global___CustomThemeConfig: ...
411
+ def light(self) -> Global___CustomThemeConfig: ...
412
412
  @property
413
- def dark(self) -> global___CustomThemeConfig: ...
413
+ def dark(self) -> Global___CustomThemeConfig: ...
414
414
  def __init__(
415
415
  self,
416
416
  *,
@@ -418,17 +418,17 @@ class CustomThemeConfig(google.protobuf.message.Message):
418
418
  secondary_background_color: builtins.str = ...,
419
419
  background_color: builtins.str = ...,
420
420
  text_color: builtins.str = ...,
421
- font: global___CustomThemeConfig.FontFamily.ValueType = ...,
422
- base: global___CustomThemeConfig.BaseTheme.ValueType = ...,
421
+ font: Global___CustomThemeConfig.FontFamily.ValueType = ...,
422
+ base: Global___CustomThemeConfig.BaseTheme.ValueType = ...,
423
423
  widget_background_color: builtins.str = ...,
424
424
  widget_border_color: builtins.str = ...,
425
- radii: global___Radii | None = ...,
425
+ radii: Global___Radii | None = ...,
426
426
  heading_font: builtins.str = ...,
427
427
  body_font: builtins.str = ...,
428
428
  code_font: builtins.str = ...,
429
- font_faces: collections.abc.Iterable[global___FontFace] | None = ...,
430
- font_sources: collections.abc.Iterable[global___FontSource] | None = ...,
431
- font_sizes: global___FontSizes | None = ...,
429
+ font_faces: collections.abc.Iterable[Global___FontFace] | None = ...,
430
+ font_sources: collections.abc.Iterable[Global___FontSource] | None = ...,
431
+ font_sizes: Global___FontSizes | None = ...,
432
432
  skeleton_background_color: builtins.str = ...,
433
433
  base_radius: builtins.str | None = ...,
434
434
  button_radius: builtins.str | None = ...,
@@ -470,9 +470,9 @@ class CustomThemeConfig(google.protobuf.message.Message):
470
470
  green_text_color: builtins.str | None = ...,
471
471
  violet_text_color: builtins.str | None = ...,
472
472
  gray_text_color: builtins.str | None = ...,
473
- sidebar: global___CustomThemeConfig | None = ...,
474
- light: global___CustomThemeConfig | None = ...,
475
- dark: global___CustomThemeConfig | None = ...,
473
+ sidebar: Global___CustomThemeConfig | None = ...,
474
+ light: Global___CustomThemeConfig | None = ...,
475
+ dark: Global___CustomThemeConfig | None = ...,
476
476
  ) -> None: ...
477
477
  def HasField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_base_font_weight", b"_base_font_weight", "_base_radius", b"_base_radius", "_blue_background_color", b"_blue_background_color", "_blue_color", b"_blue_color", "_blue_text_color", b"_blue_text_color", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_code_font_weight", b"_code_font_weight", "_code_text_color", b"_code_text_color", "_dark", b"_dark", "_dataframe_border_color", b"_dataframe_border_color", "_dataframe_header_background_color", b"_dataframe_header_background_color", "_gray_background_color", b"_gray_background_color", "_gray_color", b"_gray_color", "_gray_text_color", b"_gray_text_color", "_green_background_color", b"_green_background_color", "_green_color", b"_green_color", "_green_text_color", b"_green_text_color", "_light", b"_light", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_orange_background_color", b"_orange_background_color", "_orange_color", b"_orange_color", "_orange_text_color", b"_orange_text_color", "_red_background_color", b"_red_background_color", "_red_color", b"_red_color", "_red_text_color", b"_red_text_color", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "_violet_background_color", b"_violet_background_color", "_violet_color", b"_violet_color", "_violet_text_color", b"_violet_text_color", "_yellow_background_color", b"_yellow_background_color", "_yellow_color", b"_yellow_color", "_yellow_text_color", b"_yellow_text_color", "base_font_size", b"base_font_size", "base_font_weight", b"base_font_weight", "base_radius", b"base_radius", "blue_background_color", b"blue_background_color", "blue_color", b"blue_color", "blue_text_color", b"blue_text_color", "border_color", b"border_color", "button_radius", b"button_radius", "code_background_color", b"code_background_color", "code_font_size", b"code_font_size", "code_font_weight", b"code_font_weight", "code_text_color", b"code_text_color", "dark", b"dark", "dataframe_border_color", b"dataframe_border_color", "dataframe_header_background_color", b"dataframe_header_background_color", "font_sizes", b"font_sizes", "gray_background_color", b"gray_background_color", "gray_color", b"gray_color", "gray_text_color", b"gray_text_color", "green_background_color", b"green_background_color", "green_color", b"green_color", "green_text_color", b"green_text_color", "light", b"light", "link_color", b"link_color", "link_underline", b"link_underline", "orange_background_color", b"orange_background_color", "orange_color", b"orange_color", "orange_text_color", b"orange_text_color", "radii", b"radii", "red_background_color", b"red_background_color", "red_color", b"red_color", "red_text_color", b"red_text_color", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar", "violet_background_color", b"violet_background_color", "violet_color", b"violet_color", "violet_text_color", b"violet_text_color", "yellow_background_color", b"yellow_background_color", "yellow_color", b"yellow_color", "yellow_text_color", b"yellow_text_color"]) -> builtins.bool: ...
478
478
  def ClearField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_base_font_weight", b"_base_font_weight", "_base_radius", b"_base_radius", "_blue_background_color", b"_blue_background_color", "_blue_color", b"_blue_color", "_blue_text_color", b"_blue_text_color", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_code_font_weight", b"_code_font_weight", "_code_text_color", b"_code_text_color", "_dark", b"_dark", "_dataframe_border_color", b"_dataframe_border_color", "_dataframe_header_background_color", b"_dataframe_header_background_color", "_gray_background_color", b"_gray_background_color", "_gray_color", b"_gray_color", "_gray_text_color", b"_gray_text_color", "_green_background_color", b"_green_background_color", "_green_color", b"_green_color", "_green_text_color", b"_green_text_color", "_light", b"_light", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_orange_background_color", b"_orange_background_color", "_orange_color", b"_orange_color", "_orange_text_color", b"_orange_text_color", "_red_background_color", b"_red_background_color", "_red_color", b"_red_color", "_red_text_color", b"_red_text_color", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "_violet_background_color", b"_violet_background_color", "_violet_color", b"_violet_color", "_violet_text_color", b"_violet_text_color", "_yellow_background_color", b"_yellow_background_color", "_yellow_color", b"_yellow_color", "_yellow_text_color", b"_yellow_text_color", "background_color", b"background_color", "base", b"base", "base_font_size", b"base_font_size", "base_font_weight", b"base_font_weight", "base_radius", b"base_radius", "blue_background_color", b"blue_background_color", "blue_color", b"blue_color", "blue_text_color", b"blue_text_color", "body_font", b"body_font", "border_color", b"border_color", "button_radius", b"button_radius", "chart_categorical_colors", b"chart_categorical_colors", "chart_sequential_colors", b"chart_sequential_colors", "code_background_color", b"code_background_color", "code_font", b"code_font", "code_font_size", b"code_font_size", "code_font_weight", b"code_font_weight", "code_text_color", b"code_text_color", "dark", b"dark", "dataframe_border_color", b"dataframe_border_color", "dataframe_header_background_color", b"dataframe_header_background_color", "font", b"font", "font_faces", b"font_faces", "font_sizes", b"font_sizes", "font_sources", b"font_sources", "gray_background_color", b"gray_background_color", "gray_color", b"gray_color", "gray_text_color", b"gray_text_color", "green_background_color", b"green_background_color", "green_color", b"green_color", "green_text_color", b"green_text_color", "heading_font", b"heading_font", "heading_font_sizes", b"heading_font_sizes", "heading_font_weights", b"heading_font_weights", "light", b"light", "link_color", b"link_color", "link_underline", b"link_underline", "orange_background_color", b"orange_background_color", "orange_color", b"orange_color", "orange_text_color", b"orange_text_color", "primary_color", b"primary_color", "radii", b"radii", "red_background_color", b"red_background_color", "red_color", b"red_color", "red_text_color", b"red_text_color", "secondary_background_color", b"secondary_background_color", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar", "skeleton_background_color", b"skeleton_background_color", "text_color", b"text_color", "violet_background_color", b"violet_background_color", "violet_color", b"violet_color", "violet_text_color", b"violet_text_color", "widget_background_color", b"widget_background_color", "widget_border_color", b"widget_border_color", "yellow_background_color", b"yellow_background_color", "yellow_color", b"yellow_color", "yellow_text_color", b"yellow_text_color"]) -> None: ...
@@ -555,7 +555,7 @@ class CustomThemeConfig(google.protobuf.message.Message):
555
555
  @typing.overload
556
556
  def WhichOneof(self, oneof_group: typing.Literal["_yellow_text_color", b"_yellow_text_color"]) -> typing.Literal["yellow_text_color"] | None: ...
557
557
 
558
- global___CustomThemeConfig = CustomThemeConfig
558
+ Global___CustomThemeConfig: typing_extensions.TypeAlias = CustomThemeConfig
559
559
 
560
560
  @typing.final
561
561
  class FontFace(google.protobuf.message.Message):
@@ -590,7 +590,7 @@ class FontFace(google.protobuf.message.Message):
590
590
  ) -> None: ...
591
591
  def ClearField(self, field_name: typing.Literal["family", b"family", "style", b"style", "unicode_range", b"unicode_range", "url", b"url", "weight", b"weight", "weight_range", b"weight_range"]) -> None: ...
592
592
 
593
- global___FontFace = FontFace
593
+ Global___FontFace: typing_extensions.TypeAlias = FontFace
594
594
 
595
595
  @typing.final
596
596
  class FontSource(google.protobuf.message.Message):
@@ -611,7 +611,7 @@ class FontSource(google.protobuf.message.Message):
611
611
  ) -> None: ...
612
612
  def ClearField(self, field_name: typing.Literal["config_name", b"config_name", "source_url", b"source_url"]) -> None: ...
613
613
 
614
- global___FontSource = FontSource
614
+ Global___FontSource: typing_extensions.TypeAlias = FontSource
615
615
 
616
616
  @typing.final
617
617
  class Radii(google.protobuf.message.Message):
@@ -632,7 +632,7 @@ class Radii(google.protobuf.message.Message):
632
632
  ) -> None: ...
633
633
  def ClearField(self, field_name: typing.Literal["base_widget_radius", b"base_widget_radius", "checkbox_radius", b"checkbox_radius"]) -> None: ...
634
634
 
635
- global___Radii = Radii
635
+ Global___Radii: typing_extensions.TypeAlias = Radii
636
636
 
637
637
  @typing.final
638
638
  class FontSizes(google.protobuf.message.Message):
@@ -656,7 +656,7 @@ class FontSizes(google.protobuf.message.Message):
656
656
  ) -> None: ...
657
657
  def ClearField(self, field_name: typing.Literal["base_font_size", b"base_font_size", "small_font_size", b"small_font_size", "tiny_font_size", b"tiny_font_size"]) -> None: ...
658
658
 
659
- global___FontSizes = FontSizes
659
+ Global___FontSizes: typing_extensions.TypeAlias = FontSizes
660
660
 
661
661
  @typing.final
662
662
  class UserInfo(google.protobuf.message.Message):
@@ -681,7 +681,7 @@ class UserInfo(google.protobuf.message.Message):
681
681
  ) -> None: ...
682
682
  def ClearField(self, field_name: typing.Literal["installation_id", b"installation_id", "installation_id_v3", b"installation_id_v3", "installation_id_v4", b"installation_id_v4"]) -> None: ...
683
683
 
684
- global___UserInfo = UserInfo
684
+ Global___UserInfo: typing_extensions.TypeAlias = UserInfo
685
685
 
686
686
  @typing.final
687
687
  class EnvironmentInfo(google.protobuf.message.Message):
@@ -724,4 +724,4 @@ class EnvironmentInfo(google.protobuf.message.Message):
724
724
  ) -> None: ...
725
725
  def ClearField(self, field_name: typing.Literal["has_display", b"has_display", "python_version", b"python_version", "server_os", b"server_os", "streamlit_version", b"streamlit_version"]) -> None: ...
726
726
 
727
- global___EnvironmentInfo = EnvironmentInfo
727
+ Global___EnvironmentInfo: typing_extensions.TypeAlias = EnvironmentInfo
@@ -79,7 +79,7 @@ class NumberInput(google.protobuf.message.Message):
79
79
  format: builtins.str
80
80
  has_min: builtins.bool
81
81
  has_max: builtins.bool
82
- data_type: global___NumberInput.DataType.ValueType
82
+ data_type: Global___NumberInput.DataType.ValueType
83
83
  default: builtins.float
84
84
  step: builtins.float
85
85
  min: builtins.float
@@ -101,7 +101,7 @@ class NumberInput(google.protobuf.message.Message):
101
101
  format: builtins.str = ...,
102
102
  has_min: builtins.bool = ...,
103
103
  has_max: builtins.bool = ...,
104
- data_type: global___NumberInput.DataType.ValueType = ...,
104
+ data_type: Global___NumberInput.DataType.ValueType = ...,
105
105
  default: builtins.float | None = ...,
106
106
  step: builtins.float = ...,
107
107
  min: builtins.float = ...,
@@ -121,4 +121,4 @@ class NumberInput(google.protobuf.message.Message):
121
121
  @typing.overload
122
122
  def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
123
123
 
124
- global___NumberInput = NumberInput
124
+ Global___NumberInput: typing_extensions.TypeAlias = NumberInput
@@ -127,20 +127,20 @@ class PageConfig(google.protobuf.message.Message):
127
127
  MENU_ITEMS_FIELD_NUMBER: builtins.int
128
128
  title: builtins.str
129
129
  favicon: builtins.str
130
- layout: global___PageConfig.Layout.ValueType
131
- initial_sidebar_state: global___PageConfig.SidebarState.ValueType
130
+ layout: Global___PageConfig.Layout.ValueType
131
+ initial_sidebar_state: Global___PageConfig.SidebarState.ValueType
132
132
  @property
133
- def menu_items(self) -> global___PageConfig.MenuItems: ...
133
+ def menu_items(self) -> Global___PageConfig.MenuItems: ...
134
134
  def __init__(
135
135
  self,
136
136
  *,
137
137
  title: builtins.str = ...,
138
138
  favicon: builtins.str = ...,
139
- layout: global___PageConfig.Layout.ValueType = ...,
140
- initial_sidebar_state: global___PageConfig.SidebarState.ValueType = ...,
141
- menu_items: global___PageConfig.MenuItems | None = ...,
139
+ layout: Global___PageConfig.Layout.ValueType = ...,
140
+ initial_sidebar_state: Global___PageConfig.SidebarState.ValueType = ...,
141
+ menu_items: Global___PageConfig.MenuItems | None = ...,
142
142
  ) -> None: ...
143
143
  def HasField(self, field_name: typing.Literal["menu_items", b"menu_items"]) -> builtins.bool: ...
144
144
  def ClearField(self, field_name: typing.Literal["favicon", b"favicon", "initial_sidebar_state", b"initial_sidebar_state", "layout", b"layout", "menu_items", b"menu_items", "title", b"title"]) -> None: ...
145
145
 
146
- global___PageConfig = PageConfig
146
+ Global___PageConfig: typing_extensions.TypeAlias = PageConfig
@@ -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
@@ -40,4 +46,4 @@ class PageInfo(google.protobuf.message.Message):
40
46
  ) -> None: ...
41
47
  def ClearField(self, field_name: typing.Literal["query_string", b"query_string"]) -> None: ...
42
48
 
43
- global___PageInfo = PageInfo
49
+ Global___PageInfo: typing_extensions.TypeAlias = PageInfo
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
14
14
 
15
15
 
16
16
 
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1estreamlit/proto/PageLink.proto\"\xbb\x01\n\x08PageLink\x12\x0c\n\x04page\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0c\n\x04icon\x18\x03 \x01(\t\x12\x18\n\x10page_script_hash\x18\x04 \x01(\t\x12\x0c\n\x04help\x18\x05 \x01(\t\x12 \n\x13use_container_width\x18\x06 \x01(\x08H\x00\x88\x01\x01\x12\x10\n\x08\x64isabled\x18\x07 \x01(\x08\x12\x10\n\x08\x65xternal\x18\x08 \x01(\x08\x42\x16\n\x14_use_container_widthB-\n\x1c\x63om.snowflake.apps.streamlitB\rPageLinkProtob\x06proto3')
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1estreamlit/proto/PageLink.proto\"\xd1\x01\n\x08PageLink\x12\x0c\n\x04page\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0c\n\x04icon\x18\x03 \x01(\t\x12\x18\n\x10page_script_hash\x18\x04 \x01(\t\x12\x0c\n\x04help\x18\x05 \x01(\t\x12 \n\x13use_container_width\x18\x06 \x01(\x08H\x00\x88\x01\x01\x12\x10\n\x08\x64isabled\x18\x07 \x01(\x08\x12\x10\n\x08\x65xternal\x18\x08 \x01(\x08\x12\x14\n\x0cquery_string\x18\t \x01(\tB\x16\n\x14_use_container_widthB-\n\x1c\x63om.snowflake.apps.streamlitB\rPageLinkProtob\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\rPageLinkProto'
25
25
  _globals['_PAGELINK']._serialized_start=35
26
- _globals['_PAGELINK']._serialized_end=222
26
+ _globals['_PAGELINK']._serialized_end=244
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
@@ -36,6 +42,7 @@ class PageLink(google.protobuf.message.Message):
36
42
  USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
37
43
  DISABLED_FIELD_NUMBER: builtins.int
38
44
  EXTERNAL_FIELD_NUMBER: builtins.int
45
+ QUERY_STRING_FIELD_NUMBER: builtins.int
39
46
  page: builtins.str
40
47
  label: builtins.str
41
48
  icon: builtins.str
@@ -44,6 +51,7 @@ class PageLink(google.protobuf.message.Message):
44
51
  use_container_width: builtins.bool
45
52
  disabled: builtins.bool
46
53
  external: builtins.bool
54
+ query_string: builtins.str
47
55
  def __init__(
48
56
  self,
49
57
  *,
@@ -55,9 +63,10 @@ class PageLink(google.protobuf.message.Message):
55
63
  use_container_width: builtins.bool | None = ...,
56
64
  disabled: builtins.bool = ...,
57
65
  external: builtins.bool = ...,
66
+ query_string: builtins.str = ...,
58
67
  ) -> None: ...
59
68
  def HasField(self, field_name: typing.Literal["_use_container_width", b"_use_container_width", "use_container_width", b"use_container_width"]) -> builtins.bool: ...
60
- def ClearField(self, field_name: typing.Literal["_use_container_width", b"_use_container_width", "disabled", b"disabled", "external", b"external", "help", b"help", "icon", b"icon", "label", b"label", "page", b"page", "page_script_hash", b"page_script_hash", "use_container_width", b"use_container_width"]) -> None: ...
69
+ def ClearField(self, field_name: typing.Literal["_use_container_width", b"_use_container_width", "disabled", b"disabled", "external", b"external", "help", b"help", "icon", b"icon", "label", b"label", "page", b"page", "page_script_hash", b"page_script_hash", "query_string", b"query_string", "use_container_width", b"use_container_width"]) -> None: ...
61
70
  def WhichOneof(self, oneof_group: typing.Literal["_use_container_width", b"_use_container_width"]) -> typing.Literal["use_container_width"] | None: ...
62
71
 
63
- global___PageLink = PageLink
72
+ Global___PageLink: typing_extensions.TypeAlias = PageLink
@@ -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
@@ -39,4 +45,4 @@ class PageNotFound(google.protobuf.message.Message):
39
45
  ) -> None: ...
40
46
  def ClearField(self, field_name: typing.Literal["page_name", b"page_name"]) -> None: ...
41
47
 
42
- global___PageNotFound = PageNotFound
48
+ Global___PageNotFound: typing_extensions.TypeAlias = PageNotFound
@@ -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
@@ -48,7 +54,7 @@ class PageProfile(google.protobuf.message.Message):
48
54
  headless: builtins.bool
49
55
  is_fragment_run: builtins.bool
50
56
  @property
51
- def commands(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Command]: ...
57
+ def commands(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Command]: ...
52
58
  @property
53
59
  def config(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
54
60
  @property
@@ -56,7 +62,7 @@ class PageProfile(google.protobuf.message.Message):
56
62
  def __init__(
57
63
  self,
58
64
  *,
59
- commands: collections.abc.Iterable[global___Command] | None = ...,
65
+ commands: collections.abc.Iterable[Global___Command] | None = ...,
60
66
  exec_time: builtins.int = ...,
61
67
  prep_time: builtins.int = ...,
62
68
  config: collections.abc.Iterable[builtins.str] | None = ...,
@@ -69,7 +75,7 @@ class PageProfile(google.protobuf.message.Message):
69
75
  ) -> None: ...
70
76
  def ClearField(self, field_name: typing.Literal["attributions", b"attributions", "commands", b"commands", "config", b"config", "exec_time", b"exec_time", "headless", b"headless", "is_fragment_run", b"is_fragment_run", "os", b"os", "prep_time", b"prep_time", "timezone", b"timezone", "uncaught_exception", b"uncaught_exception"]) -> None: ...
71
77
 
72
- global___PageProfile = PageProfile
78
+ Global___PageProfile: typing_extensions.TypeAlias = PageProfile
73
79
 
74
80
  @typing.final
75
81
  class Argument(google.protobuf.message.Message):
@@ -102,7 +108,7 @@ class Argument(google.protobuf.message.Message):
102
108
  ) -> None: ...
103
109
  def ClearField(self, field_name: typing.Literal["k", b"k", "m", b"m", "p", b"p", "t", b"t"]) -> None: ...
104
110
 
105
- global___Argument = Argument
111
+ Global___Argument: typing_extensions.TypeAlias = Argument
106
112
 
107
113
  @typing.final
108
114
  class Command(google.protobuf.message.Message):
@@ -114,14 +120,14 @@ class Command(google.protobuf.message.Message):
114
120
  name: builtins.str
115
121
  time: builtins.int
116
122
  @property
117
- def args(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Argument]: ...
123
+ def args(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Argument]: ...
118
124
  def __init__(
119
125
  self,
120
126
  *,
121
127
  name: builtins.str = ...,
122
- args: collections.abc.Iterable[global___Argument] | None = ...,
128
+ args: collections.abc.Iterable[Global___Argument] | None = ...,
123
129
  time: builtins.int = ...,
124
130
  ) -> None: ...
125
131
  def ClearField(self, field_name: typing.Literal["args", b"args", "name", b"name", "time", b"time"]) -> None: ...
126
132
 
127
- global___Command = Command
133
+ Global___Command: typing_extensions.TypeAlias = Command
@@ -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.AppPage_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
@@ -45,4 +51,4 @@ class PagesChanged(google.protobuf.message.Message):
45
51
  ) -> None: ...
46
52
  def ClearField(self, field_name: typing.Literal["app_pages", b"app_pages"]) -> None: ...
47
53
 
48
- global___PagesChanged = PagesChanged
54
+ Global___PagesChanged: typing_extensions.TypeAlias = PagesChanged
@@ -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
@@ -43,4 +49,4 @@ class ParentMessage(google.protobuf.message.Message):
43
49
  ) -> None: ...
44
50
  def ClearField(self, field_name: typing.Literal["message", b"message"]) -> None: ...
45
51
 
46
- global___ParentMessage = ParentMessage
52
+ Global___ParentMessage: typing_extensions.TypeAlias = ParentMessage
@@ -86,11 +86,11 @@ class PlotlyChart(google.protobuf.message.Message):
86
86
  url: builtins.str
87
87
  """DEPRECATED and unused."""
88
88
  @property
89
- def selection_mode(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___PlotlyChart.SelectionMode.ValueType]:
89
+ def selection_mode(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[Global___PlotlyChart.SelectionMode.ValueType]:
90
90
  """Activate selections types on the chart."""
91
91
 
92
92
  @property
93
- def figure(self) -> global___Figure:
93
+ def figure(self) -> Global___Figure:
94
94
  """DEPRECATED and unused."""
95
95
 
96
96
  def __init__(
@@ -99,18 +99,18 @@ class PlotlyChart(google.protobuf.message.Message):
99
99
  use_container_width: builtins.bool = ...,
100
100
  theme: builtins.str = ...,
101
101
  id: builtins.str = ...,
102
- selection_mode: collections.abc.Iterable[global___PlotlyChart.SelectionMode.ValueType] | None = ...,
102
+ selection_mode: collections.abc.Iterable[Global___PlotlyChart.SelectionMode.ValueType] | None = ...,
103
103
  form_id: builtins.str = ...,
104
104
  spec: builtins.str = ...,
105
105
  config: builtins.str = ...,
106
106
  url: builtins.str = ...,
107
- figure: global___Figure | None = ...,
107
+ figure: Global___Figure | None = ...,
108
108
  ) -> None: ...
109
109
  def HasField(self, field_name: typing.Literal["chart", b"chart", "figure", b"figure", "url", b"url"]) -> builtins.bool: ...
110
110
  def ClearField(self, field_name: typing.Literal["chart", b"chart", "config", b"config", "figure", b"figure", "form_id", b"form_id", "id", b"id", "selection_mode", b"selection_mode", "spec", b"spec", "theme", b"theme", "url", b"url", "use_container_width", b"use_container_width"]) -> None: ...
111
111
  def WhichOneof(self, oneof_group: typing.Literal["chart", b"chart"]) -> typing.Literal["url", "figure"] | None: ...
112
112
 
113
- global___PlotlyChart = PlotlyChart
113
+ Global___PlotlyChart: typing_extensions.TypeAlias = PlotlyChart
114
114
 
115
115
  @typing.final
116
116
  class Figure(google.protobuf.message.Message):
@@ -130,4 +130,4 @@ class Figure(google.protobuf.message.Message):
130
130
  ) -> None: ...
131
131
  def ClearField(self, field_name: typing.Literal["config", b"config", "spec", b"spec"]) -> None: ...
132
132
 
133
- global___Figure = Figure
133
+ Global___Figure: typing_extensions.TypeAlias = Figure
@@ -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
@@ -40,4 +46,4 @@ class Progress(google.protobuf.message.Message):
40
46
  ) -> None: ...
41
47
  def ClearField(self, field_name: typing.Literal["text", b"text", "value", b"value"]) -> None: ...
42
48
 
43
- global___Progress = Progress
49
+ Global___Progress: typing_extensions.TypeAlias = Progress