streamlit-nightly 1.35.1.dev20240602__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.
- streamlit/commands/navigation.py +8 -5
- streamlit/elements/deck_gl_json_chart.py +1 -1
- streamlit/elements/form.py +8 -3
- streamlit/elements/layouts.py +11 -3
- streamlit/elements/lib/policies.py +28 -2
- streamlit/elements/map.py +6 -6
- streamlit/elements/plotly_chart.py +3 -0
- streamlit/elements/pyplot.py +6 -5
- streamlit/elements/vega_charts.py +26 -16
- streamlit/elements/widgets/button.py +28 -11
- streamlit/elements/widgets/camera_input.py +2 -0
- streamlit/elements/widgets/chat.py +7 -6
- streamlit/elements/widgets/checkbox.py +2 -0
- streamlit/elements/widgets/color_picker.py +2 -0
- streamlit/elements/widgets/data_editor.py +2 -2
- streamlit/elements/widgets/file_uploader.py +2 -0
- streamlit/elements/widgets/multiselect.py +2 -0
- streamlit/elements/widgets/number_input.py +2 -0
- streamlit/elements/widgets/radio.py +2 -0
- streamlit/elements/widgets/selectbox.py +2 -0
- streamlit/elements/widgets/slider.py +2 -0
- streamlit/elements/widgets/text_widgets.py +4 -0
- streamlit/elements/widgets/time_widgets.py +4 -0
- streamlit/elements/write.py +3 -0
- streamlit/hello/Hello.py +22 -28
- streamlit/hello/streamlit_app.py +37 -0
- streamlit/proto/Alert_pb2.py +12 -11
- streamlit/proto/Alert_pb2.pyi +4 -2
- streamlit/proto/AppPage_pb2.py +10 -9
- streamlit/proto/AppPage_pb2.pyi +4 -7
- streamlit/proto/ArrowNamedDataSet_pb2.py +10 -9
- streamlit/proto/ArrowNamedDataSet_pb2.pyi +6 -8
- streamlit/proto/ArrowVegaLiteChart_pb2.py +10 -9
- streamlit/proto/ArrowVegaLiteChart_pb2.pyi +16 -16
- streamlit/proto/Arrow_pb2.py +16 -15
- streamlit/proto/Arrow_pb2.pyi +14 -8
- streamlit/proto/Audio_pb2.py +10 -9
- streamlit/proto/Audio_pb2.pyi +4 -7
- streamlit/proto/AutoRerun_pb2.py +9 -8
- streamlit/proto/AutoRerun_pb2.pyi +4 -7
- streamlit/proto/BackMsg_pb2.py +10 -9
- streamlit/proto/BackMsg_pb2.pyi +18 -19
- streamlit/proto/Balloons_pb2.py +10 -9
- streamlit/proto/Balloons_pb2.pyi +4 -7
- streamlit/proto/Block_pb2.py +34 -33
- streamlit/proto/Block_pb2.pyi +31 -19
- streamlit/proto/BokehChart_pb2.py +10 -9
- streamlit/proto/BokehChart_pb2.pyi +4 -7
- streamlit/proto/Button_pb2.py +10 -9
- streamlit/proto/Button_pb2.pyi +4 -7
- streamlit/proto/CameraInput_pb2.py +10 -9
- streamlit/proto/CameraInput_pb2.pyi +5 -8
- streamlit/proto/ChatInput_pb2.py +12 -11
- streamlit/proto/ChatInput_pb2.pyi +4 -2
- streamlit/proto/Checkbox_pb2.py +12 -11
- streamlit/proto/Checkbox_pb2.pyi +6 -4
- streamlit/proto/ClientState_pb2.py +10 -9
- streamlit/proto/ClientState_pb2.pyi +7 -10
- streamlit/proto/Code_pb2.py +10 -9
- streamlit/proto/Code_pb2.pyi +4 -7
- streamlit/proto/ColorPicker_pb2.py +10 -9
- streamlit/proto/ColorPicker_pb2.pyi +5 -8
- streamlit/proto/Common_pb2.py +32 -31
- streamlit/proto/Common_pb2.pyi +32 -23
- streamlit/proto/Components_pb2.py +18 -17
- streamlit/proto/Components_pb2.pyi +25 -23
- streamlit/proto/DataFrame_pb2.py +38 -37
- streamlit/proto/DataFrame_pb2.pyi +52 -33
- streamlit/proto/DateInput_pb2.py +10 -9
- streamlit/proto/DateInput_pb2.pyi +10 -13
- streamlit/proto/DeckGlJsonChart_pb2.py +10 -9
- streamlit/proto/DeckGlJsonChart_pb2.pyi +4 -7
- streamlit/proto/Delta_pb2.py +10 -9
- streamlit/proto/Delta_pb2.pyi +10 -10
- streamlit/proto/DocString_pb2.py +12 -11
- streamlit/proto/DocString_pb2.pyi +9 -10
- streamlit/proto/DownloadButton_pb2.py +10 -9
- streamlit/proto/DownloadButton_pb2.pyi +4 -7
- streamlit/proto/Element_pb2.py +10 -9
- streamlit/proto/Element_pb2.pyi +10 -9
- streamlit/proto/Empty_pb2.py +10 -9
- streamlit/proto/Empty_pb2.pyi +3 -0
- streamlit/proto/Exception_pb2.py +10 -9
- streamlit/proto/Exception_pb2.pyi +8 -10
- streamlit/proto/Favicon_pb2.py +10 -9
- streamlit/proto/Favicon_pb2.pyi +4 -7
- streamlit/proto/FileUploader_pb2.py +10 -9
- streamlit/proto/FileUploader_pb2.pyi +9 -11
- streamlit/proto/ForwardMsg_pb2.py +16 -15
- streamlit/proto/ForwardMsg_pb2.pyi +36 -24
- streamlit/proto/GitInfo_pb2.py +12 -11
- streamlit/proto/GitInfo_pb2.pyi +5 -3
- streamlit/proto/GraphVizChart_pb2.py +10 -9
- streamlit/proto/GraphVizChart_pb2.pyi +4 -7
- streamlit/proto/Heading_pb2.py +10 -9
- streamlit/proto/Heading_pb2.pyi +4 -7
- streamlit/proto/Html_pb2.py +10 -9
- streamlit/proto/Html_pb2.pyi +4 -7
- streamlit/proto/IFrame_pb2.py +10 -9
- streamlit/proto/IFrame_pb2.pyi +6 -9
- streamlit/proto/Image_pb2.py +12 -11
- streamlit/proto/Image_pb2.pyi +8 -10
- streamlit/proto/Json_pb2.py +10 -9
- streamlit/proto/Json_pb2.pyi +4 -7
- streamlit/proto/LabelVisibilityMessage_pb2.py +12 -11
- streamlit/proto/LabelVisibilityMessage_pb2.pyi +4 -2
- streamlit/proto/LinkButton_pb2.py +10 -9
- streamlit/proto/LinkButton_pb2.pyi +4 -7
- streamlit/proto/Logo_pb2.py +10 -9
- streamlit/proto/Logo_pb2.pyi +4 -7
- streamlit/proto/Markdown_pb2.py +12 -11
- streamlit/proto/Markdown_pb2.pyi +4 -2
- streamlit/proto/Metric_pb2.py +14 -13
- streamlit/proto/Metric_pb2.pyi +6 -4
- streamlit/proto/MultiSelect_pb2.py +10 -9
- streamlit/proto/MultiSelect_pb2.pyi +11 -14
- streamlit/proto/NamedDataSet_pb2.py +10 -9
- streamlit/proto/NamedDataSet_pb2.pyi +6 -8
- streamlit/proto/Navigation_pb2.py +12 -11
- streamlit/proto/Navigation_pb2.pyi +7 -5
- streamlit/proto/NewSession_pb2.py +32 -31
- streamlit/proto/NewSession_pb2.pyi +52 -36
- streamlit/proto/NumberInput_pb2.py +12 -11
- streamlit/proto/NumberInput_pb2.pyi +8 -6
- streamlit/proto/PageConfig_pb2.py +16 -15
- streamlit/proto/PageConfig_pb2.pyi +8 -5
- streamlit/proto/PageInfo_pb2.py +10 -9
- streamlit/proto/PageInfo_pb2.pyi +4 -7
- streamlit/proto/PageLink_pb2.py +10 -9
- streamlit/proto/PageLink_pb2.pyi +6 -9
- streamlit/proto/PageNotFound_pb2.py +10 -9
- streamlit/proto/PageNotFound_pb2.pyi +4 -7
- streamlit/proto/PageProfile_pb2.py +14 -13
- streamlit/proto/PageProfile_pb2.pyi +15 -16
- streamlit/proto/PagesChanged_pb2.py +10 -9
- streamlit/proto/PagesChanged_pb2.pyi +4 -7
- streamlit/proto/ParentMessage_pb2.py +10 -9
- streamlit/proto/ParentMessage_pb2.pyi +4 -7
- streamlit/proto/PlotlyChart_pb2.py +14 -13
- streamlit/proto/PlotlyChart_pb2.pyi +13 -8
- streamlit/proto/Progress_pb2.py +10 -9
- streamlit/proto/Progress_pb2.pyi +4 -7
- streamlit/proto/Radio_pb2.py +10 -9
- streamlit/proto/Radio_pb2.pyi +8 -12
- streamlit/proto/RootContainer_pb2.py +10 -9
- streamlit/proto/RootContainer_pb2.pyi +2 -1
- streamlit/proto/Selectbox_pb2.py +10 -9
- streamlit/proto/Selectbox_pb2.pyi +9 -13
- streamlit/proto/SessionEvent_pb2.py +10 -9
- streamlit/proto/SessionEvent_pb2.pyi +7 -9
- streamlit/proto/SessionStatus_pb2.py +10 -9
- streamlit/proto/SessionStatus_pb2.pyi +4 -7
- streamlit/proto/Skeleton_pb2.py +12 -11
- streamlit/proto/Skeleton_pb2.pyi +6 -4
- streamlit/proto/Slider_pb2.py +14 -13
- streamlit/proto/Slider_pb2.pyi +12 -10
- streamlit/proto/Snow_pb2.py +10 -9
- streamlit/proto/Snow_pb2.pyi +4 -7
- streamlit/proto/Spinner_pb2.py +10 -9
- streamlit/proto/Spinner_pb2.pyi +4 -7
- streamlit/proto/TextArea_pb2.py +10 -9
- streamlit/proto/TextArea_pb2.pyi +6 -10
- streamlit/proto/TextInput_pb2.py +12 -11
- streamlit/proto/TextInput_pb2.pyi +7 -5
- streamlit/proto/Text_pb2.py +10 -9
- streamlit/proto/Text_pb2.pyi +4 -7
- streamlit/proto/TimeInput_pb2.py +10 -9
- streamlit/proto/TimeInput_pb2.pyi +7 -11
- streamlit/proto/Toast_pb2.py +10 -9
- streamlit/proto/Toast_pb2.pyi +4 -7
- streamlit/proto/VegaLiteChart_pb2.py +10 -9
- streamlit/proto/VegaLiteChart_pb2.pyi +9 -10
- streamlit/proto/Video_pb2.py +14 -13
- streamlit/proto/Video_pb2.pyi +10 -6
- streamlit/proto/WidgetStates_pb2.py +12 -11
- streamlit/proto/WidgetStates_pb2.pyi +11 -12
- streamlit/proto/openmetrics_data_model_pb2.py +42 -41
- streamlit/proto/openmetrics_data_model_pb2.pyi +64 -31
- streamlit/runtime/caching/cached_message_replay.py +14 -29
- streamlit/runtime/fragment.py +3 -0
- streamlit/runtime/scriptrunner/script_run_context.py +1 -0
- streamlit/runtime/secrets.py +14 -0
- streamlit/static/asset-manifest.json +19 -19
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{1074.73973756.chunk.js → 1074.a92bc15f.chunk.js} +1 -1
- streamlit/static/static/js/1307.36b77087.chunk.js +1 -0
- streamlit/static/static/js/1451.229b62c4.chunk.js +1 -0
- streamlit/static/static/js/2469.5a75ba8e.chunk.js +1 -0
- streamlit/static/static/js/3599.565b1eba.chunk.js +1 -0
- streamlit/static/static/js/{4477.1bd49702.chunk.js → 4477.87935ac8.chunk.js} +1 -1
- streamlit/static/static/js/4500.be0eb305.chunk.js +1 -0
- streamlit/static/static/js/4666.a9344a3a.chunk.js +1 -0
- streamlit/static/static/js/5441.87f335e6.chunk.js +1 -0
- streamlit/static/static/js/6013.f6083314.chunk.js +1 -0
- streamlit/static/static/js/{6718.802da17e.chunk.js → 6718.2e6586ef.chunk.js} +1 -1
- streamlit/static/static/js/7175.8f4014ec.chunk.js +1 -0
- streamlit/static/static/js/7602.a20a999b.chunk.js +1 -0
- streamlit/static/static/js/8148.1b2c085e.chunk.js +1 -0
- streamlit/static/static/js/8427.59805a7f.chunk.js +1 -0
- streamlit/static/static/js/{8492.0d93bd08.chunk.js → 8492.8ad745d1.chunk.js} +1 -1
- streamlit/static/static/js/8691.cb9c04cf.chunk.js +1 -0
- streamlit/static/static/js/main.ea823277.js +2 -0
- streamlit/type_util.py +7 -0
- streamlit/web/cli.py +2 -2
- streamlit/web/server/server.py +2 -2
- {streamlit_nightly-1.35.1.dev20240602.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/METADATA +5 -5
- {streamlit_nightly-1.35.1.dev20240602.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/RECORD +216 -215
- streamlit/static/static/js/1307.0f0cca93.chunk.js +0 -1
- streamlit/static/static/js/1451.3b0a3e31.chunk.js +0 -1
- streamlit/static/static/js/2469.09ea79bb.chunk.js +0 -1
- streamlit/static/static/js/4500.b6f348d1.chunk.js +0 -1
- streamlit/static/static/js/4666.c4b22a63.chunk.js +0 -1
- streamlit/static/static/js/5379.f08eddd1.chunk.js +0 -1
- streamlit/static/static/js/5441.1b94928f.chunk.js +0 -1
- streamlit/static/static/js/6013.4ba2d616.chunk.js +0 -1
- streamlit/static/static/js/7175.583ff733.chunk.js +0 -1
- streamlit/static/static/js/7602.e8abc06b.chunk.js +0 -1
- streamlit/static/static/js/8148.293984e0.chunk.js +0 -1
- streamlit/static/static/js/8427.bd0a7cf3.chunk.js +0 -1
- streamlit/static/static/js/8691.4211c305.chunk.js +0 -1
- streamlit/static/static/js/main.707da454.js +0 -2
- /streamlit/hello/{pages/0_Animation_Demo.py → Animation_Demo.py} +0 -0
- /streamlit/hello/{pages/3_DataFrame_Demo.py → Dataframe_Demo.py} +0 -0
- /streamlit/hello/{pages/2_Mapping_Demo.py → Mapping_Demo.py} +0 -0
- /streamlit/hello/{pages/1_Plotting_Demo.py → Plotting_Demo.py} +0 -0
- /streamlit/static/static/js/{main.707da454.js.LICENSE.txt → main.ea823277.js.LICENSE.txt} +0 -0
- {streamlit_nightly-1.35.1.dev20240602.data → streamlit_nightly-1.35.1.dev20240604.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.35.1.dev20240602.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.35.1.dev20240602.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.35.1.dev20240602.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/Navigation.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()
|
@@ -16,14 +17,14 @@ from streamlit.proto import AppPage_pb2 as streamlit_dot_proto_dot_AppPage__pb2
|
|
16
17
|
|
17
18
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/Navigation.proto\x1a\x1dstreamlit/proto/AppPage.proto\"\xa2\x01\n\nNavigation\x12\x10\n\x08sections\x18\x01 \x03(\t\x12\x1b\n\tapp_pages\x18\x02 \x03(\x0b\x32\x08.AppPage\x12&\n\x08position\x18\x03 \x01(\x0e\x32\x14.Navigation.Position\x12\x18\n\x10page_script_hash\x18\x04 \x01(\t\"#\n\x08Position\x12\n\n\x06HIDDEN\x10\x00\x12\x0b\n\x07SIDEBAR\x10\x01\x42\x1e\n\x1c\x63om.snowflake.apps.streamlitb\x06proto3')
|
18
19
|
|
19
|
-
|
20
|
-
_builder.
|
21
|
-
|
22
|
-
|
23
|
-
DESCRIPTOR.
|
24
|
-
DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlit'
|
25
|
-
_NAVIGATION._serialized_start=68
|
26
|
-
_NAVIGATION._serialized_end=230
|
27
|
-
_NAVIGATION_POSITION._serialized_start=195
|
28
|
-
_NAVIGATION_POSITION._serialized_end=230
|
20
|
+
_globals = globals()
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Navigation_pb2', _globals)
|
23
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
24
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
25
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlit'
|
26
|
+
_globals['_NAVIGATION']._serialized_start=68
|
27
|
+
_globals['_NAVIGATION']._serialized_end=230
|
28
|
+
_globals['_NAVIGATION_POSITION']._serialized_start=195
|
29
|
+
_globals['_NAVIGATION_POSITION']._serialized_end=230
|
29
30
|
# @@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
|
@@ -33,6 +34,7 @@ else:
|
|
33
34
|
|
34
35
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
35
36
|
|
37
|
+
@typing.final
|
36
38
|
class Navigation(google.protobuf.message.Message):
|
37
39
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
38
40
|
|
@@ -40,7 +42,7 @@ class Navigation(google.protobuf.message.Message):
|
|
40
42
|
ValueType = typing.NewType("ValueType", builtins.int)
|
41
43
|
V: typing_extensions.TypeAlias = ValueType
|
42
44
|
|
43
|
-
class _PositionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Navigation._Position.ValueType], builtins.type):
|
45
|
+
class _PositionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Navigation._Position.ValueType], builtins.type):
|
44
46
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
45
47
|
HIDDEN: Navigation._Position.ValueType # 0
|
46
48
|
"""do not display the navigation"""
|
@@ -59,13 +61,13 @@ class Navigation(google.protobuf.message.Message):
|
|
59
61
|
APP_PAGES_FIELD_NUMBER: builtins.int
|
60
62
|
POSITION_FIELD_NUMBER: builtins.int
|
61
63
|
PAGE_SCRIPT_HASH_FIELD_NUMBER: builtins.int
|
64
|
+
position: global___Navigation.Position.ValueType
|
65
|
+
page_script_hash: builtins.str
|
66
|
+
"""The script hash for the page identified by st.navigation"""
|
62
67
|
@property
|
63
68
|
def sections(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
64
69
|
@property
|
65
70
|
def app_pages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[streamlit.proto.AppPage_pb2.AppPage]: ...
|
66
|
-
position: global___Navigation.Position.ValueType
|
67
|
-
page_script_hash: builtins.str
|
68
|
-
"""The script hash for the page identified by st.navigation"""
|
69
71
|
def __init__(
|
70
72
|
self,
|
71
73
|
*,
|
@@ -74,6 +76,6 @@ class Navigation(google.protobuf.message.Message):
|
|
74
76
|
position: global___Navigation.Position.ValueType = ...,
|
75
77
|
page_script_hash: builtins.str = ...,
|
76
78
|
) -> None: ...
|
77
|
-
def ClearField(self, field_name:
|
79
|
+
def ClearField(self, field_name: typing.Literal["app_pages", b"app_pages", "page_script_hash", b"page_script_hash", "position", b"position", "sections", b"sections"]) -> None: ...
|
78
80
|
|
79
81
|
global___Navigation = Navigation
|
@@ -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/NewSession.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,34 +18,34 @@ from streamlit.proto import SessionStatus_pb2 as streamlit_dot_proto_dot_Session
|
|
17
18
|
|
18
19
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/NewSession.proto\x1a\x1dstreamlit/proto/AppPage.proto\x1a#streamlit/proto/SessionStatus.proto\"\xa5\x02\n\nNewSession\x12\x1f\n\ninitialize\x18\x01 \x01(\x0b\x32\x0b.Initialize\x12\x15\n\rscript_run_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x18\n\x10main_script_path\x18\x04 \x01(\t\x12\x17\n\x06\x63onfig\x18\x06 \x01(\x0b\x32\x07.Config\x12(\n\x0c\x63ustom_theme\x18\x07 \x01(\x0b\x32\x12.CustomThemeConfig\x12\x1b\n\tapp_pages\x18\x08 \x03(\x0b\x32\x08.AppPage\x12\x18\n\x10page_script_hash\x18\t \x01(\t\x12\x1d\n\x15\x66ragment_ids_this_run\x18\n \x03(\t\x12\x18\n\x10main_script_hash\x18\x0b \x01(\tJ\x04\x08\x05\x10\x06\"\xba\x01\n\nInitialize\x12\x1c\n\tuser_info\x18\x01 \x01(\x0b\x32\t.UserInfo\x12*\n\x10\x65nvironment_info\x18\x03 \x01(\x0b\x32\x10.EnvironmentInfo\x12&\n\x0esession_status\x18\x04 \x01(\x0b\x32\x0e.SessionStatus\x12\x14\n\x0c\x63ommand_line\x18\x05 \x01(\t\x12\x12\n\nsession_id\x18\x06 \x01(\t\x12\x10\n\x08is_hello\x18\x07 \x01(\x08\"\x97\x02\n\x06\x43onfig\x12\x1a\n\x12gather_usage_stats\x18\x02 \x01(\x08\x12\x1e\n\x16max_cached_message_age\x18\x03 \x01(\x05\x12\x14\n\x0cmapbox_token\x18\x04 \x01(\t\x12\x19\n\x11\x61llow_run_on_save\x18\x05 \x01(\x08\x12\x14\n\x0chide_top_bar\x18\x06 \x01(\x08\x12\x18\n\x10hide_sidebar_nav\x18\x07 \x01(\x08\x12)\n\x0ctoolbar_mode\x18\x08 \x01(\x0e\x32\x13.Config.ToolbarMode\"?\n\x0bToolbarMode\x12\x08\n\x04\x41UTO\x10\x00\x12\r\n\tDEVELOPER\x10\x01\x12\n\n\x06VIEWER\x10\x02\x12\x0b\n\x07MINIMAL\x10\x03J\x04\x08\x01\x10\x02\"\x8c\x04\n\x11\x43ustomThemeConfig\x12\x15\n\rprimary_color\x18\x01 \x01(\t\x12\"\n\x1asecondary_background_color\x18\x02 \x01(\t\x12\x18\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\t\x12\x12\n\ntext_color\x18\x04 \x01(\t\x12+\n\x04\x66ont\x18\x05 \x01(\x0e\x32\x1d.CustomThemeConfig.FontFamily\x12*\n\x04\x62\x61se\x18\x06 \x01(\x0e\x32\x1c.CustomThemeConfig.BaseTheme\x12\x1f\n\x17widget_background_color\x18\x07 \x01(\t\x12\x1b\n\x13widget_border_color\x18\x08 \x01(\t\x12\x15\n\x05radii\x18\t \x01(\x0b\x32\x06.Radii\x12\x11\n\tbody_font\x18\r \x01(\t\x12\x11\n\tcode_font\x18\x0e \x01(\t\x12\x1d\n\nfont_faces\x18\x0f \x03(\x0b\x32\t.FontFace\x12\x1e\n\nfont_sizes\x18\x10 \x01(\x0b\x32\n.FontSizes\x12!\n\x19skeleton_background_color\x18\x11 \x01(\t\" \n\tBaseTheme\x12\t\n\x05LIGHT\x10\x00\x12\x08\n\x04\x44\x41RK\x10\x01\"6\n\nFontFamily\x12\x0e\n\nSANS_SERIF\x10\x00\x12\t\n\x05SERIF\x10\x01\x12\r\n\tMONOSPACE\x10\x02\"F\n\x08\x46ontFace\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06\x66\x61mily\x18\x02 \x01(\t\x12\x0e\n\x06weight\x18\x03 \x01(\x05\x12\r\n\x05style\x18\x04 \x01(\t\"<\n\x05Radii\x12\x1a\n\x12\x62\x61se_widget_radius\x18\x01 \x01(\x05\x12\x17\n\x0f\x63heckbox_radius\x18\x02 \x01(\x05\"T\n\tFontSizes\x12\x16\n\x0etiny_font_size\x18\x01 \x01(\x05\x12\x17\n\x0fsmall_font_size\x18\x02 \x01(\x05\x12\x16\n\x0e\x62\x61se_font_size\x18\x03 \x01(\x05\"E\n\x08UserInfo\x12\x17\n\x0finstallation_id\x18\x01 \x01(\t\x12\x1a\n\x12installation_id_v3\x18\x05 \x01(\tJ\x04\x08\x02\x10\x03\"D\n\x0f\x45nvironmentInfo\x12\x19\n\x11streamlit_version\x18\x01 \x01(\t\x12\x16\n\x0epython_version\x18\x02 \x01(\tB/\n\x1c\x63om.snowflake.apps.streamlitB\x0fNewSessionProtob\x06proto3')
|
19
20
|
|
20
|
-
|
21
|
-
_builder.
|
22
|
-
|
23
|
-
|
24
|
-
DESCRIPTOR.
|
25
|
-
DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\017NewSessionProto'
|
26
|
-
_NEWSESSION._serialized_start=105
|
27
|
-
_NEWSESSION._serialized_end=398
|
28
|
-
_INITIALIZE._serialized_start=401
|
29
|
-
_INITIALIZE._serialized_end=587
|
30
|
-
_CONFIG._serialized_start=590
|
31
|
-
_CONFIG._serialized_end=869
|
32
|
-
_CONFIG_TOOLBARMODE._serialized_start=800
|
33
|
-
_CONFIG_TOOLBARMODE._serialized_end=863
|
34
|
-
_CUSTOMTHEMECONFIG._serialized_start=872
|
35
|
-
_CUSTOMTHEMECONFIG._serialized_end=1396
|
36
|
-
_CUSTOMTHEMECONFIG_BASETHEME._serialized_start=1308
|
37
|
-
_CUSTOMTHEMECONFIG_BASETHEME._serialized_end=1340
|
38
|
-
_CUSTOMTHEMECONFIG_FONTFAMILY._serialized_start=1342
|
39
|
-
_CUSTOMTHEMECONFIG_FONTFAMILY._serialized_end=1396
|
40
|
-
_FONTFACE._serialized_start=1398
|
41
|
-
_FONTFACE._serialized_end=1468
|
42
|
-
_RADII._serialized_start=1470
|
43
|
-
_RADII._serialized_end=1530
|
44
|
-
_FONTSIZES._serialized_start=1532
|
45
|
-
_FONTSIZES._serialized_end=1616
|
46
|
-
_USERINFO._serialized_start=1618
|
47
|
-
_USERINFO._serialized_end=1687
|
48
|
-
_ENVIRONMENTINFO._serialized_start=1689
|
49
|
-
_ENVIRONMENTINFO._serialized_end=1757
|
21
|
+
_globals = globals()
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.NewSession_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\017NewSessionProto'
|
27
|
+
_globals['_NEWSESSION']._serialized_start=105
|
28
|
+
_globals['_NEWSESSION']._serialized_end=398
|
29
|
+
_globals['_INITIALIZE']._serialized_start=401
|
30
|
+
_globals['_INITIALIZE']._serialized_end=587
|
31
|
+
_globals['_CONFIG']._serialized_start=590
|
32
|
+
_globals['_CONFIG']._serialized_end=869
|
33
|
+
_globals['_CONFIG_TOOLBARMODE']._serialized_start=800
|
34
|
+
_globals['_CONFIG_TOOLBARMODE']._serialized_end=863
|
35
|
+
_globals['_CUSTOMTHEMECONFIG']._serialized_start=872
|
36
|
+
_globals['_CUSTOMTHEMECONFIG']._serialized_end=1396
|
37
|
+
_globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_start=1308
|
38
|
+
_globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_end=1340
|
39
|
+
_globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_start=1342
|
40
|
+
_globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_end=1396
|
41
|
+
_globals['_FONTFACE']._serialized_start=1398
|
42
|
+
_globals['_FONTFACE']._serialized_end=1468
|
43
|
+
_globals['_RADII']._serialized_start=1470
|
44
|
+
_globals['_RADII']._serialized_end=1530
|
45
|
+
_globals['_FONTSIZES']._serialized_start=1532
|
46
|
+
_globals['_FONTSIZES']._serialized_end=1616
|
47
|
+
_globals['_USERINFO']._serialized_start=1618
|
48
|
+
_globals['_USERINFO']._serialized_end=1687
|
49
|
+
_globals['_ENVIRONMENTINFO']._serialized_start=1689
|
50
|
+
_globals['_ENVIRONMENTINFO']._serialized_end=1757
|
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 collections.abc
|
21
22
|
import google.protobuf.descriptor
|
@@ -34,6 +35,7 @@ else:
|
|
34
35
|
|
35
36
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
36
37
|
|
38
|
+
@typing.final
|
37
39
|
class NewSession(google.protobuf.message.Message):
|
38
40
|
"""NOTE: These proto types are used by some external services so need to
|
39
41
|
remain relatively stable. While they aren't entirely set in stone, changing
|
@@ -54,13 +56,6 @@ class NewSession(google.protobuf.message.Message):
|
|
54
56
|
PAGE_SCRIPT_HASH_FIELD_NUMBER: builtins.int
|
55
57
|
FRAGMENT_IDS_THIS_RUN_FIELD_NUMBER: builtins.int
|
56
58
|
MAIN_SCRIPT_HASH_FIELD_NUMBER: builtins.int
|
57
|
-
@property
|
58
|
-
def initialize(self) -> global___Initialize:
|
59
|
-
"""Initialization data. This data does *not* change from rerun to rerun,
|
60
|
-
but we send it every time so that we don't have to track whether the
|
61
|
-
client has already received it. The client is responsible for
|
62
|
-
performing initialization logic only once.
|
63
|
-
"""
|
64
59
|
script_run_id: builtins.str
|
65
60
|
"""The script run ID"""
|
66
61
|
name: builtins.str
|
@@ -69,28 +64,40 @@ class NewSession(google.protobuf.message.Message):
|
|
69
64
|
"""The full path of the script that launched this app. Example:
|
70
65
|
'/foo/bar/foo.py'
|
71
66
|
"""
|
67
|
+
page_script_hash: builtins.str
|
68
|
+
"""A hash of the script corresponding to the page currently being viewed."""
|
69
|
+
main_script_hash: builtins.str
|
70
|
+
"""Hash of the main script running (ie streamlit run main_script.py)"""
|
71
|
+
@property
|
72
|
+
def initialize(self) -> global___Initialize:
|
73
|
+
"""Initialization data. This data does *not* change from rerun to rerun,
|
74
|
+
but we send it every time so that we don't have to track whether the
|
75
|
+
client has already received it. The client is responsible for
|
76
|
+
performing initialization logic only once.
|
77
|
+
"""
|
78
|
+
|
72
79
|
@property
|
73
80
|
def config(self) -> global___Config:
|
74
81
|
"""Config options that are (mostly) defined in the .streamlit/config.toml
|
75
82
|
file.
|
76
83
|
"""
|
84
|
+
|
77
85
|
@property
|
78
86
|
def custom_theme(self) -> global___CustomThemeConfig:
|
79
87
|
"""Theme configuration options defined in the .streamlit/config.toml file.
|
80
88
|
See the "theme" config section.
|
81
89
|
"""
|
90
|
+
|
82
91
|
@property
|
83
92
|
def app_pages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[streamlit.proto.AppPage_pb2.AppPage]:
|
84
93
|
"""A list of all of this app's pages, in order and including the main page."""
|
85
|
-
|
86
|
-
"""A hash of the script corresponding to the page currently being viewed."""
|
94
|
+
|
87
95
|
@property
|
88
96
|
def fragment_ids_this_run(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
89
97
|
"""The fragment IDs being run in this session if it corresponds to a fragment
|
90
98
|
script run.
|
91
99
|
"""
|
92
|
-
|
93
|
-
"""Hash of the main script running (ie streamlit run main_script.py)"""
|
100
|
+
|
94
101
|
def __init__(
|
95
102
|
self,
|
96
103
|
*,
|
@@ -105,11 +112,12 @@ class NewSession(google.protobuf.message.Message):
|
|
105
112
|
fragment_ids_this_run: collections.abc.Iterable[builtins.str] | None = ...,
|
106
113
|
main_script_hash: builtins.str = ...,
|
107
114
|
) -> None: ...
|
108
|
-
def HasField(self, field_name:
|
109
|
-
def ClearField(self, field_name:
|
115
|
+
def HasField(self, field_name: typing.Literal["config", b"config", "custom_theme", b"custom_theme", "initialize", b"initialize"]) -> builtins.bool: ...
|
116
|
+
def ClearField(self, field_name: typing.Literal["app_pages", b"app_pages", "config", b"config", "custom_theme", b"custom_theme", "fragment_ids_this_run", b"fragment_ids_this_run", "initialize", b"initialize", "main_script_hash", b"main_script_hash", "main_script_path", b"main_script_path", "name", b"name", "page_script_hash", b"page_script_hash", "script_run_id", b"script_run_id"]) -> None: ...
|
110
117
|
|
111
118
|
global___NewSession = NewSession
|
112
119
|
|
120
|
+
@typing.final
|
113
121
|
class Initialize(google.protobuf.message.Message):
|
114
122
|
"""Contains the session status that existed at the time the user connected.
|
115
123
|
The contents of this message don't change over the lifetime of the app by
|
@@ -124,13 +132,6 @@ class Initialize(google.protobuf.message.Message):
|
|
124
132
|
COMMAND_LINE_FIELD_NUMBER: builtins.int
|
125
133
|
SESSION_ID_FIELD_NUMBER: builtins.int
|
126
134
|
IS_HELLO_FIELD_NUMBER: builtins.int
|
127
|
-
@property
|
128
|
-
def user_info(self) -> global___UserInfo: ...
|
129
|
-
@property
|
130
|
-
def environment_info(self) -> global___EnvironmentInfo: ...
|
131
|
-
@property
|
132
|
-
def session_status(self) -> streamlit.proto.SessionStatus_pb2.SessionStatus:
|
133
|
-
"""The session status at the time the connection was established"""
|
134
135
|
command_line: builtins.str
|
135
136
|
"""DEPRECATED: We no longer send this to the frontend for security reasons.
|
136
137
|
The actual command line as a string
|
@@ -142,6 +143,14 @@ class Initialize(google.protobuf.message.Message):
|
|
142
143
|
"""
|
143
144
|
is_hello: builtins.bool
|
144
145
|
"""True if the command used to start this app was `streamlit hello`."""
|
146
|
+
@property
|
147
|
+
def user_info(self) -> global___UserInfo: ...
|
148
|
+
@property
|
149
|
+
def environment_info(self) -> global___EnvironmentInfo: ...
|
150
|
+
@property
|
151
|
+
def session_status(self) -> streamlit.proto.SessionStatus_pb2.SessionStatus:
|
152
|
+
"""The session status at the time the connection was established"""
|
153
|
+
|
145
154
|
def __init__(
|
146
155
|
self,
|
147
156
|
*,
|
@@ -152,11 +161,12 @@ class Initialize(google.protobuf.message.Message):
|
|
152
161
|
session_id: builtins.str = ...,
|
153
162
|
is_hello: builtins.bool = ...,
|
154
163
|
) -> None: ...
|
155
|
-
def HasField(self, field_name:
|
156
|
-
def ClearField(self, field_name:
|
164
|
+
def HasField(self, field_name: typing.Literal["environment_info", b"environment_info", "session_status", b"session_status", "user_info", b"user_info"]) -> builtins.bool: ...
|
165
|
+
def ClearField(self, field_name: typing.Literal["command_line", b"command_line", "environment_info", b"environment_info", "is_hello", b"is_hello", "session_id", b"session_id", "session_status", b"session_status", "user_info", b"user_info"]) -> None: ...
|
157
166
|
|
158
167
|
global___Initialize = Initialize
|
159
168
|
|
169
|
+
@typing.final
|
160
170
|
class Config(google.protobuf.message.Message):
|
161
171
|
"""App configuration options, initialized mainly from the
|
162
172
|
.streamlit/config.toml file.
|
@@ -168,7 +178,7 @@ class Config(google.protobuf.message.Message):
|
|
168
178
|
ValueType = typing.NewType("ValueType", builtins.int)
|
169
179
|
V: typing_extensions.TypeAlias = ValueType
|
170
180
|
|
171
|
-
class _ToolbarModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Config._ToolbarMode.ValueType], builtins.type):
|
181
|
+
class _ToolbarModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Config._ToolbarMode.ValueType], builtins.type):
|
172
182
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
173
183
|
AUTO: Config._ToolbarMode.ValueType # 0
|
174
184
|
DEVELOPER: Config._ToolbarMode.ValueType # 1
|
@@ -214,10 +224,11 @@ class Config(google.protobuf.message.Message):
|
|
214
224
|
hide_sidebar_nav: builtins.bool = ...,
|
215
225
|
toolbar_mode: global___Config.ToolbarMode.ValueType = ...,
|
216
226
|
) -> None: ...
|
217
|
-
def ClearField(self, field_name:
|
227
|
+
def ClearField(self, field_name: typing.Literal["allow_run_on_save", b"allow_run_on_save", "gather_usage_stats", b"gather_usage_stats", "hide_sidebar_nav", b"hide_sidebar_nav", "hide_top_bar", b"hide_top_bar", "mapbox_token", b"mapbox_token", "max_cached_message_age", b"max_cached_message_age", "toolbar_mode", b"toolbar_mode"]) -> None: ...
|
218
228
|
|
219
229
|
global___Config = Config
|
220
230
|
|
231
|
+
@typing.final
|
221
232
|
class CustomThemeConfig(google.protobuf.message.Message):
|
222
233
|
"""Custom theme configuration options. Like other config options, these are set
|
223
234
|
in .streamlit/config.toml.
|
@@ -232,7 +243,7 @@ class CustomThemeConfig(google.protobuf.message.Message):
|
|
232
243
|
ValueType = typing.NewType("ValueType", builtins.int)
|
233
244
|
V: typing_extensions.TypeAlias = ValueType
|
234
245
|
|
235
|
-
class _BaseThemeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CustomThemeConfig._BaseTheme.ValueType], builtins.type):
|
246
|
+
class _BaseThemeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CustomThemeConfig._BaseTheme.ValueType], builtins.type):
|
236
247
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
237
248
|
LIGHT: CustomThemeConfig._BaseTheme.ValueType # 0
|
238
249
|
DARK: CustomThemeConfig._BaseTheme.ValueType # 1
|
@@ -245,7 +256,7 @@ class CustomThemeConfig(google.protobuf.message.Message):
|
|
245
256
|
ValueType = typing.NewType("ValueType", builtins.int)
|
246
257
|
V: typing_extensions.TypeAlias = ValueType
|
247
258
|
|
248
|
-
class _FontFamilyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CustomThemeConfig._FontFamily.ValueType], builtins.type):
|
259
|
+
class _FontFamilyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CustomThemeConfig._FontFamily.ValueType], builtins.type):
|
249
260
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
250
261
|
SANS_SERIF: CustomThemeConfig._FontFamily.ValueType # 0
|
251
262
|
SERIF: CustomThemeConfig._FontFamily.ValueType # 1
|
@@ -278,15 +289,15 @@ class CustomThemeConfig(google.protobuf.message.Message):
|
|
278
289
|
base: global___CustomThemeConfig.BaseTheme.ValueType
|
279
290
|
widget_background_color: builtins.str
|
280
291
|
widget_border_color: builtins.str
|
281
|
-
@property
|
282
|
-
def radii(self) -> global___Radii: ...
|
283
292
|
body_font: builtins.str
|
284
293
|
code_font: builtins.str
|
294
|
+
skeleton_background_color: builtins.str
|
295
|
+
@property
|
296
|
+
def radii(self) -> global___Radii: ...
|
285
297
|
@property
|
286
298
|
def font_faces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FontFace]: ...
|
287
299
|
@property
|
288
300
|
def font_sizes(self) -> global___FontSizes: ...
|
289
|
-
skeleton_background_color: builtins.str
|
290
301
|
def __init__(
|
291
302
|
self,
|
292
303
|
*,
|
@@ -305,11 +316,12 @@ class CustomThemeConfig(google.protobuf.message.Message):
|
|
305
316
|
font_sizes: global___FontSizes | None = ...,
|
306
317
|
skeleton_background_color: builtins.str = ...,
|
307
318
|
) -> None: ...
|
308
|
-
def HasField(self, field_name:
|
309
|
-
def ClearField(self, field_name:
|
319
|
+
def HasField(self, field_name: typing.Literal["font_sizes", b"font_sizes", "radii", b"radii"]) -> builtins.bool: ...
|
320
|
+
def ClearField(self, field_name: typing.Literal["background_color", b"background_color", "base", b"base", "body_font", b"body_font", "code_font", b"code_font", "font", b"font", "font_faces", b"font_faces", "font_sizes", b"font_sizes", "primary_color", b"primary_color", "radii", b"radii", "secondary_background_color", b"secondary_background_color", "skeleton_background_color", b"skeleton_background_color", "text_color", b"text_color", "widget_background_color", b"widget_background_color", "widget_border_color", b"widget_border_color"]) -> None: ...
|
310
321
|
|
311
322
|
global___CustomThemeConfig = CustomThemeConfig
|
312
323
|
|
324
|
+
@typing.final
|
313
325
|
class FontFace(google.protobuf.message.Message):
|
314
326
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
315
327
|
|
@@ -329,10 +341,11 @@ class FontFace(google.protobuf.message.Message):
|
|
329
341
|
weight: builtins.int = ...,
|
330
342
|
style: builtins.str = ...,
|
331
343
|
) -> None: ...
|
332
|
-
def ClearField(self, field_name:
|
344
|
+
def ClearField(self, field_name: typing.Literal["family", b"family", "style", b"style", "url", b"url", "weight", b"weight"]) -> None: ...
|
333
345
|
|
334
346
|
global___FontFace = FontFace
|
335
347
|
|
348
|
+
@typing.final
|
336
349
|
class Radii(google.protobuf.message.Message):
|
337
350
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
338
351
|
|
@@ -347,10 +360,11 @@ class Radii(google.protobuf.message.Message):
|
|
347
360
|
base_widget_radius: builtins.int = ...,
|
348
361
|
checkbox_radius: builtins.int = ...,
|
349
362
|
) -> None: ...
|
350
|
-
def ClearField(self, field_name:
|
363
|
+
def ClearField(self, field_name: typing.Literal["base_widget_radius", b"base_widget_radius", "checkbox_radius", b"checkbox_radius"]) -> None: ...
|
351
364
|
|
352
365
|
global___Radii = Radii
|
353
366
|
|
367
|
+
@typing.final
|
354
368
|
class FontSizes(google.protobuf.message.Message):
|
355
369
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
356
370
|
|
@@ -368,10 +382,11 @@ class FontSizes(google.protobuf.message.Message):
|
|
368
382
|
small_font_size: builtins.int = ...,
|
369
383
|
base_font_size: builtins.int = ...,
|
370
384
|
) -> None: ...
|
371
|
-
def ClearField(self, field_name:
|
385
|
+
def ClearField(self, field_name: typing.Literal["base_font_size", b"base_font_size", "small_font_size", b"small_font_size", "tiny_font_size", b"tiny_font_size"]) -> None: ...
|
372
386
|
|
373
387
|
global___FontSizes = FontSizes
|
374
388
|
|
389
|
+
@typing.final
|
375
390
|
class UserInfo(google.protobuf.message.Message):
|
376
391
|
"""Data that identifies the Streamlit app creator.
|
377
392
|
Does not change over the app's lifetime.
|
@@ -389,10 +404,11 @@ class UserInfo(google.protobuf.message.Message):
|
|
389
404
|
installation_id: builtins.str = ...,
|
390
405
|
installation_id_v3: builtins.str = ...,
|
391
406
|
) -> None: ...
|
392
|
-
def ClearField(self, field_name:
|
407
|
+
def ClearField(self, field_name: typing.Literal["installation_id", b"installation_id", "installation_id_v3", b"installation_id_v3"]) -> None: ...
|
393
408
|
|
394
409
|
global___UserInfo = UserInfo
|
395
410
|
|
411
|
+
@typing.final
|
396
412
|
class EnvironmentInfo(google.protobuf.message.Message):
|
397
413
|
"""Data that identifies the Streamlit app's environment.
|
398
414
|
Does not change over the app lifetime.
|
@@ -416,6 +432,6 @@ class EnvironmentInfo(google.protobuf.message.Message):
|
|
416
432
|
streamlit_version: builtins.str = ...,
|
417
433
|
python_version: builtins.str = ...,
|
418
434
|
) -> None: ...
|
419
|
-
def ClearField(self, field_name:
|
435
|
+
def ClearField(self, field_name: typing.Literal["python_version", b"python_version", "streamlit_version", b"streamlit_version"]) -> None: ...
|
420
436
|
|
421
437
|
global___EnvironmentInfo = EnvironmentInfo
|
@@ -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/NumberInput.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()
|
@@ -16,14 +17,14 @@ from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_do
|
|
16
17
|
|
17
18
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/NumberInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xbc\x03\n\x0bNumberInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x03 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x08 \x01(\t\x12\x0f\n\x07has_min\x18\x0b \x01(\x08\x12\x0f\n\x07has_max\x18\x0c \x01(\x08\x12(\n\tdata_type\x18\r \x01(\x0e\x32\x15.NumberInput.DataType\x12\x14\n\x07\x64\x65\x66\x61ult\x18\x0e \x01(\x01H\x00\x88\x01\x01\x12\x0c\n\x04step\x18\x0f \x01(\x01\x12\x0b\n\x03min\x18\x10 \x01(\x01\x12\x0b\n\x03max\x18\x11 \x01(\x01\x12\x0c\n\x04help\x18\x12 \x01(\t\x12\x12\n\x05value\x18\x13 \x01(\x01H\x01\x88\x01\x01\x12\x11\n\tset_value\x18\x14 \x01(\x08\x12\x10\n\x08\x64isabled\x18\x15 \x01(\x08\x12\x31\n\x10label_visibility\x18\x16 \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x13\n\x0bplaceholder\x18\x17 \x01(\t\"\x1e\n\x08\x44\x61taType\x12\x07\n\x03INT\x10\x00\x12\t\n\x05\x46LOAT\x10\x01\x42\n\n\x08_defaultB\x08\n\x06_valueJ\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08J\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\x42\x30\n\x1c\x63om.snowflake.apps.streamlitB\x10NumberInputProtob\x06proto3')
|
18
19
|
|
19
|
-
|
20
|
-
_builder.
|
21
|
-
|
22
|
-
|
23
|
-
DESCRIPTOR.
|
24
|
-
DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\020NumberInputProto'
|
25
|
-
_NUMBERINPUT._serialized_start=84
|
26
|
-
_NUMBERINPUT._serialized_end=528
|
27
|
-
_NUMBERINPUT_DATATYPE._serialized_start=440
|
28
|
-
_NUMBERINPUT_DATATYPE._serialized_end=470
|
20
|
+
_globals = globals()
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.NumberInput_pb2', _globals)
|
23
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
24
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
25
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\020NumberInputProto'
|
26
|
+
_globals['_NUMBERINPUT']._serialized_start=84
|
27
|
+
_globals['_NUMBERINPUT']._serialized_end=528
|
28
|
+
_globals['_NUMBERINPUT_DATATYPE']._serialized_start=440
|
29
|
+
_globals['_NUMBERINPUT_DATATYPE']._serialized_end=470
|
29
30
|
# @@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
|
@@ -31,6 +32,7 @@ else:
|
|
31
32
|
|
32
33
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
33
34
|
|
35
|
+
@typing.final
|
34
36
|
class NumberInput(google.protobuf.message.Message):
|
35
37
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
36
38
|
|
@@ -38,7 +40,7 @@ class NumberInput(google.protobuf.message.Message):
|
|
38
40
|
ValueType = typing.NewType("ValueType", builtins.int)
|
39
41
|
V: typing_extensions.TypeAlias = ValueType
|
40
42
|
|
41
|
-
class _DataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[NumberInput._DataType.ValueType], builtins.type):
|
43
|
+
class _DataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[NumberInput._DataType.ValueType], builtins.type):
|
42
44
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
43
45
|
INT: NumberInput._DataType.ValueType # 0
|
44
46
|
"""Does the input operate on ints or floats? This doesn't change how the
|
@@ -85,9 +87,9 @@ class NumberInput(google.protobuf.message.Message):
|
|
85
87
|
value: builtins.float
|
86
88
|
set_value: builtins.bool
|
87
89
|
disabled: builtins.bool
|
90
|
+
placeholder: builtins.str
|
88
91
|
@property
|
89
92
|
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
|
90
|
-
placeholder: builtins.str
|
91
93
|
def __init__(
|
92
94
|
self,
|
93
95
|
*,
|
@@ -109,11 +111,11 @@ class NumberInput(google.protobuf.message.Message):
|
|
109
111
|
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
|
110
112
|
placeholder: builtins.str = ...,
|
111
113
|
) -> None: ...
|
112
|
-
def HasField(self, field_name:
|
113
|
-
def ClearField(self, field_name:
|
114
|
+
def HasField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "label_visibility", b"label_visibility", "value", b"value"]) -> builtins.bool: ...
|
115
|
+
def ClearField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "data_type", b"data_type", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "has_max", b"has_max", "has_min", b"has_min", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "placeholder", b"placeholder", "set_value", b"set_value", "step", b"step", "value", b"value"]) -> None: ...
|
114
116
|
@typing.overload
|
115
|
-
def WhichOneof(self, oneof_group:
|
117
|
+
def WhichOneof(self, oneof_group: typing.Literal["_default", b"_default"]) -> typing.Literal["default"] | None: ...
|
116
118
|
@typing.overload
|
117
|
-
def WhichOneof(self, oneof_group:
|
119
|
+
def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
|
118
120
|
|
119
121
|
global___NumberInput = NumberInput
|
@@ -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/PageConfig.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,18 +16,18 @@ _sym_db = _symbol_database.Default()
|
|
15
16
|
|
16
17
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/PageConfig.proto\"\x97\x03\n\nPageConfig\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0f\n\x07\x66\x61vicon\x18\x02 \x01(\t\x12\"\n\x06layout\x18\x03 \x01(\x0e\x32\x12.PageConfig.Layout\x12\x37\n\x15initial_sidebar_state\x18\x04 \x01(\x0e\x32\x18.PageConfig.SidebarState\x12)\n\nmenu_items\x18\x05 \x01(\x0b\x32\x15.PageConfig.MenuItems\x1a\x87\x01\n\tMenuItems\x12\x14\n\x0cget_help_url\x18\x01 \x01(\t\x12\x15\n\rhide_get_help\x18\x02 \x01(\x08\x12\x18\n\x10report_a_bug_url\x18\x03 \x01(\t\x12\x19\n\x11hide_report_a_bug\x18\x04 \x01(\x08\x12\x18\n\x10\x61\x62out_section_md\x18\x05 \x01(\t\" \n\x06Layout\x12\x0c\n\x08\x43\x45NTERED\x10\x00\x12\x08\n\x04WIDE\x10\x01\"5\n\x0cSidebarState\x12\x08\n\x04\x41UTO\x10\x00\x12\x0c\n\x08\x45XPANDED\x10\x01\x12\r\n\tCOLLAPSED\x10\x02\x42/\n\x1c\x63om.snowflake.apps.streamlitB\x0fPageConfigProtob\x06proto3')
|
17
18
|
|
18
|
-
|
19
|
-
_builder.
|
20
|
-
|
21
|
-
|
22
|
-
DESCRIPTOR.
|
23
|
-
DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\017PageConfigProto'
|
24
|
-
_PAGECONFIG._serialized_start=37
|
25
|
-
_PAGECONFIG._serialized_end=444
|
26
|
-
_PAGECONFIG_MENUITEMS._serialized_start=220
|
27
|
-
_PAGECONFIG_MENUITEMS._serialized_end=355
|
28
|
-
_PAGECONFIG_LAYOUT._serialized_start=357
|
29
|
-
_PAGECONFIG_LAYOUT._serialized_end=389
|
30
|
-
_PAGECONFIG_SIDEBARSTATE._serialized_start=391
|
31
|
-
_PAGECONFIG_SIDEBARSTATE._serialized_end=444
|
19
|
+
_globals = globals()
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.PageConfig_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\017PageConfigProto'
|
25
|
+
_globals['_PAGECONFIG']._serialized_start=37
|
26
|
+
_globals['_PAGECONFIG']._serialized_end=444
|
27
|
+
_globals['_PAGECONFIG_MENUITEMS']._serialized_start=220
|
28
|
+
_globals['_PAGECONFIG_MENUITEMS']._serialized_end=355
|
29
|
+
_globals['_PAGECONFIG_LAYOUT']._serialized_start=357
|
30
|
+
_globals['_PAGECONFIG_LAYOUT']._serialized_end=389
|
31
|
+
_globals['_PAGECONFIG_SIDEBARSTATE']._serialized_start=391
|
32
|
+
_globals['_PAGECONFIG_SIDEBARSTATE']._serialized_end=444
|
32
33
|
# @@protoc_insertion_point(module_scope)
|