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,31 +17,31 @@ See the License for the specific language governing permissions and
|
|
|
17
17
|
limitations under the License.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import
|
|
24
|
-
import
|
|
20
|
+
from google.protobuf import descriptor as _descriptor
|
|
21
|
+
from google.protobuf import message as _message
|
|
22
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
23
|
+
from streamlit.proto import LabelVisibilityMessage_pb2 as _LabelVisibilityMessage_pb2
|
|
24
|
+
import builtins as _builtins
|
|
25
25
|
import sys
|
|
26
|
-
import typing
|
|
26
|
+
import typing as _typing
|
|
27
27
|
|
|
28
28
|
if sys.version_info >= (3, 10):
|
|
29
|
-
|
|
29
|
+
from typing import TypeAlias as _TypeAlias
|
|
30
30
|
else:
|
|
31
|
-
import
|
|
31
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
32
32
|
|
|
33
|
-
DESCRIPTOR:
|
|
33
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
34
34
|
|
|
35
|
-
@
|
|
36
|
-
class NumberInput(
|
|
37
|
-
DESCRIPTOR:
|
|
35
|
+
@_typing.final
|
|
36
|
+
class NumberInput(_message.Message):
|
|
37
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
38
38
|
|
|
39
39
|
class _DataType:
|
|
40
|
-
ValueType =
|
|
41
|
-
V:
|
|
40
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
41
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
42
42
|
|
|
43
|
-
class _DataTypeEnumTypeWrapper(
|
|
44
|
-
DESCRIPTOR:
|
|
43
|
+
class _DataTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[NumberInput._DataType.ValueType], _builtins.type):
|
|
44
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
45
45
|
INT: NumberInput._DataType.ValueType # 0
|
|
46
46
|
"""Does the input operate on ints or floats? This doesn't change how the
|
|
47
47
|
data is stored, but the frontend needs to know for input parsing.
|
|
@@ -55,76 +55,76 @@ class NumberInput(google.protobuf.message.Message):
|
|
|
55
55
|
"""
|
|
56
56
|
FLOAT: NumberInput.DataType.ValueType # 1
|
|
57
57
|
|
|
58
|
-
ID_FIELD_NUMBER:
|
|
59
|
-
LABEL_FIELD_NUMBER:
|
|
60
|
-
FORM_ID_FIELD_NUMBER:
|
|
61
|
-
FORMAT_FIELD_NUMBER:
|
|
62
|
-
HAS_MIN_FIELD_NUMBER:
|
|
63
|
-
HAS_MAX_FIELD_NUMBER:
|
|
64
|
-
DATA_TYPE_FIELD_NUMBER:
|
|
65
|
-
DEFAULT_FIELD_NUMBER:
|
|
66
|
-
STEP_FIELD_NUMBER:
|
|
67
|
-
MIN_FIELD_NUMBER:
|
|
68
|
-
MAX_FIELD_NUMBER:
|
|
69
|
-
HELP_FIELD_NUMBER:
|
|
70
|
-
VALUE_FIELD_NUMBER:
|
|
71
|
-
SET_VALUE_FIELD_NUMBER:
|
|
72
|
-
DISABLED_FIELD_NUMBER:
|
|
73
|
-
LABEL_VISIBILITY_FIELD_NUMBER:
|
|
74
|
-
PLACEHOLDER_FIELD_NUMBER:
|
|
75
|
-
ICON_FIELD_NUMBER:
|
|
76
|
-
id:
|
|
77
|
-
label:
|
|
78
|
-
form_id:
|
|
79
|
-
format:
|
|
80
|
-
has_min:
|
|
81
|
-
has_max:
|
|
58
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
59
|
+
LABEL_FIELD_NUMBER: _builtins.int
|
|
60
|
+
FORM_ID_FIELD_NUMBER: _builtins.int
|
|
61
|
+
FORMAT_FIELD_NUMBER: _builtins.int
|
|
62
|
+
HAS_MIN_FIELD_NUMBER: _builtins.int
|
|
63
|
+
HAS_MAX_FIELD_NUMBER: _builtins.int
|
|
64
|
+
DATA_TYPE_FIELD_NUMBER: _builtins.int
|
|
65
|
+
DEFAULT_FIELD_NUMBER: _builtins.int
|
|
66
|
+
STEP_FIELD_NUMBER: _builtins.int
|
|
67
|
+
MIN_FIELD_NUMBER: _builtins.int
|
|
68
|
+
MAX_FIELD_NUMBER: _builtins.int
|
|
69
|
+
HELP_FIELD_NUMBER: _builtins.int
|
|
70
|
+
VALUE_FIELD_NUMBER: _builtins.int
|
|
71
|
+
SET_VALUE_FIELD_NUMBER: _builtins.int
|
|
72
|
+
DISABLED_FIELD_NUMBER: _builtins.int
|
|
73
|
+
LABEL_VISIBILITY_FIELD_NUMBER: _builtins.int
|
|
74
|
+
PLACEHOLDER_FIELD_NUMBER: _builtins.int
|
|
75
|
+
ICON_FIELD_NUMBER: _builtins.int
|
|
76
|
+
id: _builtins.str
|
|
77
|
+
label: _builtins.str
|
|
78
|
+
form_id: _builtins.str
|
|
79
|
+
format: _builtins.str
|
|
80
|
+
has_min: _builtins.bool
|
|
81
|
+
has_max: _builtins.bool
|
|
82
82
|
data_type: Global___NumberInput.DataType.ValueType
|
|
83
|
-
default:
|
|
84
|
-
step:
|
|
85
|
-
min:
|
|
86
|
-
max:
|
|
87
|
-
help:
|
|
88
|
-
value:
|
|
89
|
-
set_value:
|
|
90
|
-
disabled:
|
|
91
|
-
placeholder:
|
|
92
|
-
icon:
|
|
93
|
-
@property
|
|
94
|
-
def label_visibility(self) ->
|
|
83
|
+
default: _builtins.float
|
|
84
|
+
step: _builtins.float
|
|
85
|
+
min: _builtins.float
|
|
86
|
+
max: _builtins.float
|
|
87
|
+
help: _builtins.str
|
|
88
|
+
value: _builtins.float
|
|
89
|
+
set_value: _builtins.bool
|
|
90
|
+
disabled: _builtins.bool
|
|
91
|
+
placeholder: _builtins.str
|
|
92
|
+
icon: _builtins.str
|
|
93
|
+
@_builtins.property
|
|
94
|
+
def label_visibility(self) -> _LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
|
|
95
95
|
def __init__(
|
|
96
96
|
self,
|
|
97
97
|
*,
|
|
98
|
-
id:
|
|
99
|
-
label:
|
|
100
|
-
form_id:
|
|
101
|
-
format:
|
|
102
|
-
has_min:
|
|
103
|
-
has_max:
|
|
98
|
+
id: _builtins.str = ...,
|
|
99
|
+
label: _builtins.str = ...,
|
|
100
|
+
form_id: _builtins.str = ...,
|
|
101
|
+
format: _builtins.str = ...,
|
|
102
|
+
has_min: _builtins.bool = ...,
|
|
103
|
+
has_max: _builtins.bool = ...,
|
|
104
104
|
data_type: Global___NumberInput.DataType.ValueType = ...,
|
|
105
|
-
default:
|
|
106
|
-
step:
|
|
107
|
-
min:
|
|
108
|
-
max:
|
|
109
|
-
help:
|
|
110
|
-
value:
|
|
111
|
-
set_value:
|
|
112
|
-
disabled:
|
|
113
|
-
label_visibility:
|
|
114
|
-
placeholder:
|
|
115
|
-
icon:
|
|
105
|
+
default: _builtins.float | None = ...,
|
|
106
|
+
step: _builtins.float = ...,
|
|
107
|
+
min: _builtins.float = ...,
|
|
108
|
+
max: _builtins.float = ...,
|
|
109
|
+
help: _builtins.str = ...,
|
|
110
|
+
value: _builtins.float | None = ...,
|
|
111
|
+
set_value: _builtins.bool = ...,
|
|
112
|
+
disabled: _builtins.bool = ...,
|
|
113
|
+
label_visibility: _LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
|
|
114
|
+
placeholder: _builtins.str = ...,
|
|
115
|
+
icon: _builtins.str = ...,
|
|
116
116
|
) -> None: ...
|
|
117
|
-
_HasFieldArgType:
|
|
118
|
-
def HasField(self, field_name: _HasFieldArgType) ->
|
|
119
|
-
_ClearFieldArgType:
|
|
117
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "label_visibility", b"label_visibility", "value", b"value"] # noqa: Y015
|
|
118
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
119
|
+
_ClearFieldArgType: _TypeAlias = _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", "icon", b"icon", "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"] # noqa: Y015
|
|
120
120
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
121
|
-
_WhichOneofReturnType__default:
|
|
122
|
-
_WhichOneofArgType__default:
|
|
123
|
-
_WhichOneofReturnType__value:
|
|
124
|
-
_WhichOneofArgType__value:
|
|
125
|
-
@
|
|
121
|
+
_WhichOneofReturnType__default: _TypeAlias = _typing.Literal["default"] # noqa: Y015
|
|
122
|
+
_WhichOneofArgType__default: _TypeAlias = _typing.Literal["_default", b"_default"] # noqa: Y015
|
|
123
|
+
_WhichOneofReturnType__value: _TypeAlias = _typing.Literal["value"] # noqa: Y015
|
|
124
|
+
_WhichOneofArgType__value: _TypeAlias = _typing.Literal["_value", b"_value"] # noqa: Y015
|
|
125
|
+
@_typing.overload
|
|
126
126
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__default) -> _WhichOneofReturnType__default | None: ...
|
|
127
|
-
@
|
|
127
|
+
@_typing.overload
|
|
128
128
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__value) -> _WhichOneofReturnType__value | None: ...
|
|
129
129
|
|
|
130
|
-
Global___NumberInput:
|
|
130
|
+
Global___NumberInput: _TypeAlias = NumberInput # noqa: Y015
|
|
@@ -17,32 +17,32 @@ See the License for the specific language governing permissions and
|
|
|
17
17
|
limitations under the License.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import
|
|
20
|
+
from google.protobuf import descriptor as _descriptor
|
|
21
|
+
from google.protobuf import message as _message
|
|
22
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
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 PageConfig(
|
|
34
|
+
@_typing.final
|
|
35
|
+
class PageConfig(_message.Message):
|
|
36
36
|
"""Properties of the page that the app creator may configure."""
|
|
37
37
|
|
|
38
|
-
DESCRIPTOR:
|
|
38
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
39
39
|
|
|
40
40
|
class _Layout:
|
|
41
|
-
ValueType =
|
|
42
|
-
V:
|
|
41
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
42
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
43
43
|
|
|
44
|
-
class _LayoutEnumTypeWrapper(
|
|
45
|
-
DESCRIPTOR:
|
|
44
|
+
class _LayoutEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[PageConfig._Layout.ValueType], _builtins.type):
|
|
45
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
46
46
|
CENTERED: PageConfig._Layout.ValueType # 0
|
|
47
47
|
"""Render page elements in a centered block, roughly 730px wide."""
|
|
48
48
|
WIDE: PageConfig._Layout.ValueType # 1
|
|
@@ -63,11 +63,11 @@ class PageConfig(google.protobuf.message.Message):
|
|
|
63
63
|
"""
|
|
64
64
|
|
|
65
65
|
class _SidebarState:
|
|
66
|
-
ValueType =
|
|
67
|
-
V:
|
|
66
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
67
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
68
68
|
|
|
69
|
-
class _SidebarStateEnumTypeWrapper(
|
|
70
|
-
DESCRIPTOR:
|
|
69
|
+
class _SidebarStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[PageConfig._SidebarState.ValueType], _builtins.type):
|
|
70
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
71
71
|
AUTO: PageConfig._SidebarState.ValueType # 0
|
|
72
72
|
"""Expand the sidebar if page width exceeds ~1000px; otherwise, collapse it"""
|
|
73
73
|
EXPANDED: PageConfig._SidebarState.ValueType # 1
|
|
@@ -91,89 +91,89 @@ class PageConfig(google.protobuf.message.Message):
|
|
|
91
91
|
set to auto as default. Otherwise, inherit value from previous call
|
|
92
92
|
"""
|
|
93
93
|
|
|
94
|
-
@
|
|
95
|
-
class MenuItems(
|
|
96
|
-
DESCRIPTOR:
|
|
97
|
-
|
|
98
|
-
GET_HELP_URL_FIELD_NUMBER:
|
|
99
|
-
HIDE_GET_HELP_FIELD_NUMBER:
|
|
100
|
-
REPORT_A_BUG_URL_FIELD_NUMBER:
|
|
101
|
-
HIDE_REPORT_A_BUG_FIELD_NUMBER:
|
|
102
|
-
ABOUT_SECTION_MD_FIELD_NUMBER:
|
|
103
|
-
CLEAR_ABOUT_MD_FIELD_NUMBER:
|
|
104
|
-
get_help_url:
|
|
105
|
-
hide_get_help:
|
|
106
|
-
report_a_bug_url:
|
|
107
|
-
hide_report_a_bug:
|
|
108
|
-
about_section_md:
|
|
109
|
-
clear_about_md:
|
|
94
|
+
@_typing.final
|
|
95
|
+
class MenuItems(_message.Message):
|
|
96
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
97
|
+
|
|
98
|
+
GET_HELP_URL_FIELD_NUMBER: _builtins.int
|
|
99
|
+
HIDE_GET_HELP_FIELD_NUMBER: _builtins.int
|
|
100
|
+
REPORT_A_BUG_URL_FIELD_NUMBER: _builtins.int
|
|
101
|
+
HIDE_REPORT_A_BUG_FIELD_NUMBER: _builtins.int
|
|
102
|
+
ABOUT_SECTION_MD_FIELD_NUMBER: _builtins.int
|
|
103
|
+
CLEAR_ABOUT_MD_FIELD_NUMBER: _builtins.int
|
|
104
|
+
get_help_url: _builtins.str
|
|
105
|
+
hide_get_help: _builtins.bool
|
|
106
|
+
report_a_bug_url: _builtins.str
|
|
107
|
+
hide_report_a_bug: _builtins.bool
|
|
108
|
+
about_section_md: _builtins.str
|
|
109
|
+
clear_about_md: _builtins.bool
|
|
110
110
|
"""For multiple calls to set_page_config, clears set about markdown"""
|
|
111
111
|
def __init__(
|
|
112
112
|
self,
|
|
113
113
|
*,
|
|
114
|
-
get_help_url:
|
|
115
|
-
hide_get_help:
|
|
116
|
-
report_a_bug_url:
|
|
117
|
-
hide_report_a_bug:
|
|
118
|
-
about_section_md:
|
|
119
|
-
clear_about_md:
|
|
114
|
+
get_help_url: _builtins.str = ...,
|
|
115
|
+
hide_get_help: _builtins.bool = ...,
|
|
116
|
+
report_a_bug_url: _builtins.str = ...,
|
|
117
|
+
hide_report_a_bug: _builtins.bool = ...,
|
|
118
|
+
about_section_md: _builtins.str = ...,
|
|
119
|
+
clear_about_md: _builtins.bool = ...,
|
|
120
120
|
) -> None: ...
|
|
121
|
-
_ClearFieldArgType:
|
|
121
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["about_section_md", b"about_section_md", "clear_about_md", b"clear_about_md", "get_help_url", b"get_help_url", "hide_get_help", b"hide_get_help", "hide_report_a_bug", b"hide_report_a_bug", "report_a_bug_url", b"report_a_bug_url"] # noqa: Y015
|
|
122
122
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
123
123
|
|
|
124
|
-
@
|
|
125
|
-
class SidebarWidthConfig(
|
|
124
|
+
@_typing.final
|
|
125
|
+
class SidebarWidthConfig(_message.Message):
|
|
126
126
|
"""Configuration for the initial sidebar width.
|
|
127
127
|
Uses a oneof pattern to allow for future extensions (e.g., rem units).
|
|
128
128
|
"""
|
|
129
129
|
|
|
130
|
-
DESCRIPTOR:
|
|
130
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
131
131
|
|
|
132
|
-
PIXEL_WIDTH_FIELD_NUMBER:
|
|
133
|
-
pixel_width:
|
|
132
|
+
PIXEL_WIDTH_FIELD_NUMBER: _builtins.int
|
|
133
|
+
pixel_width: _builtins.int
|
|
134
134
|
def __init__(
|
|
135
135
|
self,
|
|
136
136
|
*,
|
|
137
|
-
pixel_width:
|
|
137
|
+
pixel_width: _builtins.int = ...,
|
|
138
138
|
) -> None: ...
|
|
139
|
-
_HasFieldArgType:
|
|
140
|
-
def HasField(self, field_name: _HasFieldArgType) ->
|
|
141
|
-
_ClearFieldArgType:
|
|
139
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["pixel_width", b"pixel_width", "width_spec", b"width_spec"] # noqa: Y015
|
|
140
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
141
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["pixel_width", b"pixel_width", "width_spec", b"width_spec"] # noqa: Y015
|
|
142
142
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
143
|
-
_WhichOneofReturnType_width_spec:
|
|
144
|
-
_WhichOneofArgType_width_spec:
|
|
143
|
+
_WhichOneofReturnType_width_spec: _TypeAlias = _typing.Literal["pixel_width"] # noqa: Y015
|
|
144
|
+
_WhichOneofArgType_width_spec: _TypeAlias = _typing.Literal["width_spec", b"width_spec"] # noqa: Y015
|
|
145
145
|
def WhichOneof(self, oneof_group: _WhichOneofArgType_width_spec) -> _WhichOneofReturnType_width_spec | None: ...
|
|
146
146
|
|
|
147
|
-
TITLE_FIELD_NUMBER:
|
|
148
|
-
FAVICON_FIELD_NUMBER:
|
|
149
|
-
LAYOUT_FIELD_NUMBER:
|
|
150
|
-
INITIAL_SIDEBAR_STATE_FIELD_NUMBER:
|
|
151
|
-
MENU_ITEMS_FIELD_NUMBER:
|
|
152
|
-
INITIAL_SIDEBAR_WIDTH_FIELD_NUMBER:
|
|
153
|
-
title:
|
|
154
|
-
favicon:
|
|
147
|
+
TITLE_FIELD_NUMBER: _builtins.int
|
|
148
|
+
FAVICON_FIELD_NUMBER: _builtins.int
|
|
149
|
+
LAYOUT_FIELD_NUMBER: _builtins.int
|
|
150
|
+
INITIAL_SIDEBAR_STATE_FIELD_NUMBER: _builtins.int
|
|
151
|
+
MENU_ITEMS_FIELD_NUMBER: _builtins.int
|
|
152
|
+
INITIAL_SIDEBAR_WIDTH_FIELD_NUMBER: _builtins.int
|
|
153
|
+
title: _builtins.str
|
|
154
|
+
favicon: _builtins.str
|
|
155
155
|
layout: Global___PageConfig.Layout.ValueType
|
|
156
156
|
initial_sidebar_state: Global___PageConfig.SidebarState.ValueType
|
|
157
|
-
@property
|
|
157
|
+
@_builtins.property
|
|
158
158
|
def menu_items(self) -> Global___PageConfig.MenuItems: ...
|
|
159
|
-
@property
|
|
159
|
+
@_builtins.property
|
|
160
160
|
def initial_sidebar_width(self) -> Global___PageConfig.SidebarWidthConfig: ...
|
|
161
161
|
def __init__(
|
|
162
162
|
self,
|
|
163
163
|
*,
|
|
164
|
-
title:
|
|
165
|
-
favicon:
|
|
164
|
+
title: _builtins.str = ...,
|
|
165
|
+
favicon: _builtins.str = ...,
|
|
166
166
|
layout: Global___PageConfig.Layout.ValueType = ...,
|
|
167
167
|
initial_sidebar_state: Global___PageConfig.SidebarState.ValueType = ...,
|
|
168
168
|
menu_items: Global___PageConfig.MenuItems | None = ...,
|
|
169
169
|
initial_sidebar_width: Global___PageConfig.SidebarWidthConfig | None = ...,
|
|
170
170
|
) -> None: ...
|
|
171
|
-
_HasFieldArgType:
|
|
172
|
-
def HasField(self, field_name: _HasFieldArgType) ->
|
|
173
|
-
_ClearFieldArgType:
|
|
171
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["_initial_sidebar_width", b"_initial_sidebar_width", "initial_sidebar_width", b"initial_sidebar_width", "menu_items", b"menu_items"] # noqa: Y015
|
|
172
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
173
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["_initial_sidebar_width", b"_initial_sidebar_width", "favicon", b"favicon", "initial_sidebar_state", b"initial_sidebar_state", "initial_sidebar_width", b"initial_sidebar_width", "layout", b"layout", "menu_items", b"menu_items", "title", b"title"] # noqa: Y015
|
|
174
174
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
175
|
-
_WhichOneofReturnType__initial_sidebar_width:
|
|
176
|
-
_WhichOneofArgType__initial_sidebar_width:
|
|
175
|
+
_WhichOneofReturnType__initial_sidebar_width: _TypeAlias = _typing.Literal["initial_sidebar_width"] # noqa: Y015
|
|
176
|
+
_WhichOneofArgType__initial_sidebar_width: _TypeAlias = _typing.Literal["_initial_sidebar_width", b"_initial_sidebar_width"] # noqa: Y015
|
|
177
177
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__initial_sidebar_width) -> _WhichOneofReturnType__initial_sidebar_width | None: ...
|
|
178
178
|
|
|
179
|
-
Global___PageConfig:
|
|
179
|
+
Global___PageConfig: _TypeAlias = PageConfig # noqa: Y015
|
streamlit/proto/PageInfo_pb2.pyi
CHANGED
|
@@ -17,34 +17,34 @@ 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 PageInfo(
|
|
33
|
+
@_typing.final
|
|
34
|
+
class PageInfo(_message.Message):
|
|
35
35
|
"""Message used to update page metadata."""
|
|
36
36
|
|
|
37
|
-
DESCRIPTOR:
|
|
37
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
38
38
|
|
|
39
|
-
QUERY_STRING_FIELD_NUMBER:
|
|
40
|
-
query_string:
|
|
39
|
+
QUERY_STRING_FIELD_NUMBER: _builtins.int
|
|
40
|
+
query_string: _builtins.str
|
|
41
41
|
"""The page's query string, if the user decided to set it."""
|
|
42
42
|
def __init__(
|
|
43
43
|
self,
|
|
44
44
|
*,
|
|
45
|
-
query_string:
|
|
45
|
+
query_string: _builtins.str = ...,
|
|
46
46
|
) -> None: ...
|
|
47
|
-
_ClearFieldArgType:
|
|
47
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["query_string", b"query_string"] # noqa: Y015
|
|
48
48
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
49
49
|
|
|
50
|
-
Global___PageInfo:
|
|
50
|
+
Global___PageInfo: _TypeAlias = PageInfo # noqa: Y015
|
streamlit/proto/PageLink_pb2.pyi
CHANGED
|
@@ -17,64 +17,64 @@ 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
|
-
DESCRIPTOR:
|
|
32
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
33
33
|
|
|
34
|
-
@
|
|
35
|
-
class PageLink(
|
|
36
|
-
DESCRIPTOR:
|
|
34
|
+
@_typing.final
|
|
35
|
+
class PageLink(_message.Message):
|
|
36
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
37
37
|
|
|
38
|
-
PAGE_FIELD_NUMBER:
|
|
39
|
-
LABEL_FIELD_NUMBER:
|
|
40
|
-
ICON_FIELD_NUMBER:
|
|
41
|
-
PAGE_SCRIPT_HASH_FIELD_NUMBER:
|
|
42
|
-
HELP_FIELD_NUMBER:
|
|
43
|
-
USE_CONTAINER_WIDTH_FIELD_NUMBER:
|
|
44
|
-
DISABLED_FIELD_NUMBER:
|
|
45
|
-
EXTERNAL_FIELD_NUMBER:
|
|
46
|
-
QUERY_STRING_FIELD_NUMBER:
|
|
47
|
-
ICON_POSITION_FIELD_NUMBER:
|
|
48
|
-
page:
|
|
49
|
-
label:
|
|
50
|
-
icon:
|
|
51
|
-
page_script_hash:
|
|
52
|
-
help:
|
|
53
|
-
use_container_width:
|
|
54
|
-
disabled:
|
|
55
|
-
external:
|
|
56
|
-
query_string:
|
|
57
|
-
icon_position:
|
|
38
|
+
PAGE_FIELD_NUMBER: _builtins.int
|
|
39
|
+
LABEL_FIELD_NUMBER: _builtins.int
|
|
40
|
+
ICON_FIELD_NUMBER: _builtins.int
|
|
41
|
+
PAGE_SCRIPT_HASH_FIELD_NUMBER: _builtins.int
|
|
42
|
+
HELP_FIELD_NUMBER: _builtins.int
|
|
43
|
+
USE_CONTAINER_WIDTH_FIELD_NUMBER: _builtins.int
|
|
44
|
+
DISABLED_FIELD_NUMBER: _builtins.int
|
|
45
|
+
EXTERNAL_FIELD_NUMBER: _builtins.int
|
|
46
|
+
QUERY_STRING_FIELD_NUMBER: _builtins.int
|
|
47
|
+
ICON_POSITION_FIELD_NUMBER: _builtins.int
|
|
48
|
+
page: _builtins.str
|
|
49
|
+
label: _builtins.str
|
|
50
|
+
icon: _builtins.str
|
|
51
|
+
page_script_hash: _builtins.str
|
|
52
|
+
help: _builtins.str
|
|
53
|
+
use_container_width: _builtins.bool
|
|
54
|
+
disabled: _builtins.bool
|
|
55
|
+
external: _builtins.bool
|
|
56
|
+
query_string: _builtins.str
|
|
57
|
+
icon_position: _ButtonLikeIconPosition_pb2.ButtonLikeIconPosition.ValueType
|
|
58
58
|
def __init__(
|
|
59
59
|
self,
|
|
60
60
|
*,
|
|
61
|
-
page:
|
|
62
|
-
label:
|
|
63
|
-
icon:
|
|
64
|
-
page_script_hash:
|
|
65
|
-
help:
|
|
66
|
-
use_container_width:
|
|
67
|
-
disabled:
|
|
68
|
-
external:
|
|
69
|
-
query_string:
|
|
70
|
-
icon_position:
|
|
61
|
+
page: _builtins.str = ...,
|
|
62
|
+
label: _builtins.str = ...,
|
|
63
|
+
icon: _builtins.str = ...,
|
|
64
|
+
page_script_hash: _builtins.str = ...,
|
|
65
|
+
help: _builtins.str = ...,
|
|
66
|
+
use_container_width: _builtins.bool | None = ...,
|
|
67
|
+
disabled: _builtins.bool = ...,
|
|
68
|
+
external: _builtins.bool = ...,
|
|
69
|
+
query_string: _builtins.str = ...,
|
|
70
|
+
icon_position: _ButtonLikeIconPosition_pb2.ButtonLikeIconPosition.ValueType = ...,
|
|
71
71
|
) -> None: ...
|
|
72
|
-
_HasFieldArgType:
|
|
73
|
-
def HasField(self, field_name: _HasFieldArgType) ->
|
|
74
|
-
_ClearFieldArgType:
|
|
72
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["_use_container_width", b"_use_container_width", "use_container_width", b"use_container_width"] # noqa: Y015
|
|
73
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
74
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["_use_container_width", b"_use_container_width", "disabled", b"disabled", "external", b"external", "help", b"help", "icon", b"icon", "icon_position", b"icon_position", "label", b"label", "page", b"page", "page_script_hash", b"page_script_hash", "query_string", b"query_string", "use_container_width", b"use_container_width"] # noqa: Y015
|
|
75
75
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
76
|
-
_WhichOneofReturnType__use_container_width:
|
|
77
|
-
_WhichOneofArgType__use_container_width:
|
|
76
|
+
_WhichOneofReturnType__use_container_width: _TypeAlias = _typing.Literal["use_container_width"] # noqa: Y015
|
|
77
|
+
_WhichOneofArgType__use_container_width: _TypeAlias = _typing.Literal["_use_container_width", b"_use_container_width"] # noqa: Y015
|
|
78
78
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__use_container_width) -> _WhichOneofReturnType__use_container_width | None: ...
|
|
79
79
|
|
|
80
|
-
Global___PageLink:
|
|
80
|
+
Global___PageLink: _TypeAlias = PageLink # 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
|
-
|
|
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 PageNotFound(
|
|
33
|
+
@_typing.final
|
|
34
|
+
class PageNotFound(_message.Message):
|
|
35
35
|
"""Message used to tell the client that the requested page does not exist."""
|
|
36
36
|
|
|
37
|
-
DESCRIPTOR:
|
|
37
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
38
38
|
|
|
39
|
-
PAGE_NAME_FIELD_NUMBER:
|
|
40
|
-
page_name:
|
|
39
|
+
PAGE_NAME_FIELD_NUMBER: _builtins.int
|
|
40
|
+
page_name: _builtins.str
|
|
41
41
|
def __init__(
|
|
42
42
|
self,
|
|
43
43
|
*,
|
|
44
|
-
page_name:
|
|
44
|
+
page_name: _builtins.str = ...,
|
|
45
45
|
) -> None: ...
|
|
46
|
-
_ClearFieldArgType:
|
|
46
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["page_name", b"page_name"] # noqa: Y015
|
|
47
47
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
48
48
|
|
|
49
|
-
Global___PageNotFound:
|
|
49
|
+
Global___PageNotFound: _TypeAlias = PageNotFound # noqa: Y015
|