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.
- 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.dev20240601.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/METADATA +5 -5
- {streamlit_nightly-1.35.1.dev20240601.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.dev20240601.data → streamlit_nightly-1.35.1.dev20240604.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.35.1.dev20240601.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.35.1.dev20240601.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.35.1.dev20240601.dist-info → streamlit_nightly-1.35.1.dev20240604.dist-info}/top_level.txt +0 -0
streamlit/hello/Hello.py
CHANGED
@@ -14,35 +14,29 @@
|
|
14
14
|
|
15
15
|
import streamlit as st
|
16
16
|
|
17
|
+
st.set_page_config(
|
18
|
+
page_title="Hello",
|
19
|
+
page_icon="👋",
|
20
|
+
)
|
17
21
|
|
18
|
-
|
19
|
-
st.set_page_config(
|
20
|
-
page_title="Hello",
|
21
|
-
page_icon="👋",
|
22
|
-
)
|
22
|
+
st.write("# Welcome to Streamlit! 👋")
|
23
23
|
|
24
|
-
|
24
|
+
st.sidebar.success("Select a demo above.")
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
st.markdown(
|
29
|
-
"""
|
30
|
-
Streamlit is an open-source app framework built specifically for
|
31
|
-
Machine Learning and Data Science projects.
|
32
|
-
**👈 Select a demo from the sidebar** to see some examples
|
33
|
-
of what Streamlit can do!
|
34
|
-
### Want to learn more?
|
35
|
-
- Check out [streamlit.io](https://streamlit.io)
|
36
|
-
- Jump into our [documentation](https://docs.streamlit.io)
|
37
|
-
- Ask a question in our [community
|
38
|
-
forums](https://discuss.streamlit.io)
|
39
|
-
### See more complex demos
|
40
|
-
- Use a neural net to [analyze the Udacity Self-driving Car Image
|
41
|
-
Dataset](https://github.com/streamlit/demo-self-driving)
|
42
|
-
- Explore a [New York City rideshare dataset](https://github.com/streamlit/demo-uber-nyc-pickups)
|
26
|
+
st.markdown(
|
43
27
|
"""
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
28
|
+
Streamlit is an open-source app framework built specifically for
|
29
|
+
Machine Learning and Data Science projects.
|
30
|
+
**👈 Select a demo from the sidebar** to see some examples
|
31
|
+
of what Streamlit can do!
|
32
|
+
### Want to learn more?
|
33
|
+
- Check out [streamlit.io](https://streamlit.io)
|
34
|
+
- Jump into our [documentation](https://docs.streamlit.io)
|
35
|
+
- Ask a question in our [community
|
36
|
+
forums](https://discuss.streamlit.io)
|
37
|
+
### See more complex demos
|
38
|
+
- Use a neural net to [analyze the Udacity Self-driving Car Image
|
39
|
+
Dataset](https://github.com/streamlit/demo-self-driving)
|
40
|
+
- Explore a [New York City rideshare dataset](https://github.com/streamlit/demo-uber-nyc-pickups)
|
41
|
+
"""
|
42
|
+
)
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2024)
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
from pathlib import Path
|
16
|
+
|
17
|
+
import streamlit as st
|
18
|
+
|
19
|
+
dir_path = Path(__file__).parent
|
20
|
+
|
21
|
+
|
22
|
+
def run():
|
23
|
+
page = st.navigation(
|
24
|
+
[
|
25
|
+
st.Page(dir_path / "Hello.py"),
|
26
|
+
st.Page(dir_path / "Animation_Demo.py"),
|
27
|
+
st.Page(dir_path / "Plotting_Demo.py"),
|
28
|
+
st.Page(dir_path / "Mapping_Demo.py"),
|
29
|
+
st.Page(dir_path / "Dataframe_Demo.py"),
|
30
|
+
]
|
31
|
+
)
|
32
|
+
|
33
|
+
page.run()
|
34
|
+
|
35
|
+
|
36
|
+
if __name__ == "__main__":
|
37
|
+
run()
|
streamlit/proto/Alert_pb2.py
CHANGED
@@ -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/Alert.proto
|
4
|
+
# Protobuf Python Version: 5.26.1
|
4
5
|
"""Generated protocol buffer code."""
|
5
|
-
from google.protobuf.internal import builder as _builder
|
6
6
|
from google.protobuf import descriptor as _descriptor
|
7
7
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
8
|
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
9
10
|
# @@protoc_insertion_point(imports)
|
10
11
|
|
11
12
|
_sym_db = _symbol_database.Default()
|
@@ -15,14 +16,14 @@ _sym_db = _symbol_database.Default()
|
|
15
16
|
|
16
17
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Alert.proto\"\x87\x01\n\x05\x41lert\x12\x0c\n\x04\x62ody\x18\x01 \x01(\t\x12\x1d\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\r.Alert.Format\x12\x0c\n\x04icon\x18\x03 \x01(\t\"C\n\x06\x46ormat\x12\n\n\x06UNUSED\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\x0b\n\x07SUCCESS\x10\x04\x42*\n\x1c\x63om.snowflake.apps.streamlitB\nAlertProtob\x06proto3')
|
17
18
|
|
18
|
-
|
19
|
-
_builder.
|
20
|
-
|
21
|
-
|
22
|
-
DESCRIPTOR.
|
23
|
-
DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nAlertProto'
|
24
|
-
_ALERT._serialized_start=32
|
25
|
-
_ALERT._serialized_end=167
|
26
|
-
_ALERT_FORMAT._serialized_start=100
|
27
|
-
_ALERT_FORMAT._serialized_end=167
|
19
|
+
_globals = globals()
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Alert_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\nAlertProto'
|
25
|
+
_globals['_ALERT']._serialized_start=32
|
26
|
+
_globals['_ALERT']._serialized_end=167
|
27
|
+
_globals['_ALERT_FORMAT']._serialized_start=100
|
28
|
+
_globals['_ALERT_FORMAT']._serialized_end=167
|
28
29
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/Alert_pb2.pyi
CHANGED
@@ -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,6 +31,7 @@ else:
|
|
30
31
|
|
31
32
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
32
33
|
|
34
|
+
@typing.final
|
33
35
|
class Alert(google.protobuf.message.Message):
|
34
36
|
"""NOTE: This proto type is used by some external services so needs to remain
|
35
37
|
relatively stable. While it isn't entirely set in stone, changing it
|
@@ -42,7 +44,7 @@ class Alert(google.protobuf.message.Message):
|
|
42
44
|
ValueType = typing.NewType("ValueType", builtins.int)
|
43
45
|
V: typing_extensions.TypeAlias = ValueType
|
44
46
|
|
45
|
-
class _FormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Alert._Format.ValueType], builtins.type):
|
47
|
+
class _FormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Alert._Format.ValueType], builtins.type):
|
46
48
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
47
49
|
UNUSED: Alert._Format.ValueType # 0
|
48
50
|
"""Plain, fixed width text."""
|
@@ -83,6 +85,6 @@ class Alert(google.protobuf.message.Message):
|
|
83
85
|
format: global___Alert.Format.ValueType = ...,
|
84
86
|
icon: builtins.str = ...,
|
85
87
|
) -> None: ...
|
86
|
-
def ClearField(self, field_name:
|
88
|
+
def ClearField(self, field_name: typing.Literal["body", b"body", "format", b"format", "icon", b"icon"]) -> None: ...
|
87
89
|
|
88
90
|
global___Alert = Alert
|
streamlit/proto/AppPage_pb2.py
CHANGED
@@ -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/AppPage.proto
|
4
|
+
# Protobuf Python Version: 5.26.1
|
4
5
|
"""Generated protocol buffer code."""
|
5
|
-
from google.protobuf.internal import builder as _builder
|
6
6
|
from google.protobuf import descriptor as _descriptor
|
7
7
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
8
|
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
9
10
|
# @@protoc_insertion_point(imports)
|
10
11
|
|
11
12
|
_sym_db = _symbol_database.Default()
|
@@ -15,12 +16,12 @@ _sym_db = _symbol_database.Default()
|
|
15
16
|
|
16
17
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/AppPage.proto\"\x86\x01\n\x07\x41ppPage\x12\x18\n\x10page_script_hash\x18\x01 \x01(\t\x12\x11\n\tpage_name\x18\x02 \x01(\t\x12\x0c\n\x04icon\x18\x03 \x01(\t\x12\x12\n\nis_default\x18\x04 \x01(\x08\x12\x16\n\x0esection_header\x18\x05 \x01(\t\x12\x14\n\x0curl_pathname\x18\x06 \x01(\tB,\n\x1c\x63om.snowflake.apps.streamlitB\x0c\x41ppPageProtob\x06proto3')
|
17
18
|
|
18
|
-
|
19
|
-
_builder.
|
20
|
-
|
21
|
-
|
22
|
-
DESCRIPTOR.
|
23
|
-
DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014AppPageProto'
|
24
|
-
_APPPAGE._serialized_start=34
|
25
|
-
_APPPAGE._serialized_end=168
|
19
|
+
_globals = globals()
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.AppPage_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\014AppPageProto'
|
25
|
+
_globals['_APPPAGE']._serialized_start=34
|
26
|
+
_globals['_APPPAGE']._serialized_end=168
|
26
27
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/AppPage_pb2.pyi
CHANGED
@@ -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
|
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 AppPage(google.protobuf.message.Message):
|
32
29
|
"""A page in the app. Includes both the name of the page as well as the full
|
33
30
|
path to the corresponding script file.
|
@@ -62,6 +59,6 @@ class AppPage(google.protobuf.message.Message):
|
|
62
59
|
section_header: builtins.str = ...,
|
63
60
|
url_pathname: builtins.str = ...,
|
64
61
|
) -> None: ...
|
65
|
-
def ClearField(self, field_name:
|
62
|
+
def ClearField(self, field_name: typing.Literal["icon", b"icon", "is_default", b"is_default", "page_name", b"page_name", "page_script_hash", b"page_script_hash", "section_header", b"section_header", "url_pathname", b"url_pathname"]) -> None: ...
|
66
63
|
|
67
64
|
global___AppPage = AppPage
|
@@ -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/ArrowNamedDataSet.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,12 +17,12 @@ from streamlit.proto import Arrow_pb2 as streamlit_dot_proto_dot_Arrow__pb2
|
|
16
17
|
|
17
18
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'streamlit/proto/ArrowNamedDataSet.proto\x1a\x1bstreamlit/proto/Arrow.proto\"I\n\x11\x41rrowNamedDataSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08has_name\x18\x03 \x01(\x08\x12\x14\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x06.ArrowB6\n\x1c\x63om.snowflake.apps.streamlitB\x16\x41rrowNamedDataSetProtob\x06proto3')
|
18
19
|
|
19
|
-
|
20
|
-
_builder.
|
21
|
-
|
22
|
-
|
23
|
-
DESCRIPTOR.
|
24
|
-
DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\026ArrowNamedDataSetProto'
|
25
|
-
_ARROWNAMEDDATASET._serialized_start=72
|
26
|
-
_ARROWNAMEDDATASET._serialized_end=145
|
20
|
+
_globals = globals()
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.ArrowNamedDataSet_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\026ArrowNamedDataSetProto'
|
26
|
+
_globals['_ARROWNAMEDDATASET']._serialized_start=72
|
27
|
+
_globals['_ARROWNAMEDDATASET']._serialized_end=145
|
27
28
|
# @@protoc_insertion_point(module_scope)
|
@@ -16,19 +16,16 @@ 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.Arrow_pb2
|
23
|
-
import
|
24
|
-
|
25
|
-
if sys.version_info >= (3, 8):
|
26
|
-
import typing as typing_extensions
|
27
|
-
else:
|
28
|
-
import typing_extensions
|
24
|
+
import typing
|
29
25
|
|
30
26
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
31
27
|
|
28
|
+
@typing.final
|
32
29
|
class ArrowNamedDataSet(google.protobuf.message.Message):
|
33
30
|
"""A dataset that can be referenced by name."""
|
34
31
|
|
@@ -46,6 +43,7 @@ class ArrowNamedDataSet(google.protobuf.message.Message):
|
|
46
43
|
@property
|
47
44
|
def data(self) -> streamlit.proto.Arrow_pb2.Arrow:
|
48
45
|
"""The data itself."""
|
46
|
+
|
49
47
|
def __init__(
|
50
48
|
self,
|
51
49
|
*,
|
@@ -53,7 +51,7 @@ class ArrowNamedDataSet(google.protobuf.message.Message):
|
|
53
51
|
has_name: builtins.bool = ...,
|
54
52
|
data: streamlit.proto.Arrow_pb2.Arrow | None = ...,
|
55
53
|
) -> None: ...
|
56
|
-
def HasField(self, field_name:
|
57
|
-
def ClearField(self, field_name:
|
54
|
+
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
|
55
|
+
def ClearField(self, field_name: typing.Literal["data", b"data", "has_name", b"has_name", "name", b"name"]) -> None: ...
|
58
56
|
|
59
57
|
global___ArrowNamedDataSet = ArrowNamedDataSet
|
@@ -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/ArrowVegaLiteChart.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 ArrowNamedDataSet_pb2 as streamlit_dot_proto_dot_Arr
|
|
17
18
|
|
18
19
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(streamlit/proto/ArrowVegaLiteChart.proto\x1a\x1bstreamlit/proto/Arrow.proto\x1a\'streamlit/proto/ArrowNamedDataSet.proto\"\xc5\x01\n\x12\x41rrowVegaLiteChart\x12\x0c\n\x04spec\x18\x01 \x01(\t\x12\x14\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x06.Arrow\x12$\n\x08\x64\x61tasets\x18\x04 \x03(\x0b\x32\x12.ArrowNamedDataSet\x12\x1b\n\x13use_container_width\x18\x05 \x01(\x08\x12\r\n\x05theme\x18\x06 \x01(\t\x12\n\n\x02id\x18\x07 \x01(\t\x12\x16\n\x0eselection_mode\x18\x08 \x03(\t\x12\x0f\n\x07\x66orm_id\x18\t \x01(\tJ\x04\x08\x03\x10\x04\x42\x37\n\x1c\x63om.snowflake.apps.streamlitB\x17\x41rrowVegaLiteChartProtob\x06proto3')
|
19
20
|
|
20
|
-
|
21
|
-
_builder.
|
22
|
-
|
23
|
-
|
24
|
-
DESCRIPTOR.
|
25
|
-
DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\027ArrowVegaLiteChartProto'
|
26
|
-
_ARROWVEGALITECHART._serialized_start=115
|
27
|
-
_ARROWVEGALITECHART._serialized_end=312
|
21
|
+
_globals = globals()
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.ArrowVegaLiteChart_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\027ArrowVegaLiteChartProto'
|
27
|
+
_globals['_ARROWVEGALITECHART']._serialized_start=115
|
28
|
+
_globals['_ARROWVEGALITECHART']._serialized_end=312
|
28
29
|
# @@protoc_insertion_point(module_scope)
|
@@ -16,6 +16,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
16
|
See the License for the specific language governing permissions and
|
17
17
|
limitations under the License.
|
18
18
|
"""
|
19
|
+
|
19
20
|
import builtins
|
20
21
|
import collections.abc
|
21
22
|
import google.protobuf.descriptor
|
@@ -23,15 +24,11 @@ import google.protobuf.internal.containers
|
|
23
24
|
import google.protobuf.message
|
24
25
|
import streamlit.proto.ArrowNamedDataSet_pb2
|
25
26
|
import streamlit.proto.Arrow_pb2
|
26
|
-
import
|
27
|
-
|
28
|
-
if sys.version_info >= (3, 8):
|
29
|
-
import typing as typing_extensions
|
30
|
-
else:
|
31
|
-
import typing_extensions
|
27
|
+
import typing
|
32
28
|
|
33
29
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
34
30
|
|
31
|
+
@typing.final
|
35
32
|
class ArrowVegaLiteChart(google.protobuf.message.Message):
|
36
33
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
37
34
|
|
@@ -45,27 +42,30 @@ class ArrowVegaLiteChart(google.protobuf.message.Message):
|
|
45
42
|
FORM_ID_FIELD_NUMBER: builtins.int
|
46
43
|
spec: builtins.str
|
47
44
|
"""The a JSON-formatted string with the Vega-Lite spec."""
|
45
|
+
use_container_width: builtins.bool
|
46
|
+
"""If True, will overwrite the chart width spec to fit to container."""
|
47
|
+
theme: builtins.str
|
48
|
+
"""override the properties with a theme. Currently, only "streamlit" or None are accepted."""
|
49
|
+
id: builtins.str
|
50
|
+
"""ID, required for selection events."""
|
51
|
+
form_id: builtins.str
|
52
|
+
"""The form ID of the widget, this is required if selections are activated on the chart."""
|
48
53
|
@property
|
49
54
|
def data(self) -> streamlit.proto.Arrow_pb2.Arrow:
|
50
55
|
"""The dataframe that will be used as the chart's main data source, if
|
51
56
|
specified using Vega-Lite's inline API.
|
52
57
|
"""
|
58
|
+
|
53
59
|
@property
|
54
60
|
def datasets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[streamlit.proto.ArrowNamedDataSet_pb2.ArrowNamedDataSet]:
|
55
61
|
"""Dataframes associated with this chart using Vega-Lite's datasets API, if
|
56
62
|
any. The data is either in `data` field or in the `datasets` field.
|
57
63
|
"""
|
58
|
-
|
59
|
-
"""If True, will overwrite the chart width spec to fit to container."""
|
60
|
-
theme: builtins.str
|
61
|
-
"""override the properties with a theme. Currently, only "streamlit" or None are accepted."""
|
62
|
-
id: builtins.str
|
63
|
-
"""ID, required for selection events."""
|
64
|
+
|
64
65
|
@property
|
65
66
|
def selection_mode(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
66
67
|
"""Named selection parameters that are activated to trigger reruns."""
|
67
|
-
|
68
|
-
"""The form ID of the widget, this is required if selections are activated on the chart."""
|
68
|
+
|
69
69
|
def __init__(
|
70
70
|
self,
|
71
71
|
*,
|
@@ -78,7 +78,7 @@ class ArrowVegaLiteChart(google.protobuf.message.Message):
|
|
78
78
|
selection_mode: collections.abc.Iterable[builtins.str] | None = ...,
|
79
79
|
form_id: builtins.str = ...,
|
80
80
|
) -> None: ...
|
81
|
-
def HasField(self, field_name:
|
82
|
-
def ClearField(self, field_name:
|
81
|
+
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
|
82
|
+
def ClearField(self, field_name: typing.Literal["data", b"data", "datasets", b"datasets", "form_id", b"form_id", "id", b"id", "selection_mode", b"selection_mode", "spec", b"spec", "theme", b"theme", "use_container_width", b"use_container_width"]) -> None: ...
|
83
83
|
|
84
84
|
global___ArrowVegaLiteChart = ArrowVegaLiteChart
|
streamlit/proto/Arrow_pb2.py
CHANGED
@@ -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/Arrow.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\x1bstreamlit/proto/Arrow.proto\"\xa3\x03\n\x05\x41rrow\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x17\n\x06styler\x18\x02 \x01(\x0b\x32\x07.Styler\x12\r\n\x05width\x18\x03 \x01(\r\x12\x0e\n\x06height\x18\x04 \x01(\r\x12\x1b\n\x13use_container_width\x18\x05 \x01(\x08\x12\n\n\x02id\x18\x06 \x01(\t\x12\x0f\n\x07\x63olumns\x18\x07 \x01(\t\x12(\n\x0c\x65\x64iting_mode\x18\x08 \x01(\x0e\x32\x12.Arrow.EditingMode\x12\x10\n\x08\x64isabled\x18\t \x01(\x08\x12\x0f\n\x07\x66orm_id\x18\n \x01(\t\x12\x14\n\x0c\x63olumn_order\x18\x0b \x03(\t\x12,\n\x0eselection_mode\x18\x0c \x03(\x0e\x32\x14.Arrow.SelectionMode\"4\n\x0b\x45\x64itingMode\x12\r\n\tREAD_ONLY\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x0b\n\x07\x44YNAMIC\x10\x02\"S\n\rSelectionMode\x12\x0e\n\nSINGLE_ROW\x10\x00\x12\r\n\tMULTI_ROW\x10\x01\x12\x11\n\rSINGLE_COLUMN\x10\x02\x12\x10\n\x0cMULTI_COLUMN\x10\x03\"O\n\x06Styler\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\x0f\n\x07\x63\x61ption\x18\x02 \x01(\t\x12\x0e\n\x06styles\x18\x03 \x01(\t\x12\x16\n\x0e\x64isplay_values\x18\x04 \x01(\x0c\x42*\n\x1c\x63om.snowflake.apps.streamlitB\nArrowProtob\x06proto3')
|
17
18
|
|
18
|
-
|
19
|
-
_builder.
|
20
|
-
|
21
|
-
|
22
|
-
DESCRIPTOR.
|
23
|
-
DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nArrowProto'
|
24
|
-
_ARROW._serialized_start=32
|
25
|
-
_ARROW._serialized_end=451
|
26
|
-
_ARROW_EDITINGMODE._serialized_start=314
|
27
|
-
_ARROW_EDITINGMODE._serialized_end=366
|
28
|
-
_ARROW_SELECTIONMODE._serialized_start=368
|
29
|
-
_ARROW_SELECTIONMODE._serialized_end=451
|
30
|
-
_STYLER._serialized_start=453
|
31
|
-
_STYLER._serialized_end=532
|
19
|
+
_globals = globals()
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Arrow_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\nArrowProto'
|
25
|
+
_globals['_ARROW']._serialized_start=32
|
26
|
+
_globals['_ARROW']._serialized_end=451
|
27
|
+
_globals['_ARROW_EDITINGMODE']._serialized_start=314
|
28
|
+
_globals['_ARROW_EDITINGMODE']._serialized_end=366
|
29
|
+
_globals['_ARROW_SELECTIONMODE']._serialized_start=368
|
30
|
+
_globals['_ARROW_SELECTIONMODE']._serialized_end=451
|
31
|
+
_globals['_STYLER']._serialized_start=453
|
32
|
+
_globals['_STYLER']._serialized_end=532
|
32
33
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/Arrow_pb2.pyi
CHANGED
@@ -16,6 +16,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
16
|
See the License for the specific language governing permissions and
|
17
17
|
limitations under the License.
|
18
18
|
"""
|
19
|
+
|
19
20
|
import builtins
|
20
21
|
import collections.abc
|
21
22
|
import google.protobuf.descriptor
|
@@ -32,6 +33,7 @@ else:
|
|
32
33
|
|
33
34
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
34
35
|
|
36
|
+
@typing.final
|
35
37
|
class Arrow(google.protobuf.message.Message):
|
36
38
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
37
39
|
|
@@ -39,7 +41,7 @@ class Arrow(google.protobuf.message.Message):
|
|
39
41
|
ValueType = typing.NewType("ValueType", builtins.int)
|
40
42
|
V: typing_extensions.TypeAlias = ValueType
|
41
43
|
|
42
|
-
class _EditingModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Arrow._EditingMode.ValueType], builtins.type):
|
44
|
+
class _EditingModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Arrow._EditingMode.ValueType], builtins.type):
|
43
45
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
44
46
|
READ_ONLY: Arrow._EditingMode.ValueType # 0
|
45
47
|
"""Read-only table."""
|
@@ -62,7 +64,7 @@ class Arrow(google.protobuf.message.Message):
|
|
62
64
|
ValueType = typing.NewType("ValueType", builtins.int)
|
63
65
|
V: typing_extensions.TypeAlias = ValueType
|
64
66
|
|
65
|
-
class _SelectionModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Arrow._SelectionMode.ValueType], builtins.type):
|
67
|
+
class _SelectionModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Arrow._SelectionMode.ValueType], builtins.type):
|
66
68
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
67
69
|
SINGLE_ROW: Arrow._SelectionMode.ValueType # 0
|
68
70
|
"""Only one row can be selected at a time."""
|
@@ -99,9 +101,6 @@ class Arrow(google.protobuf.message.Message):
|
|
99
101
|
SELECTION_MODE_FIELD_NUMBER: builtins.int
|
100
102
|
data: builtins.bytes
|
101
103
|
"""The serialized arrow dataframe"""
|
102
|
-
@property
|
103
|
-
def styler(self) -> global___Styler:
|
104
|
-
"""Pandas styler information"""
|
105
104
|
width: builtins.int
|
106
105
|
"""Width in pixels"""
|
107
106
|
height: builtins.int
|
@@ -118,12 +117,18 @@ class Arrow(google.protobuf.message.Message):
|
|
118
117
|
"""Deactivates editing"""
|
119
118
|
form_id: builtins.str
|
120
119
|
"""The form ID of the widget, this is required if the dataframe is editable"""
|
120
|
+
@property
|
121
|
+
def styler(self) -> global___Styler:
|
122
|
+
"""Pandas styler information"""
|
123
|
+
|
121
124
|
@property
|
122
125
|
def column_order(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
123
126
|
"""Defines the order in which columns are displayed"""
|
127
|
+
|
124
128
|
@property
|
125
129
|
def selection_mode(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___Arrow.SelectionMode.ValueType]:
|
126
130
|
"""Activated dataframe selections events"""
|
131
|
+
|
127
132
|
def __init__(
|
128
133
|
self,
|
129
134
|
*,
|
@@ -140,11 +145,12 @@ class Arrow(google.protobuf.message.Message):
|
|
140
145
|
column_order: collections.abc.Iterable[builtins.str] | None = ...,
|
141
146
|
selection_mode: collections.abc.Iterable[global___Arrow.SelectionMode.ValueType] | None = ...,
|
142
147
|
) -> None: ...
|
143
|
-
def HasField(self, field_name:
|
144
|
-
def ClearField(self, field_name:
|
148
|
+
def HasField(self, field_name: typing.Literal["styler", b"styler"]) -> builtins.bool: ...
|
149
|
+
def ClearField(self, field_name: typing.Literal["column_order", b"column_order", "columns", b"columns", "data", b"data", "disabled", b"disabled", "editing_mode", b"editing_mode", "form_id", b"form_id", "height", b"height", "id", b"id", "selection_mode", b"selection_mode", "styler", b"styler", "use_container_width", b"use_container_width", "width", b"width"]) -> None: ...
|
145
150
|
|
146
151
|
global___Arrow = Arrow
|
147
152
|
|
153
|
+
@typing.final
|
148
154
|
class Styler(google.protobuf.message.Message):
|
149
155
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
150
156
|
|
@@ -172,6 +178,6 @@ class Styler(google.protobuf.message.Message):
|
|
172
178
|
styles: builtins.str = ...,
|
173
179
|
display_values: builtins.bytes = ...,
|
174
180
|
) -> None: ...
|
175
|
-
def ClearField(self, field_name:
|
181
|
+
def ClearField(self, field_name: typing.Literal["caption", b"caption", "display_values", b"display_values", "styles", b"styles", "uuid", b"uuid"]) -> None: ...
|
176
182
|
|
177
183
|
global___Styler = Styler
|
streamlit/proto/Audio_pb2.py
CHANGED
@@ -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/Audio.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\x1bstreamlit/proto/Audio.proto\"\x86\x01\n\x05\x41udio\x12\x0b\n\x03url\x18\x05 \x01(\t\x12\x12\n\nstart_time\x18\x03 \x01(\x05\x12\x10\n\x08\x65nd_time\x18\x06 \x01(\x05\x12\x0c\n\x04loop\x18\x07 \x01(\x08\x12\x10\n\x08\x61utoplay\x18\x08 \x01(\x08\x12\n\n\x02id\x18\t \x01(\tJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x04\x10\x05R\x04\x64\x61taR\x06\x66ormatB*\n\x1c\x63om.snowflake.apps.streamlitB\nAudioProtob\x06proto3')
|
17
18
|
|
18
|
-
|
19
|
-
_builder.
|
20
|
-
|
21
|
-
|
22
|
-
DESCRIPTOR.
|
23
|
-
DESCRIPTOR._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nAudioProto'
|
24
|
-
_AUDIO._serialized_start=32
|
25
|
-
_AUDIO._serialized_end=166
|
19
|
+
_globals = globals()
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Audio_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\nAudioProto'
|
25
|
+
_globals['_AUDIO']._serialized_start=32
|
26
|
+
_globals['_AUDIO']._serialized_end=166
|
26
27
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/Audio_pb2.pyi
CHANGED
@@ -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
|
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 Audio(google.protobuf.message.Message):
|
32
29
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
33
30
|
|
@@ -56,6 +53,6 @@ class Audio(google.protobuf.message.Message):
|
|
56
53
|
autoplay: builtins.bool = ...,
|
57
54
|
id: builtins.str = ...,
|
58
55
|
) -> None: ...
|
59
|
-
def ClearField(self, field_name:
|
56
|
+
def ClearField(self, field_name: typing.Literal["autoplay", b"autoplay", "end_time", b"end_time", "id", b"id", "loop", b"loop", "start_time", b"start_time", "url", b"url"]) -> None: ...
|
60
57
|
|
61
58
|
global___Audio = Audio
|