streamlit-nightly 1.35.1.dev20240601__py2.py3-none-any.whl → 1.35.1.dev20240604__py2.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 (230) hide show
  1. streamlit/commands/navigation.py +8 -5
  2. streamlit/elements/deck_gl_json_chart.py +1 -1
  3. streamlit/elements/form.py +8 -3
  4. streamlit/elements/layouts.py +11 -3
  5. streamlit/elements/lib/policies.py +28 -2
  6. streamlit/elements/map.py +6 -6
  7. streamlit/elements/plotly_chart.py +3 -0
  8. streamlit/elements/pyplot.py +6 -5
  9. streamlit/elements/vega_charts.py +26 -16
  10. streamlit/elements/widgets/button.py +28 -11
  11. streamlit/elements/widgets/camera_input.py +2 -0
  12. streamlit/elements/widgets/chat.py +7 -6
  13. streamlit/elements/widgets/checkbox.py +2 -0
  14. streamlit/elements/widgets/color_picker.py +2 -0
  15. streamlit/elements/widgets/data_editor.py +2 -2
  16. streamlit/elements/widgets/file_uploader.py +2 -0
  17. streamlit/elements/widgets/multiselect.py +2 -0
  18. streamlit/elements/widgets/number_input.py +2 -0
  19. streamlit/elements/widgets/radio.py +2 -0
  20. streamlit/elements/widgets/selectbox.py +2 -0
  21. streamlit/elements/widgets/slider.py +2 -0
  22. streamlit/elements/widgets/text_widgets.py +4 -0
  23. streamlit/elements/widgets/time_widgets.py +4 -0
  24. streamlit/elements/write.py +3 -0
  25. streamlit/hello/Hello.py +22 -28
  26. streamlit/hello/streamlit_app.py +37 -0
  27. streamlit/proto/Alert_pb2.py +12 -11
  28. streamlit/proto/Alert_pb2.pyi +4 -2
  29. streamlit/proto/AppPage_pb2.py +10 -9
  30. streamlit/proto/AppPage_pb2.pyi +4 -7
  31. streamlit/proto/ArrowNamedDataSet_pb2.py +10 -9
  32. streamlit/proto/ArrowNamedDataSet_pb2.pyi +6 -8
  33. streamlit/proto/ArrowVegaLiteChart_pb2.py +10 -9
  34. streamlit/proto/ArrowVegaLiteChart_pb2.pyi +16 -16
  35. streamlit/proto/Arrow_pb2.py +16 -15
  36. streamlit/proto/Arrow_pb2.pyi +14 -8
  37. streamlit/proto/Audio_pb2.py +10 -9
  38. streamlit/proto/Audio_pb2.pyi +4 -7
  39. streamlit/proto/AutoRerun_pb2.py +9 -8
  40. streamlit/proto/AutoRerun_pb2.pyi +4 -7
  41. streamlit/proto/BackMsg_pb2.py +10 -9
  42. streamlit/proto/BackMsg_pb2.pyi +18 -19
  43. streamlit/proto/Balloons_pb2.py +10 -9
  44. streamlit/proto/Balloons_pb2.pyi +4 -7
  45. streamlit/proto/Block_pb2.py +34 -33
  46. streamlit/proto/Block_pb2.pyi +31 -19
  47. streamlit/proto/BokehChart_pb2.py +10 -9
  48. streamlit/proto/BokehChart_pb2.pyi +4 -7
  49. streamlit/proto/Button_pb2.py +10 -9
  50. streamlit/proto/Button_pb2.pyi +4 -7
  51. streamlit/proto/CameraInput_pb2.py +10 -9
  52. streamlit/proto/CameraInput_pb2.pyi +5 -8
  53. streamlit/proto/ChatInput_pb2.py +12 -11
  54. streamlit/proto/ChatInput_pb2.pyi +4 -2
  55. streamlit/proto/Checkbox_pb2.py +12 -11
  56. streamlit/proto/Checkbox_pb2.pyi +6 -4
  57. streamlit/proto/ClientState_pb2.py +10 -9
  58. streamlit/proto/ClientState_pb2.pyi +7 -10
  59. streamlit/proto/Code_pb2.py +10 -9
  60. streamlit/proto/Code_pb2.pyi +4 -7
  61. streamlit/proto/ColorPicker_pb2.py +10 -9
  62. streamlit/proto/ColorPicker_pb2.pyi +5 -8
  63. streamlit/proto/Common_pb2.py +32 -31
  64. streamlit/proto/Common_pb2.pyi +32 -23
  65. streamlit/proto/Components_pb2.py +18 -17
  66. streamlit/proto/Components_pb2.pyi +25 -23
  67. streamlit/proto/DataFrame_pb2.py +38 -37
  68. streamlit/proto/DataFrame_pb2.pyi +52 -33
  69. streamlit/proto/DateInput_pb2.py +10 -9
  70. streamlit/proto/DateInput_pb2.pyi +10 -13
  71. streamlit/proto/DeckGlJsonChart_pb2.py +10 -9
  72. streamlit/proto/DeckGlJsonChart_pb2.pyi +4 -7
  73. streamlit/proto/Delta_pb2.py +10 -9
  74. streamlit/proto/Delta_pb2.pyi +10 -10
  75. streamlit/proto/DocString_pb2.py +12 -11
  76. streamlit/proto/DocString_pb2.pyi +9 -10
  77. streamlit/proto/DownloadButton_pb2.py +10 -9
  78. streamlit/proto/DownloadButton_pb2.pyi +4 -7
  79. streamlit/proto/Element_pb2.py +10 -9
  80. streamlit/proto/Element_pb2.pyi +10 -9
  81. streamlit/proto/Empty_pb2.py +10 -9
  82. streamlit/proto/Empty_pb2.pyi +3 -0
  83. streamlit/proto/Exception_pb2.py +10 -9
  84. streamlit/proto/Exception_pb2.pyi +8 -10
  85. streamlit/proto/Favicon_pb2.py +10 -9
  86. streamlit/proto/Favicon_pb2.pyi +4 -7
  87. streamlit/proto/FileUploader_pb2.py +10 -9
  88. streamlit/proto/FileUploader_pb2.pyi +9 -11
  89. streamlit/proto/ForwardMsg_pb2.py +16 -15
  90. streamlit/proto/ForwardMsg_pb2.pyi +36 -24
  91. streamlit/proto/GitInfo_pb2.py +12 -11
  92. streamlit/proto/GitInfo_pb2.pyi +5 -3
  93. streamlit/proto/GraphVizChart_pb2.py +10 -9
  94. streamlit/proto/GraphVizChart_pb2.pyi +4 -7
  95. streamlit/proto/Heading_pb2.py +10 -9
  96. streamlit/proto/Heading_pb2.pyi +4 -7
  97. streamlit/proto/Html_pb2.py +10 -9
  98. streamlit/proto/Html_pb2.pyi +4 -7
  99. streamlit/proto/IFrame_pb2.py +10 -9
  100. streamlit/proto/IFrame_pb2.pyi +6 -9
  101. streamlit/proto/Image_pb2.py +12 -11
  102. streamlit/proto/Image_pb2.pyi +8 -10
  103. streamlit/proto/Json_pb2.py +10 -9
  104. streamlit/proto/Json_pb2.pyi +4 -7
  105. streamlit/proto/LabelVisibilityMessage_pb2.py +12 -11
  106. streamlit/proto/LabelVisibilityMessage_pb2.pyi +4 -2
  107. streamlit/proto/LinkButton_pb2.py +10 -9
  108. streamlit/proto/LinkButton_pb2.pyi +4 -7
  109. streamlit/proto/Logo_pb2.py +10 -9
  110. streamlit/proto/Logo_pb2.pyi +4 -7
  111. streamlit/proto/Markdown_pb2.py +12 -11
  112. streamlit/proto/Markdown_pb2.pyi +4 -2
  113. streamlit/proto/Metric_pb2.py +14 -13
  114. streamlit/proto/Metric_pb2.pyi +6 -4
  115. streamlit/proto/MultiSelect_pb2.py +10 -9
  116. streamlit/proto/MultiSelect_pb2.pyi +11 -14
  117. streamlit/proto/NamedDataSet_pb2.py +10 -9
  118. streamlit/proto/NamedDataSet_pb2.pyi +6 -8
  119. streamlit/proto/Navigation_pb2.py +12 -11
  120. streamlit/proto/Navigation_pb2.pyi +7 -5
  121. streamlit/proto/NewSession_pb2.py +32 -31
  122. streamlit/proto/NewSession_pb2.pyi +52 -36
  123. streamlit/proto/NumberInput_pb2.py +12 -11
  124. streamlit/proto/NumberInput_pb2.pyi +8 -6
  125. streamlit/proto/PageConfig_pb2.py +16 -15
  126. streamlit/proto/PageConfig_pb2.pyi +8 -5
  127. streamlit/proto/PageInfo_pb2.py +10 -9
  128. streamlit/proto/PageInfo_pb2.pyi +4 -7
  129. streamlit/proto/PageLink_pb2.py +10 -9
  130. streamlit/proto/PageLink_pb2.pyi +6 -9
  131. streamlit/proto/PageNotFound_pb2.py +10 -9
  132. streamlit/proto/PageNotFound_pb2.pyi +4 -7
  133. streamlit/proto/PageProfile_pb2.py +14 -13
  134. streamlit/proto/PageProfile_pb2.pyi +15 -16
  135. streamlit/proto/PagesChanged_pb2.py +10 -9
  136. streamlit/proto/PagesChanged_pb2.pyi +4 -7
  137. streamlit/proto/ParentMessage_pb2.py +10 -9
  138. streamlit/proto/ParentMessage_pb2.pyi +4 -7
  139. streamlit/proto/PlotlyChart_pb2.py +14 -13
  140. streamlit/proto/PlotlyChart_pb2.pyi +13 -8
  141. streamlit/proto/Progress_pb2.py +10 -9
  142. streamlit/proto/Progress_pb2.pyi +4 -7
  143. streamlit/proto/Radio_pb2.py +10 -9
  144. streamlit/proto/Radio_pb2.pyi +8 -12
  145. streamlit/proto/RootContainer_pb2.py +10 -9
  146. streamlit/proto/RootContainer_pb2.pyi +2 -1
  147. streamlit/proto/Selectbox_pb2.py +10 -9
  148. streamlit/proto/Selectbox_pb2.pyi +9 -13
  149. streamlit/proto/SessionEvent_pb2.py +10 -9
  150. streamlit/proto/SessionEvent_pb2.pyi +7 -9
  151. streamlit/proto/SessionStatus_pb2.py +10 -9
  152. streamlit/proto/SessionStatus_pb2.pyi +4 -7
  153. streamlit/proto/Skeleton_pb2.py +12 -11
  154. streamlit/proto/Skeleton_pb2.pyi +6 -4
  155. streamlit/proto/Slider_pb2.py +14 -13
  156. streamlit/proto/Slider_pb2.pyi +12 -10
  157. streamlit/proto/Snow_pb2.py +10 -9
  158. streamlit/proto/Snow_pb2.pyi +4 -7
  159. streamlit/proto/Spinner_pb2.py +10 -9
  160. streamlit/proto/Spinner_pb2.pyi +4 -7
  161. streamlit/proto/TextArea_pb2.py +10 -9
  162. streamlit/proto/TextArea_pb2.pyi +6 -10
  163. streamlit/proto/TextInput_pb2.py +12 -11
  164. streamlit/proto/TextInput_pb2.pyi +7 -5
  165. streamlit/proto/Text_pb2.py +10 -9
  166. streamlit/proto/Text_pb2.pyi +4 -7
  167. streamlit/proto/TimeInput_pb2.py +10 -9
  168. streamlit/proto/TimeInput_pb2.pyi +7 -11
  169. streamlit/proto/Toast_pb2.py +10 -9
  170. streamlit/proto/Toast_pb2.pyi +4 -7
  171. streamlit/proto/VegaLiteChart_pb2.py +10 -9
  172. streamlit/proto/VegaLiteChart_pb2.pyi +9 -10
  173. streamlit/proto/Video_pb2.py +14 -13
  174. streamlit/proto/Video_pb2.pyi +10 -6
  175. streamlit/proto/WidgetStates_pb2.py +12 -11
  176. streamlit/proto/WidgetStates_pb2.pyi +11 -12
  177. streamlit/proto/openmetrics_data_model_pb2.py +42 -41
  178. streamlit/proto/openmetrics_data_model_pb2.pyi +64 -31
  179. streamlit/runtime/caching/cached_message_replay.py +14 -29
  180. streamlit/runtime/fragment.py +3 -0
  181. streamlit/runtime/scriptrunner/script_run_context.py +1 -0
  182. streamlit/runtime/secrets.py +14 -0
  183. streamlit/static/asset-manifest.json +19 -19
  184. streamlit/static/index.html +1 -1
  185. streamlit/static/static/js/{1074.73973756.chunk.js → 1074.a92bc15f.chunk.js} +1 -1
  186. streamlit/static/static/js/1307.36b77087.chunk.js +1 -0
  187. streamlit/static/static/js/1451.229b62c4.chunk.js +1 -0
  188. streamlit/static/static/js/2469.5a75ba8e.chunk.js +1 -0
  189. streamlit/static/static/js/3599.565b1eba.chunk.js +1 -0
  190. streamlit/static/static/js/{4477.1bd49702.chunk.js → 4477.87935ac8.chunk.js} +1 -1
  191. streamlit/static/static/js/4500.be0eb305.chunk.js +1 -0
  192. streamlit/static/static/js/4666.a9344a3a.chunk.js +1 -0
  193. streamlit/static/static/js/5441.87f335e6.chunk.js +1 -0
  194. streamlit/static/static/js/6013.f6083314.chunk.js +1 -0
  195. streamlit/static/static/js/{6718.802da17e.chunk.js → 6718.2e6586ef.chunk.js} +1 -1
  196. streamlit/static/static/js/7175.8f4014ec.chunk.js +1 -0
  197. streamlit/static/static/js/7602.a20a999b.chunk.js +1 -0
  198. streamlit/static/static/js/8148.1b2c085e.chunk.js +1 -0
  199. streamlit/static/static/js/8427.59805a7f.chunk.js +1 -0
  200. streamlit/static/static/js/{8492.0d93bd08.chunk.js → 8492.8ad745d1.chunk.js} +1 -1
  201. streamlit/static/static/js/8691.cb9c04cf.chunk.js +1 -0
  202. streamlit/static/static/js/main.ea823277.js +2 -0
  203. streamlit/type_util.py +7 -0
  204. streamlit/web/cli.py +2 -2
  205. streamlit/web/server/server.py +2 -2
  206. {streamlit_nightly-1.35.1.dev20240601.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/METADATA +5 -5
  207. {streamlit_nightly-1.35.1.dev20240601.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/RECORD +216 -215
  208. streamlit/static/static/js/1307.0f0cca93.chunk.js +0 -1
  209. streamlit/static/static/js/1451.3b0a3e31.chunk.js +0 -1
  210. streamlit/static/static/js/2469.09ea79bb.chunk.js +0 -1
  211. streamlit/static/static/js/4500.b6f348d1.chunk.js +0 -1
  212. streamlit/static/static/js/4666.c4b22a63.chunk.js +0 -1
  213. streamlit/static/static/js/5379.f08eddd1.chunk.js +0 -1
  214. streamlit/static/static/js/5441.1b94928f.chunk.js +0 -1
  215. streamlit/static/static/js/6013.4ba2d616.chunk.js +0 -1
  216. streamlit/static/static/js/7175.583ff733.chunk.js +0 -1
  217. streamlit/static/static/js/7602.e8abc06b.chunk.js +0 -1
  218. streamlit/static/static/js/8148.293984e0.chunk.js +0 -1
  219. streamlit/static/static/js/8427.bd0a7cf3.chunk.js +0 -1
  220. streamlit/static/static/js/8691.4211c305.chunk.js +0 -1
  221. streamlit/static/static/js/main.707da454.js +0 -2
  222. /streamlit/hello/{pages/0_Animation_Demo.py → Animation_Demo.py} +0 -0
  223. /streamlit/hello/{pages/3_DataFrame_Demo.py → Dataframe_Demo.py} +0 -0
  224. /streamlit/hello/{pages/2_Mapping_Demo.py → Mapping_Demo.py} +0 -0
  225. /streamlit/hello/{pages/1_Plotting_Demo.py → Plotting_Demo.py} +0 -0
  226. /streamlit/static/static/js/{main.707da454.js.LICENSE.txt → main.ea823277.js.LICENSE.txt} +0 -0
  227. {streamlit_nightly-1.35.1.dev20240601.data → streamlit_nightly-1.35.1.dev20240604.data}/scripts/streamlit.cmd +0 -0
  228. {streamlit_nightly-1.35.1.dev20240601.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/WHEEL +0 -0
  229. {streamlit_nightly-1.35.1.dev20240601.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/entry_points.txt +0 -0
  230. {streamlit_nightly-1.35.1.dev20240601.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/top_level.txt +0 -0
@@ -16,6 +16,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
+
19
20
  import builtins
20
21
  import collections.abc
21
22
  import google.protobuf.descriptor
@@ -47,6 +48,7 @@ else:
47
48
 
48
49
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
49
50
 
51
+ @typing.final
50
52
  class ForwardMsg(google.protobuf.message.Message):
51
53
  """A message sent from Proxy to the browser"""
52
54
 
@@ -56,7 +58,7 @@ class ForwardMsg(google.protobuf.message.Message):
56
58
  ValueType = typing.NewType("ValueType", builtins.int)
57
59
  V: typing_extensions.TypeAlias = ValueType
58
60
 
59
- class _ScriptFinishedStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ForwardMsg._ScriptFinishedStatus.ValueType], builtins.type): # noqa: F821
61
+ class _ScriptFinishedStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ForwardMsg._ScriptFinishedStatus.ValueType], builtins.type):
60
62
  DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
61
63
  FINISHED_SUCCESSFULLY: ForwardMsg._ScriptFinishedStatus.ValueType # 0
62
64
  """The script compiled and ran."""
@@ -101,21 +103,34 @@ class ForwardMsg(google.protobuf.message.Message):
101
103
  DEBUG_LAST_BACKMSG_ID_FIELD_NUMBER: builtins.int
102
104
  hash: builtins.str
103
105
  """A hash that uniquely identifies this ForwardMsg, for caching."""
106
+ script_finished: global___ForwardMsg.ScriptFinishedStatus.ValueType
107
+ ref_hash: builtins.str
108
+ """A reference to a ForwardMsg that has already been delivered.
109
+ The client should substitute the message with the given hash
110
+ for this one. If the client does not have the referenced message
111
+ in its cache, it can retrieve it from the server.
112
+ """
113
+ debug_last_backmsg_id: builtins.str
114
+ """The ID of the last BackMsg that we received before sending this
115
+ ForwardMsg. As its name suggests, this field should only be used for
116
+ testing.
117
+ """
104
118
  @property
105
119
  def metadata(self) -> global___ForwardMsgMetadata:
106
120
  """Contains 'non-payload' ForwardMsg data that isn't cached for the purposes
107
121
  of ForwardMsg de-duping.
108
122
  """
123
+
109
124
  @property
110
125
  def new_session(self) -> streamlit.proto.NewSession_pb2.NewSession:
111
126
  """App lifecycle messages."""
127
+
112
128
  @property
113
129
  def delta(self) -> streamlit.proto.Delta_pb2.Delta: ...
114
130
  @property
115
131
  def page_info_changed(self) -> streamlit.proto.PageInfo_pb2.PageInfo: ...
116
132
  @property
117
133
  def page_config_changed(self) -> streamlit.proto.PageConfig_pb2.PageConfig: ...
118
- script_finished: global___ForwardMsg.ScriptFinishedStatus.ValueType
119
134
  @property
120
135
  def git_info_changed(self) -> streamlit.proto.GitInfo_pb2.GitInfo: ...
121
136
  @property
@@ -123,11 +138,13 @@ class ForwardMsg(google.protobuf.message.Message):
123
138
  @property
124
139
  def session_status_changed(self) -> streamlit.proto.SessionStatus_pb2.SessionStatus:
125
140
  """Status change and event messages."""
141
+
126
142
  @property
127
143
  def session_event(self) -> streamlit.proto.SessionEvent_pb2.SessionEvent: ...
128
144
  @property
129
145
  def navigation(self) -> streamlit.proto.Navigation_pb2.Navigation:
130
146
  """Other messages."""
147
+
131
148
  @property
132
149
  def page_not_found(self) -> streamlit.proto.PageNotFound_pb2.PageNotFound: ...
133
150
  @property
@@ -139,20 +156,11 @@ class ForwardMsg(google.protobuf.message.Message):
139
156
  @property
140
157
  def logo(self) -> streamlit.proto.Logo_pb2.Logo:
141
158
  """App logo message"""
159
+
142
160
  @property
143
161
  def parent_message(self) -> streamlit.proto.ParentMessage_pb2.ParentMessage:
144
162
  """Platform - message to host"""
145
- ref_hash: builtins.str
146
- """A reference to a ForwardMsg that has already been delivered.
147
- The client should substitute the message with the given hash
148
- for this one. If the client does not have the referenced message
149
- in its cache, it can retrieve it from the server.
150
- """
151
- debug_last_backmsg_id: builtins.str
152
- """The ID of the last BackMsg that we received before sending this
153
- ForwardMsg. As its name suggests, this field should only be used for
154
- testing.
155
- """
163
+
156
164
  def __init__(
157
165
  self,
158
166
  *,
@@ -177,12 +185,13 @@ class ForwardMsg(google.protobuf.message.Message):
177
185
  ref_hash: builtins.str = ...,
178
186
  debug_last_backmsg_id: builtins.str = ...,
179
187
  ) -> None: ...
180
- def HasField(self, field_name: typing_extensions.Literal["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: ...
181
- def ClearField(self, field_name: typing_extensions.Literal["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: ...
182
- def WhichOneof(self, oneof_group: typing_extensions.Literal["type", b"type"]) -> typing_extensions.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", "parent_message", "ref_hash"] | None: ...
188
+ def HasField(self, field_name: typing.Literal["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: ...
189
+ def ClearField(self, field_name: typing.Literal["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: ...
190
+ 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", "parent_message", "ref_hash"] | None: ...
183
191
 
184
192
  global___ForwardMsg = ForwardMsg
185
193
 
194
+ @typing.final
186
195
  class ForwardMsgMetadata(google.protobuf.message.Message):
187
196
  """ForwardMsgMetadata contains all data that does _not_ get hashed (or cached)
188
197
  in our ForwardMsgCache. (That is, when we cache a ForwardMsg, we clear its
@@ -201,19 +210,21 @@ class ForwardMsgMetadata(google.protobuf.message.Message):
201
210
  """If this is set, the server will have cached this message,
202
211
  and a client that receives it should do the same.
203
212
  """
213
+ active_script_hash: builtins.str
214
+ """active_script_hash the forward message is associated from.
215
+ For multipage apps v1, this will always be the page file running
216
+ For multipage apps v2, this can be the main script or the page script
217
+ """
204
218
  @property
205
219
  def delta_path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
206
220
  """The path that identifies a delta's location in the report tree.
207
221
  Only set for Delta messages.
208
222
  """
223
+
209
224
  @property
210
225
  def element_dimension_spec(self) -> global___ElementDimensionSpec:
211
226
  """DEPRECATED: This is not used anymore."""
212
- active_script_hash: builtins.str
213
- """active_script_hash the forward message is associated from.
214
- For multipage apps v1, this will always be the page file running
215
- For multipage apps v2, this can be the main script or the page script
216
- """
227
+
217
228
  def __init__(
218
229
  self,
219
230
  *,
@@ -222,11 +233,12 @@ class ForwardMsgMetadata(google.protobuf.message.Message):
222
233
  element_dimension_spec: global___ElementDimensionSpec | None = ...,
223
234
  active_script_hash: builtins.str = ...,
224
235
  ) -> None: ...
225
- def HasField(self, field_name: typing_extensions.Literal["element_dimension_spec", b"element_dimension_spec"]) -> builtins.bool: ...
226
- def ClearField(self, field_name: typing_extensions.Literal["active_script_hash", b"active_script_hash", "cacheable", b"cacheable", "delta_path", b"delta_path", "element_dimension_spec", b"element_dimension_spec"]) -> None: ...
236
+ def HasField(self, field_name: typing.Literal["element_dimension_spec", b"element_dimension_spec"]) -> builtins.bool: ...
237
+ 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: ...
227
238
 
228
239
  global___ForwardMsgMetadata = ForwardMsgMetadata
229
240
 
241
+ @typing.final
230
242
  class ElementDimensionSpec(google.protobuf.message.Message):
231
243
  """DEPRECATED: This is not used anymore.
232
244
  Specifies the dimensions for the element
@@ -246,6 +258,6 @@ class ElementDimensionSpec(google.protobuf.message.Message):
246
258
  width: builtins.int = ...,
247
259
  height: builtins.int = ...,
248
260
  ) -> None: ...
249
- def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "width", b"width"]) -> None: ...
261
+ def ClearField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> None: ...
250
262
 
251
263
  global___ElementDimensionSpec = ElementDimensionSpec
@@ -1,11 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: streamlit/proto/GitInfo.proto
4
+ # Protobuf Python Version: 5.26.1
4
5
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
6
  from google.protobuf import descriptor as _descriptor
7
7
  from google.protobuf import descriptor_pool as _descriptor_pool
8
8
  from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
9
10
  # @@protoc_insertion_point(imports)
10
11
 
11
12
  _sym_db = _symbol_database.Default()
@@ -15,14 +16,14 @@ _sym_db = _symbol_database.Default()
15
16
 
16
17
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/GitInfo.proto\"\xd6\x01\n\x07GitInfo\x12\x12\n\nrepository\x18\x01 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x02 \x01(\t\x12\x0e\n\x06module\x18\x03 \x01(\t\x12\x17\n\x0funtracked_files\x18\x04 \x03(\t\x12\x19\n\x11uncommitted_files\x18\x05 \x03(\t\x12!\n\x05state\x18\x06 \x01(\x0e\x32\x12.GitInfo.GitStates\"@\n\tGitStates\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x11\n\rHEAD_DETACHED\x10\x01\x12\x13\n\x0f\x41HEAD_OF_REMOTE\x10\x02\x42,\n\x1c\x63om.snowflake.apps.streamlitB\x0cGitInfoProtob\x06proto3')
17
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.GitInfo_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014GitInfoProto'
24
- _GITINFO._serialized_start=34
25
- _GITINFO._serialized_end=248
26
- _GITINFO_GITSTATES._serialized_start=184
27
- _GITINFO_GITSTATES._serialized_end=248
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.GitInfo_pb2', _globals)
22
+ if not _descriptor._USE_C_DESCRIPTORS:
23
+ _globals['DESCRIPTOR']._loaded_options = None
24
+ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014GitInfoProto'
25
+ _globals['_GITINFO']._serialized_start=34
26
+ _globals['_GITINFO']._serialized_end=248
27
+ _globals['_GITINFO_GITSTATES']._serialized_start=184
28
+ _globals['_GITINFO_GITSTATES']._serialized_end=248
28
29
  # @@protoc_insertion_point(module_scope)
@@ -16,6 +16,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
+
19
20
  import builtins
20
21
  import collections.abc
21
22
  import google.protobuf.descriptor
@@ -32,6 +33,7 @@ else:
32
33
 
33
34
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
34
35
 
36
+ @typing.final
35
37
  class GitInfo(google.protobuf.message.Message):
36
38
  """Message used to update page metadata."""
37
39
 
@@ -41,7 +43,7 @@ class GitInfo(google.protobuf.message.Message):
41
43
  ValueType = typing.NewType("ValueType", builtins.int)
42
44
  V: typing_extensions.TypeAlias = ValueType
43
45
 
44
- class _GitStatesEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[GitInfo._GitStates.ValueType], builtins.type): # noqa: F821
46
+ class _GitStatesEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[GitInfo._GitStates.ValueType], builtins.type):
45
47
  DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
46
48
  DEFAULT: GitInfo._GitStates.ValueType # 0
47
49
  HEAD_DETACHED: GitInfo._GitStates.ValueType # 1
@@ -61,11 +63,11 @@ class GitInfo(google.protobuf.message.Message):
61
63
  repository: builtins.str
62
64
  branch: builtins.str
63
65
  module: builtins.str
66
+ state: global___GitInfo.GitStates.ValueType
64
67
  @property
65
68
  def untracked_files(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
66
69
  @property
67
70
  def uncommitted_files(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
68
- state: global___GitInfo.GitStates.ValueType
69
71
  def __init__(
70
72
  self,
71
73
  *,
@@ -76,6 +78,6 @@ class GitInfo(google.protobuf.message.Message):
76
78
  uncommitted_files: collections.abc.Iterable[builtins.str] | None = ...,
77
79
  state: global___GitInfo.GitStates.ValueType = ...,
78
80
  ) -> None: ...
79
- def ClearField(self, field_name: typing_extensions.Literal["branch", b"branch", "module", b"module", "repository", b"repository", "state", b"state", "uncommitted_files", b"uncommitted_files", "untracked_files", b"untracked_files"]) -> None: ...
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: ...
80
82
 
81
83
  global___GitInfo = GitInfo
@@ -1,11 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: streamlit/proto/GraphVizChart.proto
4
+ # Protobuf Python Version: 5.26.1
4
5
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
6
  from google.protobuf import descriptor as _descriptor
7
7
  from google.protobuf import descriptor_pool as _descriptor_pool
8
8
  from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
9
10
  # @@protoc_insertion_point(imports)
10
11
 
11
12
  _sym_db = _symbol_database.Default()
@@ -15,12 +16,12 @@ _sym_db = _symbol_database.Default()
15
16
 
16
17
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#streamlit/proto/GraphVizChart.proto\"j\n\rGraphVizChart\x12\x0c\n\x04spec\x18\x01 \x01(\t\x12\x1b\n\x13use_container_width\x18\x04 \x01(\x08\x12\x12\n\nelement_id\x18\x05 \x01(\t\x12\x0e\n\x06\x65ngine\x18\x06 \x01(\tJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04\x42\x32\n\x1c\x63om.snowflake.apps.streamlitB\x12GraphVizChartProtob\x06proto3')
17
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.GraphVizChart_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\022GraphVizChartProto'
24
- _GRAPHVIZCHART._serialized_start=39
25
- _GRAPHVIZCHART._serialized_end=145
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.GraphVizChart_pb2', _globals)
22
+ if not _descriptor._USE_C_DESCRIPTORS:
23
+ _globals['DESCRIPTOR']._loaded_options = None
24
+ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\022GraphVizChartProto'
25
+ _globals['_GRAPHVIZCHART']._serialized_start=39
26
+ _globals['_GRAPHVIZCHART']._serialized_end=145
26
27
  # @@protoc_insertion_point(module_scope)
@@ -16,18 +16,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
+
19
20
  import builtins
20
21
  import google.protobuf.descriptor
21
22
  import google.protobuf.message
22
- import sys
23
-
24
- if sys.version_info >= (3, 8):
25
- import typing as typing_extensions
26
- else:
27
- import typing_extensions
23
+ import typing
28
24
 
29
25
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
30
26
 
27
+ @typing.final
31
28
  class GraphVizChart(google.protobuf.message.Message):
32
29
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
33
30
 
@@ -51,6 +48,6 @@ class GraphVizChart(google.protobuf.message.Message):
51
48
  element_id: builtins.str = ...,
52
49
  engine: builtins.str = ...,
53
50
  ) -> None: ...
54
- def ClearField(self, field_name: typing_extensions.Literal["element_id", b"element_id", "engine", b"engine", "spec", b"spec", "use_container_width", b"use_container_width"]) -> None: ...
51
+ 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: ...
55
52
 
56
53
  global___GraphVizChart = GraphVizChart
@@ -1,11 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: streamlit/proto/Heading.proto
4
+ # Protobuf Python Version: 5.26.1
4
5
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
6
  from google.protobuf import descriptor as _descriptor
7
7
  from google.protobuf import descriptor_pool as _descriptor_pool
8
8
  from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
9
10
  # @@protoc_insertion_point(imports)
10
11
 
11
12
  _sym_db = _symbol_database.Default()
@@ -15,12 +16,12 @@ _sym_db = _symbol_database.Default()
15
16
 
16
17
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/Heading.proto\"h\n\x07Heading\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0e\n\x06\x61nchor\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\t\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x13\n\x0bhide_anchor\x18\x05 \x01(\x08\x12\x0f\n\x07\x64ivider\x18\x06 \x01(\tB,\n\x1c\x63om.snowflake.apps.streamlitB\x0cHeadingProtob\x06proto3')
17
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Heading_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014HeadingProto'
24
- _HEADING._serialized_start=33
25
- _HEADING._serialized_end=137
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Heading_pb2', _globals)
22
+ if not _descriptor._USE_C_DESCRIPTORS:
23
+ _globals['DESCRIPTOR']._loaded_options = None
24
+ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014HeadingProto'
25
+ _globals['_HEADING']._serialized_start=33
26
+ _globals['_HEADING']._serialized_end=137
26
27
  # @@protoc_insertion_point(module_scope)
@@ -16,18 +16,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
+
19
20
  import builtins
20
21
  import google.protobuf.descriptor
21
22
  import google.protobuf.message
22
- import sys
23
-
24
- if sys.version_info >= (3, 8):
25
- import typing as typing_extensions
26
- else:
27
- import typing_extensions
23
+ import typing
28
24
 
29
25
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
30
26
 
27
+ @typing.final
31
28
  class Heading(google.protobuf.message.Message):
32
29
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
33
30
 
@@ -54,6 +51,6 @@ class Heading(google.protobuf.message.Message):
54
51
  hide_anchor: builtins.bool = ...,
55
52
  divider: builtins.str = ...,
56
53
  ) -> None: ...
57
- def ClearField(self, field_name: typing_extensions.Literal["anchor", b"anchor", "body", b"body", "divider", b"divider", "help", b"help", "hide_anchor", b"hide_anchor", "tag", b"tag"]) -> None: ...
54
+ 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: ...
58
55
 
59
56
  global___Heading = Heading
@@ -1,11 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: streamlit/proto/Html.proto
4
+ # Protobuf Python Version: 5.26.1
4
5
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
6
  from google.protobuf import descriptor as _descriptor
7
7
  from google.protobuf import descriptor_pool as _descriptor_pool
8
8
  from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
9
10
  # @@protoc_insertion_point(imports)
10
11
 
11
12
  _sym_db = _symbol_database.Default()
@@ -15,12 +16,12 @@ _sym_db = _symbol_database.Default()
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
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Html_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\tHtmlProto'
24
- _HTML._serialized_start=30
25
- _HTML._serialized_end=50
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Html_pb2', _globals)
22
+ if not _descriptor._USE_C_DESCRIPTORS:
23
+ _globals['DESCRIPTOR']._loaded_options = None
24
+ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\tHtmlProto'
25
+ _globals['_HTML']._serialized_start=30
26
+ _globals['_HTML']._serialized_end=50
26
27
  # @@protoc_insertion_point(module_scope)
@@ -16,18 +16,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
+
19
20
  import builtins
20
21
  import google.protobuf.descriptor
21
22
  import google.protobuf.message
22
- import sys
23
-
24
- if sys.version_info >= (3, 8):
25
- import typing as typing_extensions
26
- else:
27
- import typing_extensions
23
+ import typing
28
24
 
29
25
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
30
26
 
27
+ @typing.final
31
28
  class Html(google.protobuf.message.Message):
32
29
  """st.html"""
33
30
 
@@ -40,6 +37,6 @@ class Html(google.protobuf.message.Message):
40
37
  *,
41
38
  body: builtins.str = ...,
42
39
  ) -> None: ...
43
- def ClearField(self, field_name: typing_extensions.Literal["body", b"body"]) -> None: ...
40
+ def ClearField(self, field_name: typing.Literal["body", b"body"]) -> None: ...
44
41
 
45
42
  global___Html = Html
@@ -1,11 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: streamlit/proto/IFrame.proto
4
+ # Protobuf Python Version: 5.26.1
4
5
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
6
  from google.protobuf import descriptor as _descriptor
7
7
  from google.protobuf import descriptor_pool as _descriptor_pool
8
8
  from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
9
10
  # @@protoc_insertion_point(imports)
10
11
 
11
12
  _sym_db = _symbol_database.Default()
@@ -15,12 +16,12 @@ _sym_db = _symbol_database.Default()
15
16
 
16
17
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cstreamlit/proto/IFrame.proto\"v\n\x06IFrame\x12\r\n\x03src\x18\x01 \x01(\tH\x00\x12\x10\n\x06srcdoc\x18\x02 \x01(\tH\x00\x12\r\n\x05width\x18\x03 \x01(\x02\x12\x11\n\thas_width\x18\x04 \x01(\x08\x12\x0e\n\x06height\x18\x05 \x01(\x02\x12\x11\n\tscrolling\x18\x07 \x01(\x08\x42\x06\n\x04typeB+\n\x1c\x63om.snowflake.apps.streamlitB\x0bIFrameProtob\x06proto3')
17
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.IFrame_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\013IFrameProto'
24
- _IFRAME._serialized_start=32
25
- _IFRAME._serialized_end=150
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.IFrame_pb2', _globals)
22
+ if not _descriptor._USE_C_DESCRIPTORS:
23
+ _globals['DESCRIPTOR']._loaded_options = None
24
+ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\013IFrameProto'
25
+ _globals['_IFRAME']._serialized_start=32
26
+ _globals['_IFRAME']._serialized_end=150
26
27
  # @@protoc_insertion_point(module_scope)
@@ -16,18 +16,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
+
19
20
  import builtins
20
21
  import google.protobuf.descriptor
21
22
  import google.protobuf.message
22
- import sys
23
-
24
- if sys.version_info >= (3, 8):
25
- import typing as typing_extensions
26
- else:
27
- import typing_extensions
23
+ import typing
28
24
 
29
25
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
30
26
 
27
+ @typing.final
31
28
  class IFrame(google.protobuf.message.Message):
32
29
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
33
30
 
@@ -55,8 +52,8 @@ class IFrame(google.protobuf.message.Message):
55
52
  height: builtins.float = ...,
56
53
  scrolling: builtins.bool = ...,
57
54
  ) -> None: ...
58
- def HasField(self, field_name: typing_extensions.Literal["src", b"src", "srcdoc", b"srcdoc", "type", b"type"]) -> builtins.bool: ...
59
- def ClearField(self, field_name: typing_extensions.Literal["has_width", b"has_width", "height", b"height", "scrolling", b"scrolling", "src", b"src", "srcdoc", b"srcdoc", "type", b"type", "width", b"width"]) -> None: ...
60
- def WhichOneof(self, oneof_group: typing_extensions.Literal["type", b"type"]) -> typing_extensions.Literal["src", "srcdoc"] | None: ...
55
+ def HasField(self, field_name: typing.Literal["src", b"src", "srcdoc", b"srcdoc", "type", b"type"]) -> builtins.bool: ...
56
+ def ClearField(self, field_name: typing.Literal["has_width", b"has_width", "height", b"height", "scrolling", b"scrolling", "src", b"src", "srcdoc", b"srcdoc", "type", b"type", "width", b"width"]) -> None: ...
57
+ def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["src", "srcdoc"] | None: ...
61
58
 
62
59
  global___IFrame = IFrame
@@ -1,11 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: streamlit/proto/Image.proto
4
+ # Protobuf Python Version: 5.26.1
4
5
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
6
  from google.protobuf import descriptor as _descriptor
7
7
  from google.protobuf import descriptor_pool as _descriptor_pool
8
8
  from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
9
10
  # @@protoc_insertion_point(imports)
10
11
 
11
12
  _sym_db = _symbol_database.Default()
@@ -15,14 +16,14 @@ _sym_db = _symbol_database.Default()
15
16
 
16
17
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Image.proto\"A\n\x05Image\x12\x0b\n\x03url\x18\x03 \x01(\t\x12\x0f\n\x07\x63\x61ption\x18\x02 \x01(\t\x12\x0e\n\x06markup\x18\x04 \x01(\tJ\x04\x08\x01\x10\x02R\x04\x64\x61ta\"0\n\tImageList\x12\x14\n\x04imgs\x18\x01 \x03(\x0b\x32\x06.Image\x12\r\n\x05width\x18\x02 \x01(\x05\x42*\n\x1c\x63om.snowflake.apps.streamlitB\nImageProtob\x06proto3')
17
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Image_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nImageProto'
24
- _IMAGE._serialized_start=31
25
- _IMAGE._serialized_end=96
26
- _IMAGELIST._serialized_start=98
27
- _IMAGELIST._serialized_end=146
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Image_pb2', _globals)
22
+ if not _descriptor._USE_C_DESCRIPTORS:
23
+ _globals['DESCRIPTOR']._loaded_options = None
24
+ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nImageProto'
25
+ _globals['_IMAGE']._serialized_start=31
26
+ _globals['_IMAGE']._serialized_end=96
27
+ _globals['_IMAGELIST']._serialized_start=98
28
+ _globals['_IMAGELIST']._serialized_end=146
28
29
  # @@protoc_insertion_point(module_scope)
@@ -16,20 +16,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
+
19
20
  import builtins
20
21
  import collections.abc
21
22
  import google.protobuf.descriptor
22
23
  import google.protobuf.internal.containers
23
24
  import google.protobuf.message
24
- import sys
25
-
26
- if sys.version_info >= (3, 8):
27
- import typing as typing_extensions
28
- else:
29
- import typing_extensions
25
+ import typing
30
26
 
31
27
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
32
28
 
29
+ @typing.final
33
30
  class Image(google.protobuf.message.Message):
34
31
  """An image which can be displayed on the screen."""
35
32
 
@@ -51,10 +48,11 @@ class Image(google.protobuf.message.Message):
51
48
  caption: builtins.str = ...,
52
49
  markup: builtins.str = ...,
53
50
  ) -> None: ...
54
- def ClearField(self, field_name: typing_extensions.Literal["caption", b"caption", "markup", b"markup", "url", b"url"]) -> None: ...
51
+ def ClearField(self, field_name: typing.Literal["caption", b"caption", "markup", b"markup", "url", b"url"]) -> None: ...
55
52
 
56
53
  global___Image = Image
57
54
 
55
+ @typing.final
58
56
  class ImageList(google.protobuf.message.Message):
59
57
  """A set of images."""
60
58
 
@@ -62,8 +60,6 @@ class ImageList(google.protobuf.message.Message):
62
60
 
63
61
  IMGS_FIELD_NUMBER: builtins.int
64
62
  WIDTH_FIELD_NUMBER: builtins.int
65
- @property
66
- def imgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Image]: ...
67
63
  width: builtins.int
68
64
  """The width of each image.
69
65
  >0 sets the image width explicitly
@@ -71,12 +67,14 @@ class ImageList(google.protobuf.message.Message):
71
67
  -2 means use the column width
72
68
  -3 means use the smaller of image width & column width
73
69
  """
70
+ @property
71
+ def imgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Image]: ...
74
72
  def __init__(
75
73
  self,
76
74
  *,
77
75
  imgs: collections.abc.Iterable[global___Image] | None = ...,
78
76
  width: builtins.int = ...,
79
77
  ) -> None: ...
80
- def ClearField(self, field_name: typing_extensions.Literal["imgs", b"imgs", "width", b"width"]) -> None: ...
78
+ def ClearField(self, field_name: typing.Literal["imgs", b"imgs", "width", b"width"]) -> None: ...
81
79
 
82
80
  global___ImageList = ImageList