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
@@ -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/AutoRerun.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,11 +16,11 @@ _sym_db = _symbol_database.Default()
15
16
 
16
17
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/AutoRerun.proto\"2\n\tAutoRerun\x12\x10\n\x08interval\x18\x01 \x01(\x02\x12\x13\n\x0b\x66ragment_id\x18\x02 \x01(\tb\x06proto3')
17
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.AutoRerun_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- _AUTORERUN._serialized_start=35
24
- _AUTORERUN._serialized_end=85
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.AutoRerun_pb2', _globals)
22
+ if not _descriptor._USE_C_DESCRIPTORS:
23
+ DESCRIPTOR._loaded_options = None
24
+ _globals['_AUTORERUN']._serialized_start=35
25
+ _globals['_AUTORERUN']._serialized_end=85
25
26
  # @@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 AutoRerun(google.protobuf.message.Message):
32
29
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
33
30
 
@@ -43,6 +40,6 @@ class AutoRerun(google.protobuf.message.Message):
43
40
  interval: builtins.float = ...,
44
41
  fragment_id: builtins.str = ...,
45
42
  ) -> None: ...
46
- def ClearField(self, field_name: typing_extensions.Literal["fragment_id", b"fragment_id", "interval", b"interval"]) -> None: ...
43
+ def ClearField(self, field_name: typing.Literal["fragment_id", b"fragment_id", "interval", b"interval"]) -> None: ...
47
44
 
48
45
  global___AutoRerun = AutoRerun
@@ -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/BackMsg.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()
@@ -17,12 +18,12 @@ from streamlit.proto import Common_pb2 as streamlit_dot_proto_dot_Common__pb2
17
18
 
18
19
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/BackMsg.proto\x1a!streamlit/proto/ClientState.proto\x1a\x1cstreamlit/proto/Common.proto\"\xf2\x02\n\x07\x42\x61\x63kMsg\x12\x15\n\x0b\x63lear_cache\x18\x05 \x01(\x08H\x00\x12\x19\n\x0fset_run_on_save\x18\x06 \x01(\x08H\x00\x12\x15\n\x0bstop_script\x18\x07 \x01(\x08H\x00\x12$\n\x0crerun_script\x18\x0b \x01(\x0b\x32\x0c.ClientStateH\x00\x12\x17\n\rload_git_info\x18\x0c \x01(\x08H\x00\x12$\n\x1a\x64\x65\x62ug_disconnect_websocket\x18\x0e \x01(\x08H\x00\x12 \n\x16\x64\x65\x62ug_shutdown_runtime\x18\x0f \x01(\x08H\x00\x12-\n\x11\x66ile_urls_request\x18\x10 \x01(\x0b\x32\x10.FileURLsRequestH\x00\x12\x17\n\rapp_heartbeat\x18\x11 \x01(\x08H\x00\x12\x1d\n\x15\x64\x65\x62ug_last_backmsg_id\x18\r \x01(\tB\x06\n\x04typeJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\x42,\n\x1c\x63om.snowflake.apps.streamlitB\x0c\x42\x61\x63kMsgProtob\x06proto3')
19
20
 
20
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
21
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.BackMsg_pb2', globals())
22
- if _descriptor._USE_C_DESCRIPTORS == False:
23
-
24
- DESCRIPTOR._options = None
25
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014BackMsgProto'
26
- _BACKMSG._serialized_start=99
27
- _BACKMSG._serialized_end=469
21
+ _globals = globals()
22
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.BackMsg_pb2', _globals)
24
+ if not _descriptor._USE_C_DESCRIPTORS:
25
+ _globals['DESCRIPTOR']._loaded_options = None
26
+ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014BackMsgProto'
27
+ _globals['_BACKMSG']._serialized_start=99
28
+ _globals['_BACKMSG']._serialized_end=469
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 google.protobuf.descriptor
21
22
  import google.protobuf.message
22
23
  import streamlit.proto.ClientState_pb2
