streamlit-nightly 1.52.3.dev20260112__py3-none-any.whl → 1.52.3.dev20260113__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/__init__.py +1 -1
- streamlit/auth_util.py +1 -1
- streamlit/cli_util.py +1 -1
- streamlit/components/v2/bidi_component/main.py +2 -2
- streamlit/connections/snowflake_connection.py +1 -1
- streamlit/dataframe_util.py +1 -3
- streamlit/elements/arrow.py +5 -1
- streamlit/elements/lib/color_util.py +1 -1
- streamlit/elements/lib/image_utils.py +1 -1
- streamlit/elements/vega_charts.py +4 -1
- streamlit/elements/widgets/multiselect.py +1 -1
- streamlit/elements/widgets/time_widgets.py +1 -1
- streamlit/elements/write.py +1 -2
- streamlit/errors.py +2 -0
- streamlit/external/langchain/streamlit_callback_handler.py +1 -1
- streamlit/proto/Alert_pb2.pyi +31 -31
- streamlit/proto/AppPage_pb2.pyi +30 -30
- streamlit/proto/ArrowData_pb2.pyi +15 -15
- streamlit/proto/ArrowNamedDataSet_pb2.pyi +25 -25
- streamlit/proto/ArrowVegaLiteChart_pb2.pyi +45 -45
- streamlit/proto/Arrow_pb2.pyi +126 -97
- streamlit/proto/AudioInput_pb2.pyi +39 -39
- streamlit/proto/Audio_pb2.pyi +39 -39
- streamlit/proto/AuthRedirect_pb2.pyi +15 -15
- streamlit/proto/AutoRerun_pb2.pyi +18 -18
- streamlit/proto/BackMsg_pb2.pyi +64 -64
- streamlit/proto/Balloons_pb2.pyi +15 -15
- streamlit/proto/BidiComponent_pb2.pyi +100 -100
- streamlit/proto/Block_pb2.pyi +295 -264
- streamlit/proto/BokehChart_pb2.pyi +21 -21
- streamlit/proto/ButtonGroup_pb2.pyi +96 -96
- streamlit/proto/ButtonLikeIconPosition_pb2.pyi +12 -12
- streamlit/proto/Button_pb2.pyi +63 -50
- streamlit/proto/CameraInput_pb2.pyi +34 -34
- streamlit/proto/ChatInput_pb2.pyi +63 -63
- streamlit/proto/Checkbox_pb2.pyi +49 -49
- streamlit/proto/ClientState_pb2.pyi +85 -85
- streamlit/proto/Code_pb2.pyi +41 -28
- streamlit/proto/ColorPicker_pb2.pyi +43 -43
- streamlit/proto/Common_pb2.pyi +175 -175
- streamlit/proto/Components_pb2.pyi +110 -110
- streamlit/proto/DataFrame_pb2.pyi +209 -209
- streamlit/proto/DateInput_pb2.pyi +59 -59
- streamlit/proto/DateTimeInput_pb2.pyi +62 -62
- streamlit/proto/DeckGlJsonChart_pb2.pyi +91 -56
- streamlit/proto/Delta_pb2.pyi +44 -44
- streamlit/proto/DocString_pb2.pyi +51 -51
- streamlit/proto/DownloadButton_pb2.pyi +59 -59
- streamlit/proto/Element_pb2.pyi +319 -319
- streamlit/proto/Empty_pb2.pyi +10 -10
- streamlit/proto/Exception_pb2.pyi +37 -37
- streamlit/proto/Favicon_pb2.pyi +15 -15
- streamlit/proto/FileUploader_pb2.pyi +49 -49
- streamlit/proto/ForwardMsg_pb2.pyi +176 -170
- streamlit/proto/GapSize_pb2.pyi +23 -23
- streamlit/proto/GitInfo_pb2.pyi +37 -37
- streamlit/proto/GraphVizChart_pb2.pyi +38 -25
- streamlit/proto/Heading_pb2.pyi +30 -30
- streamlit/proto/HeightConfig_pb2.pyi +31 -31
- streamlit/proto/Html_pb2.pyi +18 -18
- streamlit/proto/IFrame_pb2.pyi +76 -47
- streamlit/proto/Image_pb2.pyi +49 -36
- streamlit/proto/Json_pb2.pyi +25 -25
- streamlit/proto/LabelVisibilityMessage_pb2.pyi +18 -18
- streamlit/proto/LinkButton_pb2.pyi +43 -43
- streamlit/proto/Logo_pb2.pyi +24 -24
- streamlit/proto/Markdown_pb2.pyi +30 -30
- streamlit/proto/Metric_pb2.pyi +59 -59
- streamlit/proto/MetricsEvent_pb2.pyi +171 -171
- streamlit/proto/MultiSelect_pb2.pyi +72 -66
- streamlit/proto/NamedDataSet_pb2.pyi +25 -25
- streamlit/proto/Navigation_pb2.pyi +35 -35
- streamlit/proto/NewSession_pb2.pyi +511 -498
- streamlit/proto/NumberInput_pb2.pyi +79 -79
- streamlit/proto/PageConfig_pb2.pyi +71 -71
- streamlit/proto/PageInfo_pb2.pyi +15 -15
- streamlit/proto/PageLink_pb2.pyi +47 -47
- streamlit/proto/PageNotFound_pb2.pyi +15 -15
- streamlit/proto/PageProfile_pb2.pyi +85 -85
- streamlit/proto/PagesChanged_pb2.pyi +19 -19
- streamlit/proto/ParentMessage_pb2.pyi +15 -15
- streamlit/proto/PlotlyChart_pb2.pyi +79 -64
- streamlit/proto/Progress_pb2.pyi +18 -18
- streamlit/proto/Radio_pb2.pyi +62 -62
- streamlit/proto/RootContainer_pb2.pyi +12 -12
- streamlit/proto/Selectbox_pb2.pyi +80 -70
- streamlit/proto/SessionEvent_pb2.pyi +27 -27
- streamlit/proto/SessionStatus_pb2.pyi +18 -18
- streamlit/proto/Skeleton_pb2.pyi +25 -25
- streamlit/proto/Slider_pb2.pyi +74 -74
- streamlit/proto/Snow_pb2.pyi +15 -15
- streamlit/proto/Space_pb2.pyi +10 -10
- streamlit/proto/Spinner_pb2.pyi +21 -21
- streamlit/proto/TextAlignmentConfig_pb2.pyi +18 -18
- streamlit/proto/TextArea_pb2.pyi +72 -59
- streamlit/proto/TextInput_pb2.pyi +67 -67
- streamlit/proto/Text_pb2.pyi +18 -18
- streamlit/proto/TimeInput_pb2.pyi +52 -52
- streamlit/proto/Toast_pb2.pyi +25 -25
- streamlit/proto/Transient_pb2.pyi +19 -19
- streamlit/proto/VegaLiteChart_pb2.pyi +32 -32
- streamlit/proto/Video_pb2.pyi +65 -65
- streamlit/proto/WidgetStates_pb2.pyi +91 -85
- streamlit/proto/WidthConfig_pb2.pyi +31 -31
- streamlit/proto/openmetrics_data_model_pb2.pyi +269 -269
- streamlit/runtime/app_session.py +1 -1
- streamlit/runtime/credentials.py +2 -2
- streamlit/runtime/metrics_util.py +3 -3
- streamlit/runtime/secrets.py +1 -1
- streamlit/runtime/stats.py +1 -3
- streamlit/testing/v1/app_test.py +1 -1
- streamlit/web/server/starlette/starlette_routes.py +1 -3
- streamlit/web/server/stats_request_handler.py +1 -3
- {streamlit_nightly-1.52.3.dev20260112.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.52.3.dev20260112.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/RECORD +119 -119
- {streamlit_nightly-1.52.3.dev20260112.data → streamlit_nightly-1.52.3.dev20260113.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.52.3.dev20260112.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.52.3.dev20260112.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.52.3.dev20260112.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/top_level.txt +0 -0
|
@@ -17,40 +17,40 @@ See the License for the specific language governing permissions and
|
|
|
17
17
|
limitations under the License.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
import
|
|
20
|
+
from google.protobuf import descriptor as _descriptor
|
|
21
|
+
from google.protobuf import message as _message
|
|
22
|
+
import builtins as _builtins
|
|
23
23
|
import sys
|
|
24
|
-
import typing
|
|
24
|
+
import typing as _typing
|
|
25
25
|
|
|
26
26
|
if sys.version_info >= (3, 10):
|
|
27
|
-
|
|
27
|
+
from typing import TypeAlias as _TypeAlias
|
|
28
28
|
else:
|
|
29
|
-
import
|
|
29
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
30
30
|
|
|
31
|
-
DESCRIPTOR:
|
|
31
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
32
32
|
|
|
33
|
-
@
|
|
34
|
-
class BokehChart(
|
|
35
|
-
DESCRIPTOR:
|
|
33
|
+
@_typing.final
|
|
34
|
+
class BokehChart(_message.Message):
|
|
35
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
36
36
|
|
|
37
|
-
FIGURE_FIELD_NUMBER:
|
|
38
|
-
USE_CONTAINER_WIDTH_FIELD_NUMBER:
|
|
39
|
-
ELEMENT_ID_FIELD_NUMBER:
|
|
40
|
-
figure:
|
|
37
|
+
FIGURE_FIELD_NUMBER: _builtins.int
|
|
38
|
+
USE_CONTAINER_WIDTH_FIELD_NUMBER: _builtins.int
|
|
39
|
+
ELEMENT_ID_FIELD_NUMBER: _builtins.int
|
|
40
|
+
figure: _builtins.str
|
|
41
41
|
"""A JSON-formatted string from the Bokeh chart figure."""
|
|
42
|
-
use_container_width:
|
|
42
|
+
use_container_width: _builtins.bool
|
|
43
43
|
"""If True, will overwrite the chart width spec to fit to container."""
|
|
44
|
-
element_id:
|
|
44
|
+
element_id: _builtins.str
|
|
45
45
|
"""A unique ID of this element."""
|
|
46
46
|
def __init__(
|
|
47
47
|
self,
|
|
48
48
|
*,
|
|
49
|
-
figure:
|
|
50
|
-
use_container_width:
|
|
51
|
-
element_id:
|
|
49
|
+
figure: _builtins.str = ...,
|
|
50
|
+
use_container_width: _builtins.bool = ...,
|
|
51
|
+
element_id: _builtins.str = ...,
|
|
52
52
|
) -> None: ...
|
|
53
|
-
_ClearFieldArgType:
|
|
53
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["element_id", b"element_id", "figure", b"figure", "use_container_width", b"use_container_width"] # noqa: Y015
|
|
54
54
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
55
55
|
|
|
56
|
-
Global___BokehChart:
|
|
56
|
+
Global___BokehChart: _TypeAlias = BokehChart # noqa: Y015
|
|
@@ -17,33 +17,33 @@ See the License for the specific language governing permissions and
|
|
|
17
17
|
limitations under the License.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
import
|
|
26
|
-
import
|
|
20
|
+
from collections import abc as _abc
|
|
21
|
+
from google.protobuf import descriptor as _descriptor
|
|
22
|
+
from google.protobuf import message as _message
|
|
23
|
+
from google.protobuf.internal import containers as _containers
|
|
24
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
25
|
+
from streamlit.proto import LabelVisibilityMessage_pb2 as _LabelVisibilityMessage_pb2
|
|
26
|
+
import builtins as _builtins
|
|
27
27
|
import sys
|
|
28
|
-
import typing
|
|
28
|
+
import typing as _typing
|
|
29
29
|
|
|
30
30
|
if sys.version_info >= (3, 10):
|
|
31
|
-
|
|
31
|
+
from typing import TypeAlias as _TypeAlias
|
|
32
32
|
else:
|
|
33
|
-
import
|
|
33
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
34
34
|
|
|
35
|
-
DESCRIPTOR:
|
|
35
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
36
36
|
|
|
37
|
-
@
|
|
38
|
-
class ButtonGroup(
|
|
39
|
-
DESCRIPTOR:
|
|
37
|
+
@_typing.final
|
|
38
|
+
class ButtonGroup(_message.Message):
|
|
39
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
40
40
|
|
|
41
41
|
class _ClickMode:
|
|
42
|
-
ValueType =
|
|
43
|
-
V:
|
|
42
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
43
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
44
44
|
|
|
45
|
-
class _ClickModeEnumTypeWrapper(
|
|
46
|
-
DESCRIPTOR:
|
|
45
|
+
class _ClickModeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[ButtonGroup._ClickMode.ValueType], _builtins.type):
|
|
46
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
47
47
|
SINGLE_SELECT: ButtonGroup._ClickMode.ValueType # 0
|
|
48
48
|
MULTI_SELECT: ButtonGroup._ClickMode.ValueType # 1
|
|
49
49
|
|
|
@@ -52,11 +52,11 @@ class ButtonGroup(google.protobuf.message.Message):
|
|
|
52
52
|
MULTI_SELECT: ButtonGroup.ClickMode.ValueType # 1
|
|
53
53
|
|
|
54
54
|
class _SelectionVisualization:
|
|
55
|
-
ValueType =
|
|
56
|
-
V:
|
|
55
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
56
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
57
57
|
|
|
58
|
-
class _SelectionVisualizationEnumTypeWrapper(
|
|
59
|
-
DESCRIPTOR:
|
|
58
|
+
class _SelectionVisualizationEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[ButtonGroup._SelectionVisualization.ValueType], _builtins.type):
|
|
59
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
60
60
|
ONLY_SELECTED: ButtonGroup._SelectionVisualization.ValueType # 0
|
|
61
61
|
ALL_UP_TO_SELECTED: ButtonGroup._SelectionVisualization.ValueType # 1
|
|
62
62
|
|
|
@@ -65,11 +65,11 @@ class ButtonGroup(google.protobuf.message.Message):
|
|
|
65
65
|
ALL_UP_TO_SELECTED: ButtonGroup.SelectionVisualization.ValueType # 1
|
|
66
66
|
|
|
67
67
|
class _Style:
|
|
68
|
-
ValueType =
|
|
69
|
-
V:
|
|
68
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
69
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
70
70
|
|
|
71
|
-
class _StyleEnumTypeWrapper(
|
|
72
|
-
DESCRIPTOR:
|
|
71
|
+
class _StyleEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[ButtonGroup._Style.ValueType], _builtins.type):
|
|
72
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
73
73
|
SEGMENTED_CONTROL: ButtonGroup._Style.ValueType # 0
|
|
74
74
|
PILLS: ButtonGroup._Style.ValueType # 1
|
|
75
75
|
BORDERLESS: ButtonGroup._Style.ValueType # 2
|
|
@@ -79,103 +79,103 @@ class ButtonGroup(google.protobuf.message.Message):
|
|
|
79
79
|
PILLS: ButtonGroup.Style.ValueType # 1
|
|
80
80
|
BORDERLESS: ButtonGroup.Style.ValueType # 2
|
|
81
81
|
|
|
82
|
-
@
|
|
83
|
-
class Option(
|
|
84
|
-
DESCRIPTOR:
|
|
82
|
+
@_typing.final
|
|
83
|
+
class Option(_message.Message):
|
|
84
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
85
85
|
|
|
86
|
-
CONTENT_FIELD_NUMBER:
|
|
87
|
-
SELECTED_CONTENT_FIELD_NUMBER:
|
|
88
|
-
CONTENT_ICON_FIELD_NUMBER:
|
|
89
|
-
SELECTED_CONTENT_ICON_FIELD_NUMBER:
|
|
90
|
-
content:
|
|
91
|
-
selected_content:
|
|
86
|
+
CONTENT_FIELD_NUMBER: _builtins.int
|
|
87
|
+
SELECTED_CONTENT_FIELD_NUMBER: _builtins.int
|
|
88
|
+
CONTENT_ICON_FIELD_NUMBER: _builtins.int
|
|
89
|
+
SELECTED_CONTENT_ICON_FIELD_NUMBER: _builtins.int
|
|
90
|
+
content: _builtins.str
|
|
91
|
+
selected_content: _builtins.str
|
|
92
92
|
"""when set, this is the content that will be displayed when the option is selected"""
|
|
93
|
-
content_icon:
|
|
93
|
+
content_icon: _builtins.str
|
|
94
94
|
"""when set, this is the icon that will be displayed next to the option"""
|
|
95
|
-
selected_content_icon:
|
|
95
|
+
selected_content_icon: _builtins.str
|
|
96
96
|
"""when set, this is the icon that will be displayed next to the option when then option is selected"""
|
|
97
97
|
def __init__(
|
|
98
98
|
self,
|
|
99
99
|
*,
|
|
100
|
-
content:
|
|
101
|
-
selected_content:
|
|
102
|
-
content_icon:
|
|
103
|
-
selected_content_icon:
|
|
100
|
+
content: _builtins.str = ...,
|
|
101
|
+
selected_content: _builtins.str | None = ...,
|
|
102
|
+
content_icon: _builtins.str | None = ...,
|
|
103
|
+
selected_content_icon: _builtins.str | None = ...,
|
|
104
104
|
) -> None: ...
|
|
105
|
-
_HasFieldArgType:
|
|
106
|
-
def HasField(self, field_name: _HasFieldArgType) ->
|
|
107
|
-
_ClearFieldArgType:
|
|
105
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["_content_icon", b"_content_icon", "_selected_content", b"_selected_content", "_selected_content_icon", b"_selected_content_icon", "content_icon", b"content_icon", "selected_content", b"selected_content", "selected_content_icon", b"selected_content_icon"] # noqa: Y015
|
|
106
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
107
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["_content_icon", b"_content_icon", "_selected_content", b"_selected_content", "_selected_content_icon", b"_selected_content_icon", "content", b"content", "content_icon", b"content_icon", "selected_content", b"selected_content", "selected_content_icon", b"selected_content_icon"] # noqa: Y015
|
|
108
108
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
109
|
-
_WhichOneofReturnType__content_icon:
|
|
110
|
-
_WhichOneofArgType__content_icon:
|
|
111
|
-
_WhichOneofReturnType__selected_content:
|
|
112
|
-
_WhichOneofArgType__selected_content:
|
|
113
|
-
_WhichOneofReturnType__selected_content_icon:
|
|
114
|
-
_WhichOneofArgType__selected_content_icon:
|
|
115
|
-
@
|
|
109
|
+
_WhichOneofReturnType__content_icon: _TypeAlias = _typing.Literal["content_icon"] # noqa: Y015
|
|
110
|
+
_WhichOneofArgType__content_icon: _TypeAlias = _typing.Literal["_content_icon", b"_content_icon"] # noqa: Y015
|
|
111
|
+
_WhichOneofReturnType__selected_content: _TypeAlias = _typing.Literal["selected_content"] # noqa: Y015
|
|
112
|
+
_WhichOneofArgType__selected_content: _TypeAlias = _typing.Literal["_selected_content", b"_selected_content"] # noqa: Y015
|
|
113
|
+
_WhichOneofReturnType__selected_content_icon: _TypeAlias = _typing.Literal["selected_content_icon"] # noqa: Y015
|
|
114
|
+
_WhichOneofArgType__selected_content_icon: _TypeAlias = _typing.Literal["_selected_content_icon", b"_selected_content_icon"] # noqa: Y015
|
|
115
|
+
@_typing.overload
|
|
116
116
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__content_icon) -> _WhichOneofReturnType__content_icon | None: ...
|
|
117
|
-
@
|
|
117
|
+
@_typing.overload
|
|
118
118
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__selected_content) -> _WhichOneofReturnType__selected_content | None: ...
|
|
119
|
-
@
|
|
119
|
+
@_typing.overload
|
|
120
120
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__selected_content_icon) -> _WhichOneofReturnType__selected_content_icon | None: ...
|
|
121
121
|
|
|
122
|
-
ID_FIELD_NUMBER:
|
|
123
|
-
OPTIONS_FIELD_NUMBER:
|
|
124
|
-
DEFAULT_FIELD_NUMBER:
|
|
125
|
-
DISABLED_FIELD_NUMBER:
|
|
126
|
-
CLICK_MODE_FIELD_NUMBER:
|
|
127
|
-
FORM_ID_FIELD_NUMBER:
|
|
128
|
-
VALUE_FIELD_NUMBER:
|
|
129
|
-
SET_VALUE_FIELD_NUMBER:
|
|
130
|
-
SELECTION_VISUALIZATION_FIELD_NUMBER:
|
|
131
|
-
STYLE_FIELD_NUMBER:
|
|
132
|
-
LABEL_FIELD_NUMBER:
|
|
133
|
-
LABEL_VISIBILITY_FIELD_NUMBER:
|
|
134
|
-
HELP_FIELD_NUMBER:
|
|
135
|
-
id:
|
|
136
|
-
disabled:
|
|
122
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
123
|
+
OPTIONS_FIELD_NUMBER: _builtins.int
|
|
124
|
+
DEFAULT_FIELD_NUMBER: _builtins.int
|
|
125
|
+
DISABLED_FIELD_NUMBER: _builtins.int
|
|
126
|
+
CLICK_MODE_FIELD_NUMBER: _builtins.int
|
|
127
|
+
FORM_ID_FIELD_NUMBER: _builtins.int
|
|
128
|
+
VALUE_FIELD_NUMBER: _builtins.int
|
|
129
|
+
SET_VALUE_FIELD_NUMBER: _builtins.int
|
|
130
|
+
SELECTION_VISUALIZATION_FIELD_NUMBER: _builtins.int
|
|
131
|
+
STYLE_FIELD_NUMBER: _builtins.int
|
|
132
|
+
LABEL_FIELD_NUMBER: _builtins.int
|
|
133
|
+
LABEL_VISIBILITY_FIELD_NUMBER: _builtins.int
|
|
134
|
+
HELP_FIELD_NUMBER: _builtins.int
|
|
135
|
+
id: _builtins.str
|
|
136
|
+
disabled: _builtins.bool
|
|
137
137
|
click_mode: Global___ButtonGroup.ClickMode.ValueType
|
|
138
|
-
form_id:
|
|
139
|
-
set_value:
|
|
138
|
+
form_id: _builtins.str
|
|
139
|
+
set_value: _builtins.bool
|
|
140
140
|
selection_visualization: Global___ButtonGroup.SelectionVisualization.ValueType
|
|
141
141
|
style: Global___ButtonGroup.Style.ValueType
|
|
142
|
-
label:
|
|
143
|
-
help:
|
|
144
|
-
@property
|
|
145
|
-
def options(self) ->
|
|
146
|
-
@property
|
|
147
|
-
def default(self) ->
|
|
142
|
+
label: _builtins.str
|
|
143
|
+
help: _builtins.str
|
|
144
|
+
@_builtins.property
|
|
145
|
+
def options(self) -> _containers.RepeatedCompositeFieldContainer[Global___ButtonGroup.Option]: ...
|
|
146
|
+
@_builtins.property
|
|
147
|
+
def default(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]:
|
|
148
148
|
"""default is an array of indexes that are selected by default"""
|
|
149
149
|
|
|
150
|
-
@property
|
|
151
|
-
def value(self) ->
|
|
150
|
+
@_builtins.property
|
|
151
|
+
def value(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]:
|
|
152
152
|
"""value passed by the backend"""
|
|
153
153
|
|
|
154
|
-
@property
|
|
155
|
-
def label_visibility(self) ->
|
|
154
|
+
@_builtins.property
|
|
155
|
+
def label_visibility(self) -> _LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
|
|
156
156
|
def __init__(
|
|
157
157
|
self,
|
|
158
158
|
*,
|
|
159
|
-
id:
|
|
160
|
-
options:
|
|
161
|
-
default:
|
|
162
|
-
disabled:
|
|
159
|
+
id: _builtins.str = ...,
|
|
160
|
+
options: _abc.Iterable[Global___ButtonGroup.Option] | None = ...,
|
|
161
|
+
default: _abc.Iterable[_builtins.int] | None = ...,
|
|
162
|
+
disabled: _builtins.bool = ...,
|
|
163
163
|
click_mode: Global___ButtonGroup.ClickMode.ValueType = ...,
|
|
164
|
-
form_id:
|
|
165
|
-
value:
|
|
166
|
-
set_value:
|
|
164
|
+
form_id: _builtins.str = ...,
|
|
165
|
+
value: _abc.Iterable[_builtins.int] | None = ...,
|
|
166
|
+
set_value: _builtins.bool = ...,
|
|
167
167
|
selection_visualization: Global___ButtonGroup.SelectionVisualization.ValueType = ...,
|
|
168
168
|
style: Global___ButtonGroup.Style.ValueType = ...,
|
|
169
|
-
label:
|
|
170
|
-
label_visibility:
|
|
171
|
-
help:
|
|
169
|
+
label: _builtins.str = ...,
|
|
170
|
+
label_visibility: _LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
|
|
171
|
+
help: _builtins.str | None = ...,
|
|
172
172
|
) -> None: ...
|
|
173
|
-
_HasFieldArgType:
|
|
174
|
-
def HasField(self, field_name: _HasFieldArgType) ->
|
|
175
|
-
_ClearFieldArgType:
|
|
173
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["_help", b"_help", "help", b"help", "label_visibility", b"label_visibility"] # noqa: Y015
|
|
174
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
175
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["_help", b"_help", "click_mode", b"click_mode", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "options", b"options", "selection_visualization", b"selection_visualization", "set_value", b"set_value", "style", b"style", "value", b"value"] # noqa: Y015
|
|
176
176
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
177
|
-
_WhichOneofReturnType__help:
|
|
178
|
-
_WhichOneofArgType__help:
|
|
177
|
+
_WhichOneofReturnType__help: _TypeAlias = _typing.Literal["help"] # noqa: Y015
|
|
178
|
+
_WhichOneofArgType__help: _TypeAlias = _typing.Literal["_help", b"_help"] # noqa: Y015
|
|
179
179
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__help) -> _WhichOneofReturnType__help | None: ...
|
|
180
180
|
|
|
181
|
-
Global___ButtonGroup:
|
|
181
|
+
Global___ButtonGroup: _TypeAlias = ButtonGroup # noqa: Y015
|
|
@@ -17,25 +17,25 @@ See the License for the specific language governing permissions and
|
|
|
17
17
|
limitations under the License.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
import
|
|
20
|
+
from google.protobuf import descriptor as _descriptor
|
|
21
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
22
|
+
import builtins as _builtins
|
|
23
23
|
import sys
|
|
24
|
-
import typing
|
|
24
|
+
import typing as _typing
|
|
25
25
|
|
|
26
26
|
if sys.version_info >= (3, 10):
|
|
27
|
-
|
|
27
|
+
from typing import TypeAlias as _TypeAlias
|
|
28
28
|
else:
|
|
29
|
-
import
|
|
29
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
30
30
|
|
|
31
|
-
DESCRIPTOR:
|
|
31
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
32
32
|
|
|
33
33
|
class _ButtonLikeIconPosition:
|
|
34
|
-
ValueType =
|
|
35
|
-
V:
|
|
34
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
35
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
36
36
|
|
|
37
|
-
class _ButtonLikeIconPositionEnumTypeWrapper(
|
|
38
|
-
DESCRIPTOR:
|
|
37
|
+
class _ButtonLikeIconPositionEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ButtonLikeIconPosition.ValueType], _builtins.type):
|
|
38
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
39
39
|
LEFT: _ButtonLikeIconPosition.ValueType # 0
|
|
40
40
|
RIGHT: _ButtonLikeIconPosition.ValueType # 1
|
|
41
41
|
|
|
@@ -44,4 +44,4 @@ class ButtonLikeIconPosition(_ButtonLikeIconPosition, metaclass=_ButtonLikeIconP
|
|
|
44
44
|
|
|
45
45
|
LEFT: ButtonLikeIconPosition.ValueType # 0
|
|
46
46
|
RIGHT: ButtonLikeIconPosition.ValueType # 1
|
|
47
|
-
Global___ButtonLikeIconPosition:
|
|
47
|
+
Global___ButtonLikeIconPosition: _TypeAlias = ButtonLikeIconPosition # noqa: Y015
|
streamlit/proto/Button_pb2.pyi
CHANGED
|
@@ -17,70 +17,83 @@ See the License for the specific language governing permissions and
|
|
|
17
17
|
limitations under the License.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
import
|
|
23
|
-
import
|
|
20
|
+
from google.protobuf import descriptor as _descriptor
|
|
21
|
+
from google.protobuf import message as _message
|
|
22
|
+
from streamlit.proto import ButtonLikeIconPosition_pb2 as _ButtonLikeIconPosition_pb2
|
|
23
|
+
import builtins as _builtins
|
|
24
24
|
import sys
|
|
25
|
-
import typing
|
|
25
|
+
import typing as _typing
|
|
26
26
|
|
|
27
27
|
if sys.version_info >= (3, 10):
|
|
28
|
-
|
|
28
|
+
from typing import TypeAlias as _TypeAlias
|
|
29
29
|
else:
|
|
30
|
-
import
|
|
30
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
if sys.version_info >= (3, 13):
|
|
33
|
+
from warnings import deprecated as _deprecated
|
|
34
|
+
else:
|
|
35
|
+
from typing_extensions import deprecated as _deprecated
|
|
36
|
+
|
|
37
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
33
38
|
|
|
34
|
-
@
|
|
35
|
-
class Button(
|
|
36
|
-
DESCRIPTOR:
|
|
39
|
+
@_typing.final
|
|
40
|
+
class Button(_message.Message):
|
|
41
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
37
42
|
|
|
38
|
-
ID_FIELD_NUMBER:
|
|
39
|
-
LABEL_FIELD_NUMBER:
|
|
40
|
-
DEFAULT_FIELD_NUMBER:
|
|
41
|
-
HELP_FIELD_NUMBER:
|
|
42
|
-
FORM_ID_FIELD_NUMBER:
|
|
43
|
-
IS_FORM_SUBMITTER_FIELD_NUMBER:
|
|
44
|
-
TYPE_FIELD_NUMBER:
|
|
45
|
-
DISABLED_FIELD_NUMBER:
|
|
46
|
-
USE_CONTAINER_WIDTH_FIELD_NUMBER:
|
|
47
|
-
ICON_FIELD_NUMBER:
|
|
48
|
-
SHORTCUT_FIELD_NUMBER:
|
|
49
|
-
ICON_POSITION_FIELD_NUMBER:
|
|
50
|
-
id:
|
|
51
|
-
label:
|
|
52
|
-
default:
|
|
53
|
-
help:
|
|
54
|
-
form_id:
|
|
55
|
-
is_form_submitter:
|
|
43
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
44
|
+
LABEL_FIELD_NUMBER: _builtins.int
|
|
45
|
+
DEFAULT_FIELD_NUMBER: _builtins.int
|
|
46
|
+
HELP_FIELD_NUMBER: _builtins.int
|
|
47
|
+
FORM_ID_FIELD_NUMBER: _builtins.int
|
|
48
|
+
IS_FORM_SUBMITTER_FIELD_NUMBER: _builtins.int
|
|
49
|
+
TYPE_FIELD_NUMBER: _builtins.int
|
|
50
|
+
DISABLED_FIELD_NUMBER: _builtins.int
|
|
51
|
+
USE_CONTAINER_WIDTH_FIELD_NUMBER: _builtins.int
|
|
52
|
+
ICON_FIELD_NUMBER: _builtins.int
|
|
53
|
+
SHORTCUT_FIELD_NUMBER: _builtins.int
|
|
54
|
+
ICON_POSITION_FIELD_NUMBER: _builtins.int
|
|
55
|
+
id: _builtins.str
|
|
56
|
+
label: _builtins.str
|
|
57
|
+
default: _builtins.bool
|
|
58
|
+
help: _builtins.str
|
|
59
|
+
form_id: _builtins.str
|
|
60
|
+
is_form_submitter: _builtins.bool
|
|
56
61
|
"""If true, this is a form submission button. The frontend will defer
|
|
57
62
|
sending updates for all widgets inside the button's form until
|
|
58
63
|
the button is pressed.
|
|
59
64
|
"""
|
|
60
|
-
type:
|
|
61
|
-
disabled:
|
|
62
|
-
|
|
63
|
-
"""
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
type: _builtins.str
|
|
66
|
+
disabled: _builtins.bool
|
|
67
|
+
@_builtins.property
|
|
68
|
+
@_deprecated("""This field has been marked as deprecated using proto field options.""")
|
|
69
|
+
def use_container_width(self) -> _builtins.bool:
|
|
70
|
+
"""DEPRECATED: Use widthConfig on Element.proto instead."""
|
|
71
|
+
|
|
72
|
+
@use_container_width.setter
|
|
73
|
+
@_deprecated("""This field has been marked as deprecated using proto field options.""")
|
|
74
|
+
def use_container_width(self, value: _builtins.bool) -> None:
|
|
75
|
+
"""DEPRECATED: Use widthConfig on Element.proto instead."""
|
|
76
|
+
|
|
77
|
+
icon: _builtins.str
|
|
78
|
+
shortcut: _builtins.str
|
|
79
|
+
icon_position: _ButtonLikeIconPosition_pb2.ButtonLikeIconPosition.ValueType
|
|
67
80
|
def __init__(
|
|
68
81
|
self,
|
|
69
82
|
*,
|
|
70
|
-
id:
|
|
71
|
-
label:
|
|
72
|
-
default:
|
|
73
|
-
help:
|
|
74
|
-
form_id:
|
|
75
|
-
is_form_submitter:
|
|
76
|
-
type:
|
|
77
|
-
disabled:
|
|
78
|
-
use_container_width:
|
|
79
|
-
icon:
|
|
80
|
-
shortcut:
|
|
81
|
-
icon_position:
|
|
83
|
+
id: _builtins.str = ...,
|
|
84
|
+
label: _builtins.str = ...,
|
|
85
|
+
default: _builtins.bool = ...,
|
|
86
|
+
help: _builtins.str = ...,
|
|
87
|
+
form_id: _builtins.str = ...,
|
|
88
|
+
is_form_submitter: _builtins.bool = ...,
|
|
89
|
+
type: _builtins.str = ...,
|
|
90
|
+
disabled: _builtins.bool = ...,
|
|
91
|
+
use_container_width: _builtins.bool = ...,
|
|
92
|
+
icon: _builtins.str = ...,
|
|
93
|
+
shortcut: _builtins.str = ...,
|
|
94
|
+
icon_position: _ButtonLikeIconPosition_pb2.ButtonLikeIconPosition.ValueType = ...,
|
|
82
95
|
) -> None: ...
|
|
83
|
-
_ClearFieldArgType:
|
|
96
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "icon", b"icon", "icon_position", b"icon_position", "id", b"id", "is_form_submitter", b"is_form_submitter", "label", b"label", "shortcut", b"shortcut", "type", b"type", "use_container_width", b"use_container_width"] # noqa: Y015
|
|
84
97
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
85
98
|
|
|
86
|
-
Global___Button:
|
|
99
|
+
Global___Button: _TypeAlias = Button # noqa: Y015
|
|
@@ -17,50 +17,50 @@ See the License for the specific language governing permissions and
|
|
|
17
17
|
limitations under the License.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
import
|
|
23
|
-
import
|
|
20
|
+
from google.protobuf import descriptor as _descriptor
|
|
21
|
+
from google.protobuf import message as _message
|
|
22
|
+
from streamlit.proto import LabelVisibilityMessage_pb2 as _LabelVisibilityMessage_pb2
|
|
23
|
+
import builtins as _builtins
|
|
24
24
|
import sys
|
|
25
|
-
import typing
|
|
25
|
+
import typing as _typing
|
|
26
26
|
|
|
27
27
|
if sys.version_info >= (3, 10):
|
|
28
|
-
|
|
28
|
+
from typing import TypeAlias as _TypeAlias
|
|
29
29
|
else:
|
|
30
|
-
import
|
|
30
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
31
31
|
|
|
32
|
-
DESCRIPTOR:
|
|
32
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
33
33
|
|
|
34
|
-
@
|
|
35
|
-
class CameraInput(
|
|
36
|
-
DESCRIPTOR:
|
|
34
|
+
@_typing.final
|
|
35
|
+
class CameraInput(_message.Message):
|
|
36
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
37
37
|
|
|
38
|
-
ID_FIELD_NUMBER:
|
|
39
|
-
LABEL_FIELD_NUMBER:
|
|
40
|
-
HELP_FIELD_NUMBER:
|
|
41
|
-
FORM_ID_FIELD_NUMBER:
|
|
42
|
-
DISABLED_FIELD_NUMBER:
|
|
43
|
-
LABEL_VISIBILITY_FIELD_NUMBER:
|
|
44
|
-
id:
|
|
45
|
-
label:
|
|
46
|
-
help:
|
|
47
|
-
form_id:
|
|
48
|
-
disabled:
|
|
49
|
-
@property
|
|
50
|
-
def label_visibility(self) ->
|
|
38
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
39
|
+
LABEL_FIELD_NUMBER: _builtins.int
|
|
40
|
+
HELP_FIELD_NUMBER: _builtins.int
|
|
41
|
+
FORM_ID_FIELD_NUMBER: _builtins.int
|
|
42
|
+
DISABLED_FIELD_NUMBER: _builtins.int
|
|
43
|
+
LABEL_VISIBILITY_FIELD_NUMBER: _builtins.int
|
|
44
|
+
id: _builtins.str
|
|
45
|
+
label: _builtins.str
|
|
46
|
+
help: _builtins.str
|
|
47
|
+
form_id: _builtins.str
|
|
48
|
+
disabled: _builtins.bool
|
|
49
|
+
@_builtins.property
|
|
50
|
+
def label_visibility(self) -> _LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
|
|
51
51
|
def __init__(
|
|
52
52
|
self,
|
|
53
53
|
*,
|
|
54
|
-
id:
|
|
55
|
-
label:
|
|
56
|
-
help:
|
|
57
|
-
form_id:
|
|
58
|
-
disabled:
|
|
59
|
-
label_visibility:
|
|
54
|
+
id: _builtins.str = ...,
|
|
55
|
+
label: _builtins.str = ...,
|
|
56
|
+
help: _builtins.str = ...,
|
|
57
|
+
form_id: _builtins.str = ...,
|
|
58
|
+
disabled: _builtins.bool = ...,
|
|
59
|
+
label_visibility: _LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
|
|
60
60
|
) -> None: ...
|
|
61
|
-
_HasFieldArgType:
|
|
62
|
-
def HasField(self, field_name: _HasFieldArgType) ->
|
|
63
|
-
_ClearFieldArgType:
|
|
61
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["label_visibility", b"label_visibility"] # noqa: Y015
|
|
62
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
63
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility"] # noqa: Y015
|
|
64
64
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
65
65
|
|
|
66
|
-
Global___CameraInput:
|
|
66
|
+
Global___CameraInput: _TypeAlias = CameraInput # noqa: Y015
|