23
24
  import streamlit.proto.Common_pb2
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 BackMsg(google.protobuf.message.Message):
34
31
  """A message from the browser to the server."""
35
32
 
@@ -57,11 +54,6 @@ class BackMsg(google.protobuf.message.Message):
57
54
  """
58
55
  stop_script: builtins.bool
59
56
  """Requests that the script's execution be stopped"""
60
- @property
61
- def rerun_script(self) -> streamlit.proto.ClientState_pb2.ClientState:
62
- """DEPRECATED. Set to true to ask the server to close the connection
63
- bool close_connection = 10;
64
- """
65
57
  load_git_info: builtins.bool
66
58
  debug_disconnect_websocket: builtins.bool
67
59
  """Test and dev-mode only field used to ask the server to disconnect the
@@ -73,11 +65,6 @@ class BackMsg(google.protobuf.message.Message):
73
65
  runtime. This message is IGNORED unless the runtime is configured with
74
66
  global.developmentMode = True.
75
67
  """
76
- @property
77
- def file_urls_request(self) -> streamlit.proto.Common_pb2.FileURLsRequest:
78
- """Requests that the server generate URLs for getting/uploading/deleting
79
- files for the `st.file_uploader` widget
80
- """
81
68
  app_heartbeat: builtins.bool
82
69
  """Sends an app heartbeat message through the websocket"""
83
70
  debug_last_backmsg_id: builtins.str
@@ -85,6 +72,18 @@ class BackMsg(google.protobuf.message.Message):
85
72
  that are sent to the client due to it. As its name suggests, this field
86
73
  should only be used for testing.
87
74
  """
75
+ @property
76
+ def rerun_script(self) -> streamlit.proto.ClientState_pb2.ClientState:
77
+ """DEPRECATED. Set to true to ask the server to close the connection
78
+ bool close_connection = 10;
79
+ """
80
+
81
+ @property
82
+ def file_urls_request(self) -> streamlit.proto.Common_pb2.FileURLsRequest:
83
+ """Requests that the server generate URLs for getting/uploading/deleting
84
+ files for the `st.file_uploader` widget
85
+ """
86
+
88
87
  def __init__(
89
88
  self,
90
89
  *,
@@ -99,8 +98,8 @@ class BackMsg(google.protobuf.message.Message):
99
98
  app_heartbeat: builtins.bool = ...,
100
99
  debug_last_backmsg_id: builtins.str = ...,
101
100
  ) -> None: ...
102
- def HasField(self, field_name: typing_extensions.Literal["app_heartbeat", b"app_heartbeat", "clear_cache", b"clear_cache", "debug_disconnect_websocket", b"debug_disconnect_websocket", "debug_shutdown_runtime", b"debug_shutdown_runtime", "file_urls_request", b"file_urls_request", "load_git_info", b"load_git_info", "rerun_script", b"rerun_script", "set_run_on_save", b"set_run_on_save", "stop_script", b"stop_script", "type", b"type"]) -> builtins.bool: ...
103
- def ClearField(self, field_name: typing_extensions.Literal["app_heartbeat", b"app_heartbeat", "clear_cache", b"clear_cache", "debug_disconnect_websocket", b"debug_disconnect_websocket", "debug_last_backmsg_id", b"debug_last_backmsg_id", "debug_shutdown_runtime", b"debug_shutdown_runtime", "file_urls_request", b"file_urls_request", "load_git_info", b"load_git_info", "rerun_script", b"rerun_script", "set_run_on_save", b"set_run_on_save", "stop_script", b"stop_script", "type", b"type"]) -> None: ...
104
- def WhichOneof(self, oneof_group: typing_extensions.Literal["type", b"type"]) -> typing_extensions.Literal["clear_cache", "set_run_on_save", "stop_script", "rerun_script", "load_git_info", "debug_disconnect_websocket", "debug_shutdown_runtime", "file_urls_request", "app_heartbeat"] | None: ...
101
+ def HasField(self, field_name: typing.Literal["app_heartbeat", b"app_heartbeat", "clear_cache", b"clear_cache", "debug_disconnect_websocket", b"debug_disconnect_websocket", "debug_shutdown_runtime", b"debug_shutdown_runtime", "file_urls_request", b"file_urls_request", "load_git_info", b"load_git_info", "rerun_script", b"rerun_script", "set_run_on_save", b"set_run_on_save", "stop_script", b"stop_script", "type", b"type"]) -> builtins.bool: ...
102
+ def ClearField(self, field_name: typing.Literal["app_heartbeat", b"app_heartbeat", "clear_cache", b"clear_cache", "debug_disconnect_websocket", b"debug_disconnect_websocket", "debug_last_backmsg_id", b"debug_last_backmsg_id", "debug_shutdown_runtime", b"debug_shutdown_runtime", "file_urls_request", b"file_urls_request", "load_git_info", b"load_git_info", "rerun_script", b"rerun_script", "set_run_on_save", b"set_run_on_save", "stop_script", b"stop_script", "type", b"type"]) -> None: ...
103
+ def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["clear_cache", "set_run_on_save", "stop_script", "rerun_script", "load_git_info", "debug_disconnect_websocket", "debug_shutdown_runtime", "file_urls_request", "app_heartbeat"] | None: ...
105
104
 
106
105
  global___BackMsg = BackMsg
@@ -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/Balloons.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\x1estreamlit/proto/Balloons.proto\"$\n\x08\x42\x61lloons\x12\x0c\n\x04show\x18\x03 \x01(\x08J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\x42-\n\x1c\x63om.snowflake.apps.streamlitB\rBalloonsProtob\x06proto3')
17
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Balloons_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\rBalloonsProto'
24
- _BALLOONS._serialized_start=34
25
- _BALLOONS._serialized_end=70
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Balloons_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\rBalloonsProto'
25
+ _globals['_BALLOONS']._serialized_start=34
26
+ _globals['_BALLOONS']._serialized_end=70
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 Balloons(google.protobuf.message.Message):
32
29
  """A python empty."""
33
30
 
@@ -41,6 +38,6 @@ class Balloons(google.protobuf.message.Message):
41
38
  *,
42
39
  show: builtins.bool = ...,
43
40
  ) -> None: ...
44
- def ClearField(self, field_name: typing_extensions.Literal["show", b"show"]) -> None: ...
41
+ def ClearField(self, field_name: typing.Literal["show", b"show"]) -> None: ...
45
42
 
46
43
  global___Balloons = Balloons
@@ -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/Block.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,36 +16,36 @@ _sym_db = _symbol_database.Default()
15
16
 
16
17
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Block.proto\"\xbe\x08\n\x05\x42lock\x12#\n\x08vertical\x18\x01 \x01(\x0b\x32\x0f.Block.VerticalH\x00\x12\'\n\nhorizontal\x18\x02 \x01(\x0b\x32\x11.Block.HorizontalH\x00\x12\x1f\n\x06\x63olumn\x18\x03 \x01(\x0b\x32\r.Block.ColumnH\x00\x12\'\n\nexpandable\x18\x04 \x01(\x0b\x32\x11.Block.ExpandableH\x00\x12\x1b\n\x04\x66orm\x18\x05 \x01(\x0b\x32\x0b.Block.FormH\x00\x12,\n\rtab_container\x18\x06 \x01(\x0b\x32\x13.Block.TabContainerH\x00\x12\x19\n\x03tab\x18\x07 \x01(\x0b\x32\n.Block.TabH\x00\x12*\n\x0c\x63hat_message\x18\t \x01(\x0b\x32\x12.Block.ChatMessageH\x00\x12!\n\x07popover\x18\n \x01(\x0b\x32\x0e.Block.PopoverH\x00\x12\x1f\n\x06\x64ialog\x18\x0b \x01(\x0b\x32\r.Block.DialogH\x00\x12\x13\n\x0b\x61llow_empty\x18\x08 \x01(\x08\x1a*\n\x08Vertical\x12\x0e\n\x06\x62order\x18\x01 \x01(\x08\x12\x0e\n\x06height\x18\x02 \x01(\r\x1a\x19\n\nHorizontal\x12\x0b\n\x03gap\x18\x01 \x01(\t\x1a%\n\x06\x43olumn\x12\x0e\n\x06weight\x18\x01 \x01(\x01\x12\x0b\n\x03gap\x18\x02 \x01(\t\x1aM\n\nExpandable\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\x08\x65xpanded\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x0c\n\x04icon\x18\x03 \x01(\tB\x0b\n\t_expanded\x1a\x9d\x01\n\x06\x44ialog\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64ismissible\x18\x02 \x01(\x08\x12(\n\x05width\x18\x03 \x01(\x0e\x32\x19.Block.Dialog.DialogWidth\x12\x14\n\x07is_open\x18\x04 \x01(\x08H\x00\x88\x01\x01\"#\n\x0b\x44ialogWidth\x12\t\n\x05SMALL\x10\x00\x12\t\n\x05LARGE\x10\x01\x42\n\n\x08_is_open\x1a@\n\x04\x46orm\x12\x0f\n\x07\x66orm_id\x18\x01 \x01(\t\x12\x17\n\x0f\x63lear_on_submit\x18\x02 \x01(\x08\x12\x0e\n\x06\x62order\x18\x03 \x01(\x08\x1a\x0e\n\x0cTabContainer\x1a\x14\n\x03Tab\x12\r\n\x05label\x18\x01 \x01(\t\x1aU\n\x07Popover\x12\r\n\x05label\x18\x01 \x01(\t\x12\x1b\n\x13use_container_width\x18\x02 \x01(\x08\x12\x0c\n\x04help\x18\x03 \x01(\t\x12\x10\n\x08\x64isabled\x18\x04 \x01(\x08\x1a\x8d\x01\n\x0b\x43hatMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61vatar\x18\x02 \x01(\t\x12\x32\n\x0b\x61vatar_type\x18\x03 \x01(\x0e\x32\x1d.Block.ChatMessage.AvatarType\",\n\nAvatarType\x12\t\n\x05IMAGE\x10\x00\x12\t\n\x05\x45MOJI\x10\x01\x12\x08\n\x04ICON\x10\x02\x42\x06\n\x04typeB*\n\x1c\x63om.snowflake.apps.streamlitB\nBlockProtob\x06proto3')
17
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Block_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nBlockProto'
24
- _BLOCK._serialized_start=32
25
- _BLOCK._serialized_end=1118
26
- _BLOCK_VERTICAL._serialized_start=428
27
- _BLOCK_VERTICAL._serialized_end=470
28
- _BLOCK_HORIZONTAL._serialized_start=472
29
- _BLOCK_HORIZONTAL._serialized_end=497
30
- _BLOCK_COLUMN._serialized_start=499
31
- _BLOCK_COLUMN._serialized_end=536
32
- _BLOCK_EXPANDABLE._serialized_start=538
33
- _BLOCK_EXPANDABLE._serialized_end=615
34
- _BLOCK_DIALOG._serialized_start=618
35
- _BLOCK_DIALOG._serialized_end=775
36
- _BLOCK_DIALOG_DIALOGWIDTH._serialized_start=728
37
- _BLOCK_DIALOG_DIALOGWIDTH._serialized_end=763
38
- _BLOCK_FORM._serialized_start=777
39
- _BLOCK_FORM._serialized_end=841
40
- _BLOCK_TABCONTAINER._serialized_start=843
41
- _BLOCK_TABCONTAINER._serialized_end=857
42
- _BLOCK_TAB._serialized_start=859
43
- _BLOCK_TAB._serialized_end=879
44
- _BLOCK_POPOVER._serialized_start=881
45
- _BLOCK_POPOVER._serialized_end=966
46
- _BLOCK_CHATMESSAGE._serialized_start=969
47
- _BLOCK_CHATMESSAGE._serialized_end=1110
48
- _BLOCK_CHATMESSAGE_AVATARTYPE._serialized_start=1066
49
- _BLOCK_CHATMESSAGE_AVATARTYPE._serialized_end=1110
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Block_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\nBlockProto'
25
+ _globals['_BLOCK']._serialized_start=32
26
+ _globals['_BLOCK']._serialized_end=1118
27
+ _globals['_BLOCK_VERTICAL']._serialized_start=428
28
+ _globals['_BLOCK_VERTICAL']._serialized_end=470
29
+ _globals['_BLOCK_HORIZONTAL']._serialized_start=472
30
+ _globals['_BLOCK_HORIZONTAL']._serialized_end=497
31
+ _globals['_BLOCK_COLUMN']._serialized_start=499
32
+ _globals['_BLOCK_COLUMN']._serialized_end=536
33
+ _globals['_BLOCK_EXPANDABLE']._serialized_start=538
34
+ _globals['_BLOCK_EXPANDABLE']._serialized_end=615
35
+ _globals['_BLOCK_DIALOG']._serialized_start=618
36
+ _globals['_BLOCK_DIALOG']._serialized_end=775
37
+ _globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_start=728
38
+ _globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_end=763
39
+ _globals['_BLOCK_FORM']._serialized_start=777
40
+ _globals['_BLOCK_FORM']._serialized_end=841
41
+ _globals['_BLOCK_TABCONTAINER']._serialized_start=843
42
+ _globals['_BLOCK_TABCONTAINER']._serialized_end=857
43
+ _globals['_BLOCK_TAB']._serialized_start=859
44
+ _globals['_BLOCK_TAB']._serialized_end=879
45
+ _globals['_BLOCK_POPOVER']._serialized_start=881
46
+ _globals['_BLOCK_POPOVER']._serialized_end=966
47
+ _globals['_BLOCK_CHATMESSAGE']._serialized_start=969
48
+ _globals['_BLOCK_CHATMESSAGE']._serialized_end=1110
49
+ _globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_start=1066
50
+ _globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_end=1110
50
51
  # @@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 google.protobuf.descriptor
21
22
  import google.protobuf.internal.enum_type_wrapper
@@ -30,9 +31,11 @@ else:
30
31
 
31
32
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
32
33
 
34
+ @typing.final
33
35
  class Block(google.protobuf.message.Message):
34
36
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
35
37
 
38
+ @typing.final
36
39
  class Vertical(google.protobuf.message.Message):
37
40
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
38
41
 
@@ -47,8 +50,9 @@ class Block(google.protobuf.message.Message):
47
50
  border: builtins.bool = ...,
48
51
  height: builtins.int = ...,
49
52
  ) -> None: ...
50
- def ClearField(self, field_name: typing_extensions.Literal["border", b"border", "height", b"height"]) -> None: ...
53
+ def ClearField(self, field_name: typing.Literal["border", b"border", "height", b"height"]) -> None: ...
51
54
 
55
+ @typing.final
52
56
  class Horizontal(google.protobuf.message.Message):
53
57
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
54
58
 
@@ -59,8 +63,9 @@ class Block(google.protobuf.message.Message):
59
63
  *,
60
64
  gap: builtins.str = ...,
61
65
  ) -> None: ...
62
- def ClearField(self, field_name: typing_extensions.Literal["gap", b"gap"]) -> None: ...
66
+ def ClearField(self, field_name: typing.Literal["gap", b"gap"]) -> None: ...
63
67
 
68
+ @typing.final
64
69
  class Column(google.protobuf.message.Message):
65
70
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
66
71
 
@@ -74,8 +79,9 @@ class Block(google.protobuf.message.Message):
74
79
  weight: builtins.float = ...,
75
80
  gap: builtins.str = ...,
76
81
  ) -> None: ...
77
- def ClearField(self, field_name: typing_extensions.Literal["gap", b"gap", "weight", b"weight"]) -> None: ...
82
+ def ClearField(self, field_name: typing.Literal["gap", b"gap", "weight", b"weight"]) -> None: ...
78
83
 
84
+ @typing.final
79
85
  class Expandable(google.protobuf.message.Message):
80
86
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
81
87
 
@@ -92,10 +98,11 @@ class Block(google.protobuf.message.Message):
92
98
  expanded: builtins.bool | None = ...,
93
99
  icon: builtins.str = ...,
94
100
  ) -> None: ...
95
- def HasField(self, field_name: typing_extensions.Literal["_expanded", b"_expanded", "expanded", b"expanded"]) -> builtins.bool: ...
96
- def ClearField(self, field_name: typing_extensions.Literal["_expanded", b"_expanded", "expanded", b"expanded", "icon", b"icon", "label", b"label"]) -> None: ...
97
- def WhichOneof(self, oneof_group: typing_extensions.Literal["_expanded", b"_expanded"]) -> typing_extensions.Literal["expanded"] | None: ...
101
+ def HasField(self, field_name: typing.Literal["_expanded", b"_expanded", "expanded", b"expanded"]) -> builtins.bool: ...
102
+ def ClearField(self, field_name: typing.Literal["_expanded", b"_expanded", "expanded", b"expanded", "icon", b"icon", "label", b"label"]) -> None: ...
103
+ def WhichOneof(self, oneof_group: typing.Literal["_expanded", b"_expanded"]) -> typing.Literal["expanded"] | None: ...
98
104
 
105
+ @typing.final
99
106
  class Dialog(google.protobuf.message.Message):
100
107
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
101
108
 
@@ -103,7 +110,7 @@ class Block(google.protobuf.message.Message):
103
110
  ValueType = typing.NewType("ValueType", builtins.int)
104
111
  V: typing_extensions.TypeAlias = ValueType
105
112
 
106
- class _DialogWidthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Block.Dialog._DialogWidth.ValueType], builtins.type): # noqa: F821
113
+ class _DialogWidthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Block.Dialog._DialogWidth.ValueType], builtins.type):
107
114
  DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
108
115
  SMALL: Block.Dialog._DialogWidth.ValueType # 0
109
116
  LARGE: Block.Dialog._DialogWidth.ValueType # 1
@@ -128,10 +135,11 @@ class Block(google.protobuf.message.Message):
128
135
  width: global___Block.Dialog.DialogWidth.ValueType = ...,
129
136
  is_open: builtins.bool | None = ...,
130
137
  ) -> None: ...
131
- def HasField(self, field_name: typing_extensions.Literal["_is_open", b"_is_open", "is_open", b"is_open"]) -> builtins.bool: ...
132
- def ClearField(self, field_name: typing_extensions.Literal["_is_open", b"_is_open", "dismissible", b"dismissible", "is_open", b"is_open", "title", b"title", "width", b"width"]) -> None: ...
133
- def WhichOneof(self, oneof_group: typing_extensions.Literal["_is_open", b"_is_open"]) -> typing_extensions.Literal["is_open"] | None: ...
138
+ def HasField(self, field_name: typing.Literal["_is_open", b"_is_open", "is_open", b"is_open"]) -> builtins.bool: ...
139
+ def ClearField(self, field_name: typing.Literal["_is_open", b"_is_open", "dismissible", b"dismissible", "is_open", b"is_open", "title", b"title", "width", b"width"]) -> None: ...
140
+ def WhichOneof(self, oneof_group: typing.Literal["_is_open", b"_is_open"]) -> typing.Literal["is_open"] | None: ...
134
141
 
142
+ @typing.final
135
143
  class Form(google.protobuf.message.Message):
136
144
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
137
145
 
@@ -148,8 +156,9 @@ class Block(google.protobuf.message.Message):
148
156
  clear_on_submit: builtins.bool = ...,
149
157
  border: builtins.bool = ...,
150
158
  ) -> None: ...
151
- def ClearField(self, field_name: typing_extensions.Literal["border", b"border", "clear_on_submit", b"clear_on_submit", "form_id", b"form_id"]) -> None: ...
159
+ def ClearField(self, field_name: typing.Literal["border", b"border", "clear_on_submit", b"clear_on_submit", "form_id", b"form_id"]) -> None: ...
152
160
 
161
+ @typing.final
153
162
  class TabContainer(google.protobuf.message.Message):
154
163
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
155
164
 
@@ -157,6 +166,7 @@ class Block(google.protobuf.message.Message):
157
166
  self,
158
167
  ) -> None: ...
159
168
 
169
+ @typing.final
160
170
  class Tab(google.protobuf.message.Message):
161
171
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
162
172
 
@@ -167,8 +177,9 @@ class Block(google.protobuf.message.Message):
167
177
  *,
168
178
  label: builtins.str = ...,
169
179
  ) -> None: ...
170
- def ClearField(self, field_name: typing_extensions.Literal["label", b"label"]) -> None: ...
180
+ def ClearField(self, field_name: typing.Literal["label", b"label"]) -> None: ...
171
181
 
182
+ @typing.final
172
183
  class Popover(google.protobuf.message.Message):
173
184
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
174
185
 
@@ -188,8 +199,9 @@ class Block(google.protobuf.message.Message):
188
199
  help: builtins.str = ...,
189
200
  disabled: builtins.bool = ...,
190
201
  ) -> None: ...
191
- def ClearField(self, field_name: typing_extensions.Literal["disabled", b"disabled", "help", b"help", "label", b"label", "use_container_width", b"use_container_width"]) -> None: ...
202
+ def ClearField(self, field_name: typing.Literal["disabled", b"disabled", "help", b"help", "label", b"label", "use_container_width", b"use_container_width"]) -> None: ...
192
203
 
204
+ @typing.final
193
205
  class ChatMessage(google.protobuf.message.Message):
194
206
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
195
207
 
@@ -197,7 +209,7 @@ class Block(google.protobuf.message.Message):
197
209
  ValueType = typing.NewType("ValueType", builtins.int)
198
210
  V: typing_extensions.TypeAlias = ValueType
199
211
 
200
- class _AvatarTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Block.ChatMessage._AvatarType.ValueType], builtins.type): # noqa: F821
212
+ class _AvatarTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Block.ChatMessage._AvatarType.ValueType], builtins.type):
201
213
  DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
202
214
  IMAGE: Block.ChatMessage._AvatarType.ValueType # 0
203
215
  EMOJI: Block.ChatMessage._AvatarType.ValueType # 1
@@ -221,7 +233,7 @@ class Block(google.protobuf.message.Message):
221
233
  avatar: builtins.str = ...,
222
234
  avatar_type: global___Block.ChatMessage.AvatarType.ValueType = ...,
223
235
  ) -> None: ...
224
- def ClearField(self, field_name: typing_extensions.Literal["avatar", b"avatar", "avatar_type", b"avatar_type", "name", b"name"]) -> None: ...
236
+ def ClearField(self, field_name: typing.Literal["avatar", b"avatar", "avatar_type", b"avatar_type", "name", b"name"]) -> None: ...
225
237
 
226
238
  VERTICAL_FIELD_NUMBER: builtins.int
227
239
  HORIZONTAL_FIELD_NUMBER: builtins.int
@@ -234,6 +246,7 @@ class Block(google.protobuf.message.Message):
234
246
  POPOVER_FIELD_NUMBER: builtins.int
235
247
  DIALOG_FIELD_NUMBER: builtins.int
236
248
  ALLOW_EMPTY_FIELD_NUMBER: builtins.int
249
+ allow_empty: builtins.bool
237
250
  @property
238
251
  def vertical(self) -> global___Block.Vertical: ...
239
252
  @property
@@ -254,7 +267,6 @@ class Block(google.protobuf.message.Message):
254
267
  def popover(self) -> global___Block.Popover: ...
255
268
  @property
256
269
  def dialog(self) -> global___Block.Dialog: ...
257
- allow_empty: builtins.bool
258
270
  def __init__(
259
271
  self,
260
272
  *,
@@ -270,8 +282,8 @@ class Block(google.protobuf.message.Message):
270
282
  dialog: global___Block.Dialog | None = ...,
271
283
  allow_empty: builtins.bool = ...,
272
284
  ) -> None: ...
273
- def HasField(self, field_name: typing_extensions.Literal["chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "form", b"form", "horizontal", b"horizontal", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical"]) -> builtins.bool: ...
274
- def ClearField(self, field_name: typing_extensions.Literal["allow_empty", b"allow_empty", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "form", b"form", "horizontal", b"horizontal", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical"]) -> None: ...
275
- def WhichOneof(self, oneof_group: typing_extensions.Literal["type", b"type"]) -> typing_extensions.Literal["vertical", "horizontal", "column", "expandable", "form", "tab_container", "tab", "chat_message", "popover", "dialog"] | None: ...
285
+ def HasField(self, field_name: typing.Literal["chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "form", b"form", "horizontal", b"horizontal", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical"]) -> builtins.bool: ...
286
+ def ClearField(self, field_name: typing.Literal["allow_empty", b"allow_empty", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "form", b"form", "horizontal", b"horizontal", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical"]) -> None: ...
287
+ def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["vertical", "horizontal", "column", "expandable", "form", "tab_container", "tab", "chat_message", "popover", "dialog"] | None: ...
276
288
 
277
289
  global___Block = Block
@@ -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/BokehChart.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/BokehChart.proto\"M\n\nBokehChart\x12\x0e\n\x06\x66igure\x18\x01 \x01(\t\x12\x1b\n\x13use_container_width\x18\x02 \x01(\x08\x12\x12\n\nelement_id\x18\x03 \x01(\tB/\n\x1c\x63om.snowflake.apps.streamlitB\x0f\x42okehChartProtob\x06proto3')
17
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.BokehChart_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\017BokehChartProto'
24
- _BOKEHCHART._serialized_start=36
25
- _BOKEHCHART._serialized_end=113
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.BokehChart_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\017BokehChartProto'
25
+ _globals['_BOKEHCHART']._serialized_start=36
26
+ _globals['_BOKEHCHART']._serialized_end=113
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 BokehChart(google.protobuf.message.Message):
32
29
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
33
30
 
@@ -47,6 +44,6 @@ class BokehChart(google.protobuf.message.Message):
47
44
  use_container_width: builtins.bool = ...,
48
45
  element_id: builtins.str = ...,
49
46
  ) -> None: ...
50
- def ClearField(self, field_name: typing_extensions.Literal["element_id", b"element_id", "figure", b"figure", "use_container_width", b"use_container_width"]) -> None: ...
47
+ def ClearField(self, field_name: typing.Literal["element_id", b"element_id", "figure", b"figure", "use_container_width", b"use_container_width"]) -> None: ...
51
48
 
52
49
  global___BokehChart = BokehChart
@@ -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/Button.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/Button.proto\"\xab\x01\n\x06\x42utton\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\x08\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x05 \x01(\t\x12\x19\n\x11is_form_submitter\x18\x06 \x01(\x08\x12\x0c\n\x04type\x18\x07 \x01(\t\x12\x10\n\x08\x64isabled\x18\x08 \x01(\x08\x12\x1b\n\x13use_container_width\x18\t \x01(\x08\x42+\n\x1c\x63om.snowflake.apps.streamlitB\x0b\x42uttonProtob\x06proto3')
17
18
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Button_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\013ButtonProto'
24
- _BUTTON._serialized_start=33
25
- _BUTTON._serialized_end=204
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Button_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\013ButtonProto'
25
+ _globals['_BUTTON']._serialized_start=33
26
+ _globals['_BUTTON']._serialized_end=204
26
27
  # @@protoc_insertion_point(module_scope)