Mise à jour de Monitor.py et autres scripts

This commit is contained in:
Debian
2025-07-23 10:46:27 +02:00
parent 7081418ce0
commit 7de3e0fb50
8604 changed files with 2789953 additions and 295 deletions

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Alert.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
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')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Alert_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nAlertProto'
_globals['_ALERT']._serialized_start=32
_globals['_ALERT']._serialized_end=167
_globals['_ALERT_FORMAT']._serialized_start=100
_globals['_ALERT_FORMAT']._serialized_end=167
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,90 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Alert(google.protobuf.message.Message):
"""NOTE: This proto type is used by some external services so needs to remain
relatively stable. While it isn't entirely set in stone, changing it
may require a good amount of effort so should be avoided if possible.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _Format:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _FormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Alert._Format.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
UNUSED: Alert._Format.ValueType # 0
"""Plain, fixed width text."""
ERROR: Alert._Format.ValueType # 1
"""Shows an error message."""
WARNING: Alert._Format.ValueType # 2
"""Shows a warning message."""
INFO: Alert._Format.ValueType # 3
"""Shows an info log."""
SUCCESS: Alert._Format.ValueType # 4
"""Shows a success message."""
class Format(_Format, metaclass=_FormatEnumTypeWrapper):
"""Type of Alert"""
UNUSED: Alert.Format.ValueType # 0
"""Plain, fixed width text."""
ERROR: Alert.Format.ValueType # 1
"""Shows an error message."""
WARNING: Alert.Format.ValueType # 2
"""Shows a warning message."""
INFO: Alert.Format.ValueType # 3
"""Shows an info log."""
SUCCESS: Alert.Format.ValueType # 4
"""Shows a success message."""
BODY_FIELD_NUMBER: builtins.int
FORMAT_FIELD_NUMBER: builtins.int
ICON_FIELD_NUMBER: builtins.int
body: builtins.str
"""Content to display."""
format: global___Alert.Format.ValueType
icon: builtins.str
def __init__(
self,
*,
body: builtins.str = ...,
format: global___Alert.Format.ValueType = ...,
icon: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["body", b"body", "format", b"format", "icon", b"icon"]) -> None: ...
global___Alert = Alert

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/AppPage.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
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')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.AppPage_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014AppPageProto'
_globals['_APPPAGE']._serialized_start=34
_globals['_APPPAGE']._serialized_end=168
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,64 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class AppPage(google.protobuf.message.Message):
"""A page in the app. Includes both the name of the page as well as the full
path to the corresponding script file.
NOTE: This proto type is used by some external services so needs to remain
relatively stable. While it isn't entirely set in stone, changing it
may require a good amount of effort so should be avoided if possible.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
PAGE_SCRIPT_HASH_FIELD_NUMBER: builtins.int
PAGE_NAME_FIELD_NUMBER: builtins.int
ICON_FIELD_NUMBER: builtins.int
IS_DEFAULT_FIELD_NUMBER: builtins.int
SECTION_HEADER_FIELD_NUMBER: builtins.int
URL_PATHNAME_FIELD_NUMBER: builtins.int
page_script_hash: builtins.str
page_name: builtins.str
icon: builtins.str
is_default: builtins.bool
"""A feature for MPA v2 to inform the frontend what's the default page"""
section_header: builtins.str
url_pathname: builtins.str
def __init__(
self,
*,
page_script_hash: builtins.str = ...,
page_name: builtins.str = ...,
icon: builtins.str = ...,
is_default: builtins.bool = ...,
section_header: builtins.str = ...,
url_pathname: builtins.str = ...,
) -> None: ...
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: ...
global___AppPage = AppPage

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/ArrowNamedDataSet.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import Arrow_pb2 as streamlit_dot_proto_dot_Arrow__pb2
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')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.ArrowNamedDataSet_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\026ArrowNamedDataSetProto'
_globals['_ARROWNAMEDDATASET']._serialized_start=72
_globals['_ARROWNAMEDDATASET']._serialized_end=145
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,57 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import streamlit.proto.Arrow_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class ArrowNamedDataSet(google.protobuf.message.Message):
"""A dataset that can be referenced by name."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
NAME_FIELD_NUMBER: builtins.int
HAS_NAME_FIELD_NUMBER: builtins.int
DATA_FIELD_NUMBER: builtins.int
name: builtins.str
"""The dataset name."""
has_name: builtins.bool
"""True if the name field (above) was manually set. This is used to get
around proto3 not having a way to check whether something was set.
"""
@property
def data(self) -> streamlit.proto.Arrow_pb2.Arrow:
"""The data itself."""
def __init__(
self,
*,
name: builtins.str = ...,
has_name: builtins.bool = ...,
data: streamlit.proto.Arrow_pb2.Arrow | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["data", b"data", "has_name", b"has_name", "name", b"name"]) -> None: ...
global___ArrowNamedDataSet = ArrowNamedDataSet

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/ArrowVegaLiteChart.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import Arrow_pb2 as streamlit_dot_proto_dot_Arrow__pb2
from streamlit.proto import ArrowNamedDataSet_pb2 as streamlit_dot_proto_dot_ArrowNamedDataSet__pb2
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')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.ArrowVegaLiteChart_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\027ArrowVegaLiteChartProto'
_globals['_ARROWVEGALITECHART']._serialized_start=115
_globals['_ARROWVEGALITECHART']._serialized_end=312
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,84 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import streamlit.proto.ArrowNamedDataSet_pb2
import streamlit.proto.Arrow_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class ArrowVegaLiteChart(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
SPEC_FIELD_NUMBER: builtins.int
DATA_FIELD_NUMBER: builtins.int
DATASETS_FIELD_NUMBER: builtins.int
USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
THEME_FIELD_NUMBER: builtins.int
ID_FIELD_NUMBER: builtins.int
SELECTION_MODE_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
spec: builtins.str
"""The a JSON-formatted string with the Vega-Lite spec."""
use_container_width: builtins.bool
"""If True, will overwrite the chart width spec to fit to container."""
theme: builtins.str
"""override the properties with a theme. Currently, only "streamlit" or None are accepted."""
id: builtins.str
"""ID, required for selection events."""
form_id: builtins.str
"""The form ID of the widget, this is required if selections are activated on the chart."""
@property
def data(self) -> streamlit.proto.Arrow_pb2.Arrow:
"""The dataframe that will be used as the chart's main data source, if
specified using Vega-Lite's inline API.
"""
@property
def datasets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[streamlit.proto.ArrowNamedDataSet_pb2.ArrowNamedDataSet]:
"""Dataframes associated with this chart using Vega-Lite's datasets API, if
any. The data is either in `data` field or in the `datasets` field.
"""
@property
def selection_mode(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""Named selection parameters that are activated to trigger reruns."""
def __init__(
self,
*,
spec: builtins.str = ...,
data: streamlit.proto.Arrow_pb2.Arrow | None = ...,
datasets: collections.abc.Iterable[streamlit.proto.ArrowNamedDataSet_pb2.ArrowNamedDataSet] | None = ...,
use_container_width: builtins.bool = ...,
theme: builtins.str = ...,
id: builtins.str = ...,
selection_mode: collections.abc.Iterable[builtins.str] | None = ...,
form_id: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
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: ...
global___ArrowVegaLiteChart = ArrowVegaLiteChart

View File

@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Arrow.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Arrow.proto\"\xcb\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\x12\x17\n\nrow_height\x18\r \x01(\rH\x00\x88\x01\x01\"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\x42\r\n\x0b_row_height\"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')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Arrow_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nArrowProto'
_globals['_ARROW']._serialized_start=32
_globals['_ARROW']._serialized_end=491
_globals['_ARROW_EDITINGMODE']._serialized_start=339
_globals['_ARROW_EDITINGMODE']._serialized_end=391
_globals['_ARROW_SELECTIONMODE']._serialized_start=393
_globals['_ARROW_SELECTIONMODE']._serialized_end=476
_globals['_STYLER']._serialized_start=493
_globals['_STYLER']._serialized_end=572
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,188 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Arrow(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _EditingMode:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _EditingModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Arrow._EditingMode.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
READ_ONLY: Arrow._EditingMode.ValueType # 0
"""Read-only table."""
FIXED: Arrow._EditingMode.ValueType # 1
"""Activates editing but only allow editing of existing cells."""
DYNAMIC: Arrow._EditingMode.ValueType # 2
"""Activates editing and allow adding & deleting rows."""
class EditingMode(_EditingMode, metaclass=_EditingModeEnumTypeWrapper):
"""Available editing modes:"""
READ_ONLY: Arrow.EditingMode.ValueType # 0
"""Read-only table."""
FIXED: Arrow.EditingMode.ValueType # 1
"""Activates editing but only allow editing of existing cells."""
DYNAMIC: Arrow.EditingMode.ValueType # 2
"""Activates editing and allow adding & deleting rows."""
class _SelectionMode:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _SelectionModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Arrow._SelectionMode.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
SINGLE_ROW: Arrow._SelectionMode.ValueType # 0
"""Only one row can be selected at a time."""
MULTI_ROW: Arrow._SelectionMode.ValueType # 1
"""Multiple rows can be selected at a time."""
SINGLE_COLUMN: Arrow._SelectionMode.ValueType # 2
"""Only one column can be selected at a time."""
MULTI_COLUMN: Arrow._SelectionMode.ValueType # 3
"""Multiple columns can be selected at a time."""
class SelectionMode(_SelectionMode, metaclass=_SelectionModeEnumTypeWrapper):
"""Available editing modes:"""
SINGLE_ROW: Arrow.SelectionMode.ValueType # 0
"""Only one row can be selected at a time."""
MULTI_ROW: Arrow.SelectionMode.ValueType # 1
"""Multiple rows can be selected at a time."""
SINGLE_COLUMN: Arrow.SelectionMode.ValueType # 2
"""Only one column can be selected at a time."""
MULTI_COLUMN: Arrow.SelectionMode.ValueType # 3
"""Multiple columns can be selected at a time."""
DATA_FIELD_NUMBER: builtins.int
STYLER_FIELD_NUMBER: builtins.int
WIDTH_FIELD_NUMBER: builtins.int
HEIGHT_FIELD_NUMBER: builtins.int
USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
ID_FIELD_NUMBER: builtins.int
COLUMNS_FIELD_NUMBER: builtins.int
EDITING_MODE_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
COLUMN_ORDER_FIELD_NUMBER: builtins.int
SELECTION_MODE_FIELD_NUMBER: builtins.int
ROW_HEIGHT_FIELD_NUMBER: builtins.int
data: builtins.bytes
"""The serialized arrow dataframe"""
width: builtins.int
"""Width in pixels"""
height: builtins.int
"""Height in pixels"""
use_container_width: builtins.bool
"""If True, will overwrite the dataframe width to fit to container."""
id: builtins.str
"""The id of the widget, this is required if the dataframe is editable"""
columns: builtins.str
"""Column configuration as JSON"""
editing_mode: global___Arrow.EditingMode.ValueType
"""Activate table editing"""
disabled: builtins.bool
"""Deactivates editing"""
form_id: builtins.str
"""The form ID of the widget, this is required if the dataframe is editable"""
row_height: builtins.int
"""Row height in pixels"""
@property
def styler(self) -> global___Styler:
"""Pandas styler information"""
@property
def column_order(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""Defines the order in which columns are displayed"""
@property
def selection_mode(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___Arrow.SelectionMode.ValueType]:
"""Activated dataframe selections events"""
def __init__(
self,
*,
data: builtins.bytes = ...,
styler: global___Styler | None = ...,
width: builtins.int = ...,
height: builtins.int = ...,
use_container_width: builtins.bool = ...,
id: builtins.str = ...,
columns: builtins.str = ...,
editing_mode: global___Arrow.EditingMode.ValueType = ...,
disabled: builtins.bool = ...,
form_id: builtins.str = ...,
column_order: collections.abc.Iterable[builtins.str] | None = ...,
selection_mode: collections.abc.Iterable[global___Arrow.SelectionMode.ValueType] | None = ...,
row_height: builtins.int | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_row_height", b"_row_height", "row_height", b"row_height", "styler", b"styler"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["_row_height", b"_row_height", "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", "row_height", b"row_height", "selection_mode", b"selection_mode", "styler", b"styler", "use_container_width", b"use_container_width", "width", b"width"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["_row_height", b"_row_height"]) -> typing.Literal["row_height"] | None: ...
global___Arrow = Arrow
@typing.final
class Styler(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
UUID_FIELD_NUMBER: builtins.int
CAPTION_FIELD_NUMBER: builtins.int
STYLES_FIELD_NUMBER: builtins.int
DISPLAY_VALUES_FIELD_NUMBER: builtins.int
uuid: builtins.str
"""The Styler's source UUID (if the user provided one), or the path-based
hash that we generate (if no source UUID was provided).
"""
caption: builtins.str
"""The table's caption."""
styles: builtins.str
"""`styles` contains the CSS for the entire source table."""
display_values: builtins.bytes
"""display_values is another ArrowTable: a copy of the source table, but
with all the display values formatted to the user-specified rules.
"""
def __init__(
self,
*,
uuid: builtins.str = ...,
caption: builtins.str = ...,
styles: builtins.str = ...,
display_values: builtins.bytes = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["caption", b"caption", "display_values", b"display_values", "styles", b"styles", "uuid", b"uuid"]) -> None: ...
global___Styler = Styler

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/AudioInput.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/AudioInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\x8b\x01\n\nAudioInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0c\n\x04help\x18\x03 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x04 \x01(\t\x12\x10\n\x08\x64isabled\x18\x05 \x01(\x08\x12\x31\n\x10label_visibility\x18\x06 \x01(\x0b\x32\x17.LabelVisibilityMessageB/\n\x1c\x63om.snowflake.apps.streamlitB\x0f\x41udioInputProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.AudioInput_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\017AudioInputProto'
_globals['_AUDIOINPUT']._serialized_start=83
_globals['_AUDIOINPUT']._serialized_end=222
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,58 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import streamlit.proto.LabelVisibilityMessage_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class AudioInput(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
id: builtins.str
label: builtins.str
help: builtins.str
form_id: builtins.str
disabled: builtins.bool
@property
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
def __init__(
self,
*,
id: builtins.str = ...,
label: builtins.str = ...,
help: builtins.str = ...,
form_id: builtins.str = ...,
disabled: builtins.bool = ...,
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility"]) -> None: ...
global___AudioInput = AudioInput

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Audio.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
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')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Audio_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nAudioProto'
_globals['_AUDIO']._serialized_start=32
_globals['_AUDIO']._serialized_end=166
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,58 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Audio(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
URL_FIELD_NUMBER: builtins.int
START_TIME_FIELD_NUMBER: builtins.int
END_TIME_FIELD_NUMBER: builtins.int
LOOP_FIELD_NUMBER: builtins.int
AUTOPLAY_FIELD_NUMBER: builtins.int
ID_FIELD_NUMBER: builtins.int
url: builtins.str
start_time: builtins.int
"""The currentTime attribute of the HTML <audio> tag's <source> subtag."""
end_time: builtins.int
"""The time at which the audio should stop playing. If not specified, plays to the end."""
loop: builtins.bool
"""Indicates whether the audio should start over from the beginning once it ends."""
autoplay: builtins.bool
id: builtins.str
def __init__(
self,
*,
url: builtins.str = ...,
start_time: builtins.int = ...,
end_time: builtins.int = ...,
loop: builtins.bool = ...,
autoplay: builtins.bool = ...,
id: builtins.str = ...,
) -> None: ...
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: ...
global___Audio = Audio

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/AuthRedirect.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"streamlit/proto/AuthRedirect.proto\"\x1b\n\x0c\x41uthRedirect\x12\x0b\n\x03url\x18\x01 \x01(\tB1\n\x1c\x63om.snowflake.apps.streamlitB\x11\x41uthRedirectProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.AuthRedirect_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\021AuthRedirectProto'
_globals['_AUTHREDIRECT']._serialized_start=38
_globals['_AUTHREDIRECT']._serialized_end=65
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,41 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class AuthRedirect(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
URL_FIELD_NUMBER: builtins.int
url: builtins.str
"""URL TO REDIRECT TO"""
def __init__(
self,
*,
url: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["url", b"url"]) -> None: ...
global___AuthRedirect = AuthRedirect

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/AutoRerun.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/AutoRerun.proto\"2\n\tAutoRerun\x12\x10\n\x08interval\x18\x01 \x01(\x02\x12\x13\n\x0b\x66ragment_id\x18\x02 \x01(\tB.\n\x1c\x63om.snowflake.apps.streamlitB\x0e\x41utoRerunProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.AutoRerun_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\016AutoRerunProto'
_globals['_AUTORERUN']._serialized_start=35
_globals['_AUTORERUN']._serialized_end=85
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,45 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class AutoRerun(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
INTERVAL_FIELD_NUMBER: builtins.int
FRAGMENT_ID_FIELD_NUMBER: builtins.int
interval: builtins.float
"""The interval of reruns in seconds"""
fragment_id: builtins.str
"""The fragment ID to rerun"""
def __init__(
self,
*,
interval: builtins.float = ...,
fragment_id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["fragment_id", b"fragment_id", "interval", b"interval"]) -> None: ...
global___AutoRerun = AutoRerun

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/BackMsg.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import ClientState_pb2 as streamlit_dot_proto_dot_ClientState__pb2
from streamlit.proto import Common_pb2 as streamlit_dot_proto_dot_Common__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/BackMsg.proto\x1a!streamlit/proto/ClientState.proto\x1a\x1cstreamlit/proto/Common.proto\"\xf2\x02\n\x07\x42\x61\x63kMsg\x12\x15\n\x0b\x63lear_cache\x18\x05 \x01(\x08H\x00\x12\x19\n\x0fset_run_on_save\x18\x06 \x01(\x08H\x00\x12\x15\n\x0bstop_script\x18\x07 \x01(\x08H\x00\x12$\n\x0crerun_script\x18\x0b \x01(\x0b\x32\x0c.ClientStateH\x00\x12\x17\n\rload_git_info\x18\x0c \x01(\x08H\x00\x12$\n\x1a\x64\x65\x62ug_disconnect_websocket\x18\x0e \x01(\x08H\x00\x12 \n\x16\x64\x65\x62ug_shutdown_runtime\x18\x0f \x01(\x08H\x00\x12-\n\x11\x66ile_urls_request\x18\x10 \x01(\x0b\x32\x10.FileURLsRequestH\x00\x12\x17\n\rapp_heartbeat\x18\x11 \x01(\x08H\x00\x12\x1d\n\x15\x64\x65\x62ug_last_backmsg_id\x18\r \x01(\tB\x06\n\x04typeJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\x42,\n\x1c\x63om.snowflake.apps.streamlitB\x0c\x42\x61\x63kMsgProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.BackMsg_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014BackMsgProto'
_globals['_BACKMSG']._serialized_start=99
_globals['_BACKMSG']._serialized_end=469
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,105 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import streamlit.proto.ClientState_pb2
import streamlit.proto.Common_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class BackMsg(google.protobuf.message.Message):
"""A message from the browser to the server."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CLEAR_CACHE_FIELD_NUMBER: builtins.int
SET_RUN_ON_SAVE_FIELD_NUMBER: builtins.int
STOP_SCRIPT_FIELD_NUMBER: builtins.int
RERUN_SCRIPT_FIELD_NUMBER: builtins.int
LOAD_GIT_INFO_FIELD_NUMBER: builtins.int
DEBUG_DISCONNECT_WEBSOCKET_FIELD_NUMBER: builtins.int
DEBUG_SHUTDOWN_RUNTIME_FIELD_NUMBER: builtins.int
FILE_URLS_REQUEST_FIELD_NUMBER: builtins.int
APP_HEARTBEAT_FIELD_NUMBER: builtins.int
DEBUG_LAST_BACKMSG_ID_FIELD_NUMBER: builtins.int
clear_cache: builtins.bool
"""DEPRECATED. Asks the server to run the script with this object
ReRun rerun = 4;
Requests that the app's @st_cache be cleared
"""
set_run_on_save: builtins.bool
"""Requests that the runOnSave behavior for this app be set
to the given value
"""
stop_script: builtins.bool
"""Requests that the script's execution be stopped"""
load_git_info: builtins.bool
debug_disconnect_websocket: builtins.bool
"""Test and dev-mode only field used to ask the server to disconnect the
client's websocket connection. This message is IGNORED unless the
runtime is configured with global.developmentMode = True.
"""
debug_shutdown_runtime: builtins.bool
"""Test and dev-mode only field used to ask the server to shut down the
runtime. This message is IGNORED unless the runtime is configured with
global.developmentMode = True.
"""
app_heartbeat: builtins.bool
"""Sends an app heartbeat message through the websocket"""
debug_last_backmsg_id: builtins.str
"""An ID used to associate this BackMsg with the corresponding ForwardMsgs
that are sent to the client due to it. As its name suggests, this field
should only be used for testing.
"""
@property
def rerun_script(self) -> streamlit.proto.ClientState_pb2.ClientState:
"""DEPRECATED. Set to true to ask the server to close the connection
bool close_connection = 10;
"""
@property
def file_urls_request(self) -> streamlit.proto.Common_pb2.FileURLsRequest:
"""Requests that the server generate URLs for getting/uploading/deleting
files for the `st.file_uploader` widget
"""
def __init__(
self,
*,
clear_cache: builtins.bool = ...,
set_run_on_save: builtins.bool = ...,
stop_script: builtins.bool = ...,
rerun_script: streamlit.proto.ClientState_pb2.ClientState | None = ...,
load_git_info: builtins.bool = ...,
debug_disconnect_websocket: builtins.bool = ...,
debug_shutdown_runtime: builtins.bool = ...,
file_urls_request: streamlit.proto.Common_pb2.FileURLsRequest | None = ...,
app_heartbeat: builtins.bool = ...,
debug_last_backmsg_id: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["app_heartbeat", b"app_heartbeat", "clear_cache", b"clear_cache", "debug_disconnect_websocket", b"debug_disconnect_websocket", "debug_shutdown_runtime", b"debug_shutdown_runtime", "file_urls_request", b"file_urls_request", "load_git_info", b"load_git_info", "rerun_script", b"rerun_script", "set_run_on_save", b"set_run_on_save", "stop_script", b"stop_script", "type", b"type"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["app_heartbeat", b"app_heartbeat", "clear_cache", b"clear_cache", "debug_disconnect_websocket", b"debug_disconnect_websocket", "debug_last_backmsg_id", b"debug_last_backmsg_id", "debug_shutdown_runtime", b"debug_shutdown_runtime", "file_urls_request", b"file_urls_request", "load_git_info", b"load_git_info", "rerun_script", b"rerun_script", "set_run_on_save", b"set_run_on_save", "stop_script", b"stop_script", "type", b"type"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["clear_cache", "set_run_on_save", "stop_script", "rerun_script", "load_git_info", "debug_disconnect_websocket", "debug_shutdown_runtime", "file_urls_request", "app_heartbeat"] | None: ...
global___BackMsg = BackMsg

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Balloons.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1estreamlit/proto/Balloons.proto\"$\n\x08\x42\x61lloons\x12\x0c\n\x04show\x18\x03 \x01(\x08J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\x42-\n\x1c\x63om.snowflake.apps.streamlitB\rBalloonsProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Balloons_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\rBalloonsProto'
_globals['_BALLOONS']._serialized_start=34
_globals['_BALLOONS']._serialized_end=70
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,43 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Balloons(google.protobuf.message.Message):
"""A python empty."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
SHOW_FIELD_NUMBER: builtins.int
show: builtins.bool
"""Dummy boolean because protos need to have something."""
def __init__(
self,
*,
show: builtins.bool = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["show", b"show"]) -> None: ...
global___Balloons = Balloons

View File

@@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Block.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Block.proto\"\x86\n\n\x05\x42lock\x12#\n\x08vertical\x18\x01 \x01(\x0b\x32\x0f.Block.VerticalH\x00\x12\'\n\nhorizontal\x18\x02 \x01(\x0b\x32\x11.Block.HorizontalH\x00\x12\x1f\n\x06\x63olumn\x18\x03 \x01(\x0b\x32\r.Block.ColumnH\x00\x12\'\n\nexpandable\x18\x04 \x01(\x0b\x32\x11.Block.ExpandableH\x00\x12\x1b\n\x04\x66orm\x18\x05 \x01(\x0b\x32\x0b.Block.FormH\x00\x12,\n\rtab_container\x18\x06 \x01(\x0b\x32\x13.Block.TabContainerH\x00\x12\x19\n\x03tab\x18\x07 \x01(\x0b\x32\n.Block.TabH\x00\x12*\n\x0c\x63hat_message\x18\t \x01(\x0b\x32\x12.Block.ChatMessageH\x00\x12!\n\x07popover\x18\n \x01(\x0b\x32\x0e.Block.PopoverH\x00\x12\x1f\n\x06\x64ialog\x18\x0b \x01(\x0b\x32\r.Block.DialogH\x00\x12\x13\n\x0b\x61llow_empty\x18\x08 \x01(\x08\x12\x0f\n\x02id\x18\x0c \x01(\tH\x01\x88\x01\x01\x1a*\n\x08Vertical\x12\x0e\n\x06\x62order\x18\x01 \x01(\x08\x12\x0e\n\x06height\x18\x02 \x01(\r\x1a\x19\n\nHorizontal\x12\x0b\n\x03gap\x18\x01 \x01(\t\x1a\xad\x01\n\x06\x43olumn\x12\x0e\n\x06weight\x18\x01 \x01(\x01\x12\x0b\n\x03gap\x18\x02 \x01(\t\x12;\n\x12vertical_alignment\x18\x03 \x01(\x0e\x32\x1f.Block.Column.VerticalAlignment\x12\x13\n\x0bshow_border\x18\x04 \x01(\x08\"4\n\x11VerticalAlignment\x12\x07\n\x03TOP\x10\x00\x12\n\n\x06\x43\x45NTER\x10\x01\x12\n\n\x06\x42OTTOM\x10\x02\x1aM\n\nExpandable\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\x08\x65xpanded\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x0c\n\x04icon\x18\x03 \x01(\tB\x0b\n\t_expanded\x1a\x9d\x01\n\x06\x44ialog\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64ismissible\x18\x02 \x01(\x08\x12(\n\x05width\x18\x03 \x01(\x0e\x32\x19.Block.Dialog.DialogWidth\x12\x14\n\x07is_open\x18\x04 \x01(\x08H\x00\x88\x01\x01\"#\n\x0b\x44ialogWidth\x12\t\n\x05SMALL\x10\x00\x12\t\n\x05LARGE\x10\x01\x42\n\n\x08_is_open\x1aY\n\x04\x46orm\x12\x0f\n\x07\x66orm_id\x18\x01 \x01(\t\x12\x17\n\x0f\x63lear_on_submit\x18\x02 \x01(\x08\x12\x0e\n\x06\x62order\x18\x03 \x01(\x08\x12\x17\n\x0f\x65nter_to_submit\x18\x04 \x01(\x08\x1a\x0e\n\x0cTabContainer\x1a\x14\n\x03Tab\x12\r\n\x05label\x18\x01 \x01(\t\x1a\x63\n\x07Popover\x12\r\n\x05label\x18\x01 \x01(\t\x12\x1b\n\x13use_container_width\x18\x02 \x01(\x08\x12\x0c\n\x04help\x18\x03 \x01(\t\x12\x10\n\x08\x64isabled\x18\x04 \x01(\x08\x12\x0c\n\x04icon\x18\x05 \x01(\t\x1a\x8d\x01\n\x0b\x43hatMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61vatar\x18\x02 \x01(\t\x12\x32\n\x0b\x61vatar_type\x18\x03 \x01(\x0e\x32\x1d.Block.ChatMessage.AvatarType\",\n\nAvatarType\x12\t\n\x05IMAGE\x10\x00\x12\t\n\x05\x45MOJI\x10\x01\x12\x08\n\x04ICON\x10\x02\x42\x06\n\x04typeB\x05\n\x03_idB*\n\x1c\x63om.snowflake.apps.streamlitB\nBlockProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Block_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nBlockProto'
_globals['_BLOCK']._serialized_start=32
_globals['_BLOCK']._serialized_end=1318
_globals['_BLOCK_VERTICAL']._serialized_start=445
_globals['_BLOCK_VERTICAL']._serialized_end=487
_globals['_BLOCK_HORIZONTAL']._serialized_start=489
_globals['_BLOCK_HORIZONTAL']._serialized_end=514
_globals['_BLOCK_COLUMN']._serialized_start=517
_globals['_BLOCK_COLUMN']._serialized_end=690
_globals['_BLOCK_COLUMN_VERTICALALIGNMENT']._serialized_start=638
_globals['_BLOCK_COLUMN_VERTICALALIGNMENT']._serialized_end=690
_globals['_BLOCK_EXPANDABLE']._serialized_start=692
_globals['_BLOCK_EXPANDABLE']._serialized_end=769
_globals['_BLOCK_DIALOG']._serialized_start=772
_globals['_BLOCK_DIALOG']._serialized_end=929
_globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_start=882
_globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_end=917
_globals['_BLOCK_FORM']._serialized_start=931
_globals['_BLOCK_FORM']._serialized_end=1020
_globals['_BLOCK_TABCONTAINER']._serialized_start=1022
_globals['_BLOCK_TABCONTAINER']._serialized_end=1036
_globals['_BLOCK_TAB']._serialized_start=1038
_globals['_BLOCK_TAB']._serialized_end=1058
_globals['_BLOCK_POPOVER']._serialized_start=1060
_globals['_BLOCK_POPOVER']._serialized_end=1159
_globals['_BLOCK_CHATMESSAGE']._serialized_start=1162
_globals['_BLOCK_CHATMESSAGE']._serialized_end=1303
_globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_start=1259
_globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_end=1303
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,322 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Block(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
@typing.final
class Vertical(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
BORDER_FIELD_NUMBER: builtins.int
HEIGHT_FIELD_NUMBER: builtins.int
border: builtins.bool
height: builtins.int
"""Height of the container, activates scrolling"""
def __init__(
self,
*,
border: builtins.bool = ...,
height: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["border", b"border", "height", b"height"]) -> None: ...
@typing.final
class Horizontal(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
GAP_FIELD_NUMBER: builtins.int
gap: builtins.str
def __init__(
self,
*,
gap: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["gap", b"gap"]) -> None: ...
@typing.final
class Column(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _VerticalAlignment:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _VerticalAlignmentEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Block.Column._VerticalAlignment.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
TOP: Block.Column._VerticalAlignment.ValueType # 0
CENTER: Block.Column._VerticalAlignment.ValueType # 1
BOTTOM: Block.Column._VerticalAlignment.ValueType # 2
class VerticalAlignment(_VerticalAlignment, metaclass=_VerticalAlignmentEnumTypeWrapper): ...
TOP: Block.Column.VerticalAlignment.ValueType # 0
CENTER: Block.Column.VerticalAlignment.ValueType # 1
BOTTOM: Block.Column.VerticalAlignment.ValueType # 2
WEIGHT_FIELD_NUMBER: builtins.int
GAP_FIELD_NUMBER: builtins.int
VERTICAL_ALIGNMENT_FIELD_NUMBER: builtins.int
SHOW_BORDER_FIELD_NUMBER: builtins.int
weight: builtins.float
gap: builtins.str
vertical_alignment: global___Block.Column.VerticalAlignment.ValueType
show_border: builtins.bool
def __init__(
self,
*,
weight: builtins.float = ...,
gap: builtins.str = ...,
vertical_alignment: global___Block.Column.VerticalAlignment.ValueType = ...,
show_border: builtins.bool = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["gap", b"gap", "show_border", b"show_border", "vertical_alignment", b"vertical_alignment", "weight", b"weight"]) -> None: ...
@typing.final
class Expandable(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
LABEL_FIELD_NUMBER: builtins.int
EXPANDED_FIELD_NUMBER: builtins.int
ICON_FIELD_NUMBER: builtins.int
label: builtins.str
expanded: builtins.bool
icon: builtins.str
def __init__(
self,
*,
label: builtins.str = ...,
expanded: builtins.bool | None = ...,
icon: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_expanded", b"_expanded", "expanded", b"expanded"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["_expanded", b"_expanded", "expanded", b"expanded", "icon", b"icon", "label", b"label"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["_expanded", b"_expanded"]) -> typing.Literal["expanded"] | None: ...
@typing.final
class Dialog(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _DialogWidth:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _DialogWidthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Block.Dialog._DialogWidth.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
SMALL: Block.Dialog._DialogWidth.ValueType # 0
LARGE: Block.Dialog._DialogWidth.ValueType # 1
class DialogWidth(_DialogWidth, metaclass=_DialogWidthEnumTypeWrapper): ...
SMALL: Block.Dialog.DialogWidth.ValueType # 0
LARGE: Block.Dialog.DialogWidth.ValueType # 1
TITLE_FIELD_NUMBER: builtins.int
DISMISSIBLE_FIELD_NUMBER: builtins.int
WIDTH_FIELD_NUMBER: builtins.int
IS_OPEN_FIELD_NUMBER: builtins.int
title: builtins.str
dismissible: builtins.bool
width: global___Block.Dialog.DialogWidth.ValueType
is_open: builtins.bool
def __init__(
self,
*,
title: builtins.str = ...,
dismissible: builtins.bool = ...,
width: global___Block.Dialog.DialogWidth.ValueType = ...,
is_open: builtins.bool | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_is_open", b"_is_open", "is_open", b"is_open"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["_is_open", b"_is_open", "dismissible", b"dismissible", "is_open", b"is_open", "title", b"title", "width", b"width"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["_is_open", b"_is_open"]) -> typing.Literal["is_open"] | None: ...
@typing.final
class Form(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FORM_ID_FIELD_NUMBER: builtins.int
CLEAR_ON_SUBMIT_FIELD_NUMBER: builtins.int
BORDER_FIELD_NUMBER: builtins.int
ENTER_TO_SUBMIT_FIELD_NUMBER: builtins.int
form_id: builtins.str
clear_on_submit: builtins.bool
border: builtins.bool
enter_to_submit: builtins.bool
def __init__(
self,
*,
form_id: builtins.str = ...,
clear_on_submit: builtins.bool = ...,
border: builtins.bool = ...,
enter_to_submit: builtins.bool = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["border", b"border", "clear_on_submit", b"clear_on_submit", "enter_to_submit", b"enter_to_submit", "form_id", b"form_id"]) -> None: ...
@typing.final
class TabContainer(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
@typing.final
class Tab(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
LABEL_FIELD_NUMBER: builtins.int
label: builtins.str
def __init__(
self,
*,
label: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["label", b"label"]) -> None: ...
@typing.final
class Popover(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
LABEL_FIELD_NUMBER: builtins.int
USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
ICON_FIELD_NUMBER: builtins.int
label: builtins.str
use_container_width: builtins.bool
help: builtins.str
disabled: builtins.bool
icon: builtins.str
def __init__(
self,
*,
label: builtins.str = ...,
use_container_width: builtins.bool = ...,
help: builtins.str = ...,
disabled: builtins.bool = ...,
icon: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["disabled", b"disabled", "help", b"help", "icon", b"icon", "label", b"label", "use_container_width", b"use_container_width"]) -> None: ...
@typing.final
class ChatMessage(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _AvatarType:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _AvatarTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Block.ChatMessage._AvatarType.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
IMAGE: Block.ChatMessage._AvatarType.ValueType # 0
EMOJI: Block.ChatMessage._AvatarType.ValueType # 1
ICON: Block.ChatMessage._AvatarType.ValueType # 2
class AvatarType(_AvatarType, metaclass=_AvatarTypeEnumTypeWrapper): ...
IMAGE: Block.ChatMessage.AvatarType.ValueType # 0
EMOJI: Block.ChatMessage.AvatarType.ValueType # 1
ICON: Block.ChatMessage.AvatarType.ValueType # 2
NAME_FIELD_NUMBER: builtins.int
AVATAR_FIELD_NUMBER: builtins.int
AVATAR_TYPE_FIELD_NUMBER: builtins.int
name: builtins.str
avatar: builtins.str
avatar_type: global___Block.ChatMessage.AvatarType.ValueType
def __init__(
self,
*,
name: builtins.str = ...,
avatar: builtins.str = ...,
avatar_type: global___Block.ChatMessage.AvatarType.ValueType = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["avatar", b"avatar", "avatar_type", b"avatar_type", "name", b"name"]) -> None: ...
VERTICAL_FIELD_NUMBER: builtins.int
HORIZONTAL_FIELD_NUMBER: builtins.int
COLUMN_FIELD_NUMBER: builtins.int
EXPANDABLE_FIELD_NUMBER: builtins.int
FORM_FIELD_NUMBER: builtins.int
TAB_CONTAINER_FIELD_NUMBER: builtins.int
TAB_FIELD_NUMBER: builtins.int
CHAT_MESSAGE_FIELD_NUMBER: builtins.int
POPOVER_FIELD_NUMBER: builtins.int
DIALOG_FIELD_NUMBER: builtins.int
ALLOW_EMPTY_FIELD_NUMBER: builtins.int
ID_FIELD_NUMBER: builtins.int
allow_empty: builtins.bool
id: builtins.str
@property
def vertical(self) -> global___Block.Vertical: ...
@property
def horizontal(self) -> global___Block.Horizontal: ...
@property
def column(self) -> global___Block.Column: ...
@property
def expandable(self) -> global___Block.Expandable: ...
@property
def form(self) -> global___Block.Form: ...
@property
def tab_container(self) -> global___Block.TabContainer: ...
@property
def tab(self) -> global___Block.Tab: ...
@property
def chat_message(self) -> global___Block.ChatMessage: ...
@property
def popover(self) -> global___Block.Popover: ...
@property
def dialog(self) -> global___Block.Dialog: ...
def __init__(
self,
*,
vertical: global___Block.Vertical | None = ...,
horizontal: global___Block.Horizontal | None = ...,
column: global___Block.Column | None = ...,
expandable: global___Block.Expandable | None = ...,
form: global___Block.Form | None = ...,
tab_container: global___Block.TabContainer | None = ...,
tab: global___Block.Tab | None = ...,
chat_message: global___Block.ChatMessage | None = ...,
popover: global___Block.Popover | None = ...,
dialog: global___Block.Dialog | None = ...,
allow_empty: builtins.bool = ...,
id: builtins.str | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_id", b"_id", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "form", b"form", "horizontal", b"horizontal", "id", b"id", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["_id", b"_id", "allow_empty", b"allow_empty", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "form", b"form", "horizontal", b"horizontal", "id", b"id", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical"]) -> None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal["_id", b"_id"]) -> typing.Literal["id"] | None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["vertical", "horizontal", "column", "expandable", "form", "tab_container", "tab", "chat_message", "popover", "dialog"] | None: ...
global___Block = Block

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/BokehChart.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/BokehChart.proto\"M\n\nBokehChart\x12\x0e\n\x06\x66igure\x18\x01 \x01(\t\x12\x1b\n\x13use_container_width\x18\x02 \x01(\x08\x12\x12\n\nelement_id\x18\x03 \x01(\tB/\n\x1c\x63om.snowflake.apps.streamlitB\x0f\x42okehChartProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.BokehChart_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\017BokehChartProto'
_globals['_BOKEHCHART']._serialized_start=36
_globals['_BOKEHCHART']._serialized_end=113
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,49 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class BokehChart(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FIGURE_FIELD_NUMBER: builtins.int
USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
ELEMENT_ID_FIELD_NUMBER: builtins.int
figure: builtins.str
"""A JSON-formatted string from the Bokeh chart figure."""
use_container_width: builtins.bool
"""If True, will overwrite the chart width spec to fit to container."""
element_id: builtins.str
"""A unique ID of this element."""
def __init__(
self,
*,
figure: builtins.str = ...,
use_container_width: builtins.bool = ...,
element_id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["element_id", b"element_id", "figure", b"figure", "use_container_width", b"use_container_width"]) -> None: ...
global___BokehChart = BokehChart

View File

@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/ButtonGroup.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/ButtonGroup.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xf4\x05\n\x0b\x42uttonGroup\x12\n\n\x02id\x18\x01 \x01(\t\x12$\n\x07options\x18\x02 \x03(\x0b\x32\x13.ButtonGroup.Option\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x03(\r\x12\x10\n\x08\x64isabled\x18\x04 \x01(\x08\x12*\n\nclick_mode\x18\x05 \x01(\x0e\x32\x16.ButtonGroup.ClickMode\x12\x0f\n\x07\x66orm_id\x18\x06 \x01(\t\x12\r\n\x05value\x18\x07 \x03(\r\x12\x11\n\tset_value\x18\x08 \x01(\x08\x12\x44\n\x17selection_visualization\x18\t \x01(\x0e\x32#.ButtonGroup.SelectionVisualization\x12!\n\x05style\x18\n \x01(\x0e\x32\x12.ButtonGroup.Style\x12\r\n\x05label\x18\x0b \x01(\t\x12\x31\n\x10label_visibility\x18\x0c \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x11\n\x04help\x18\r \x01(\tH\x00\x88\x01\x01\x1a\xb7\x01\n\x06Option\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x1d\n\x10selected_content\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x63ontent_icon\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\"\n\x15selected_content_icon\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\x13\n\x11_selected_contentB\x0f\n\r_content_iconB\x18\n\x16_selected_content_icon\"0\n\tClickMode\x12\x11\n\rSINGLE_SELECT\x10\x00\x12\x10\n\x0cMULTI_SELECT\x10\x01\"C\n\x16SelectionVisualization\x12\x11\n\rONLY_SELECTED\x10\x00\x12\x16\n\x12\x41LL_UP_TO_SELECTED\x10\x01\"9\n\x05Style\x12\x15\n\x11SEGMENTED_CONTROL\x10\x00\x12\t\n\x05PILLS\x10\x01\x12\x0e\n\nBORDERLESS\x10\x02\x42\x07\n\x05_helpB0\n\x1c\x63om.snowflake.apps.streamlitB\x10\x42uttonGroupProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.ButtonGroup_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\020ButtonGroupProto'
_globals['_BUTTONGROUP']._serialized_start=84
_globals['_BUTTONGROUP']._serialized_end=840
_globals['_BUTTONGROUP_OPTION']._serialized_start=470
_globals['_BUTTONGROUP_OPTION']._serialized_end=653
_globals['_BUTTONGROUP_CLICKMODE']._serialized_start=655
_globals['_BUTTONGROUP_CLICKMODE']._serialized_end=703
_globals['_BUTTONGROUP_SELECTIONVISUALIZATION']._serialized_start=705
_globals['_BUTTONGROUP_SELECTIONVISUALIZATION']._serialized_end=772
_globals['_BUTTONGROUP_STYLE']._serialized_start=774
_globals['_BUTTONGROUP_STYLE']._serialized_end=831
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,169 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import streamlit.proto.LabelVisibilityMessage_pb2
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class ButtonGroup(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _ClickMode:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _ClickModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ButtonGroup._ClickMode.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
SINGLE_SELECT: ButtonGroup._ClickMode.ValueType # 0
MULTI_SELECT: ButtonGroup._ClickMode.ValueType # 1
class ClickMode(_ClickMode, metaclass=_ClickModeEnumTypeWrapper): ...
SINGLE_SELECT: ButtonGroup.ClickMode.ValueType # 0
MULTI_SELECT: ButtonGroup.ClickMode.ValueType # 1
class _SelectionVisualization:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _SelectionVisualizationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ButtonGroup._SelectionVisualization.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
ONLY_SELECTED: ButtonGroup._SelectionVisualization.ValueType # 0
ALL_UP_TO_SELECTED: ButtonGroup._SelectionVisualization.ValueType # 1
class SelectionVisualization(_SelectionVisualization, metaclass=_SelectionVisualizationEnumTypeWrapper): ...
ONLY_SELECTED: ButtonGroup.SelectionVisualization.ValueType # 0
ALL_UP_TO_SELECTED: ButtonGroup.SelectionVisualization.ValueType # 1
class _Style:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _StyleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ButtonGroup._Style.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
SEGMENTED_CONTROL: ButtonGroup._Style.ValueType # 0
PILLS: ButtonGroup._Style.ValueType # 1
BORDERLESS: ButtonGroup._Style.ValueType # 2
class Style(_Style, metaclass=_StyleEnumTypeWrapper): ...
SEGMENTED_CONTROL: ButtonGroup.Style.ValueType # 0
PILLS: ButtonGroup.Style.ValueType # 1
BORDERLESS: ButtonGroup.Style.ValueType # 2
@typing.final
class Option(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CONTENT_FIELD_NUMBER: builtins.int
SELECTED_CONTENT_FIELD_NUMBER: builtins.int
CONTENT_ICON_FIELD_NUMBER: builtins.int
SELECTED_CONTENT_ICON_FIELD_NUMBER: builtins.int
content: builtins.str
selected_content: builtins.str
"""when set, this is the content that will be displayed when the option is selected"""
content_icon: builtins.str
"""when set, this is the icon that will be displayed next to the option"""
selected_content_icon: builtins.str
"""when set, this is the icon that will be displayed next to the option when then option is selected"""
def __init__(
self,
*,
content: builtins.str = ...,
selected_content: builtins.str | None = ...,
content_icon: builtins.str | None = ...,
selected_content_icon: builtins.str | None = ...,
) -> None: ...
def HasField(self, field_name: 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"]) -> builtins.bool: ...
def ClearField(self, field_name: 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"]) -> None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal["_content_icon", b"_content_icon"]) -> typing.Literal["content_icon"] | None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal["_selected_content", b"_selected_content"]) -> typing.Literal["selected_content"] | None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal["_selected_content_icon", b"_selected_content_icon"]) -> typing.Literal["selected_content_icon"] | None: ...
ID_FIELD_NUMBER: builtins.int
OPTIONS_FIELD_NUMBER: builtins.int
DEFAULT_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
CLICK_MODE_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
SET_VALUE_FIELD_NUMBER: builtins.int
SELECTION_VISUALIZATION_FIELD_NUMBER: builtins.int
STYLE_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
id: builtins.str
disabled: builtins.bool
click_mode: global___ButtonGroup.ClickMode.ValueType
form_id: builtins.str
set_value: builtins.bool
selection_visualization: global___ButtonGroup.SelectionVisualization.ValueType
style: global___ButtonGroup.Style.ValueType
label: builtins.str
help: builtins.str
@property
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ButtonGroup.Option]: ...
@property
def default(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
"""default is an array of indexes that are selected by default"""
@property
def value(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
"""value passed by the backend"""
@property
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
def __init__(
self,
*,
id: builtins.str = ...,
options: collections.abc.Iterable[global___ButtonGroup.Option] | None = ...,
default: collections.abc.Iterable[builtins.int] | None = ...,
disabled: builtins.bool = ...,
click_mode: global___ButtonGroup.ClickMode.ValueType = ...,
form_id: builtins.str = ...,
value: collections.abc.Iterable[builtins.int] | None = ...,
set_value: builtins.bool = ...,
selection_visualization: global___ButtonGroup.SelectionVisualization.ValueType = ...,
style: global___ButtonGroup.Style.ValueType = ...,
label: builtins.str = ...,
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
help: builtins.str | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_help", b"_help", "help", b"help", "label_visibility", b"label_visibility"]) -> builtins.bool: ...
def ClearField(self, field_name: 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"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["_help", b"_help"]) -> typing.Literal["help"] | None: ...
global___ButtonGroup = ButtonGroup

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Button.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cstreamlit/proto/Button.proto\"\xb9\x01\n\x06\x42utton\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\x08\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x05 \x01(\t\x12\x19\n\x11is_form_submitter\x18\x06 \x01(\x08\x12\x0c\n\x04type\x18\x07 \x01(\t\x12\x10\n\x08\x64isabled\x18\x08 \x01(\x08\x12\x1b\n\x13use_container_width\x18\t \x01(\x08\x12\x0c\n\x04icon\x18\n \x01(\tB+\n\x1c\x63om.snowflake.apps.streamlitB\x0b\x42uttonProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Button_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\013ButtonProto'
_globals['_BUTTON']._serialized_start=33
_globals['_BUTTON']._serialized_end=218
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,71 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Button(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
DEFAULT_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
IS_FORM_SUBMITTER_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
ICON_FIELD_NUMBER: builtins.int
id: builtins.str
label: builtins.str
default: builtins.bool
help: builtins.str
form_id: builtins.str
is_form_submitter: builtins.bool
"""If true, this is a form submission button. The frontend will defer
sending updates for all widgets inside the button's form until
the button is pressed.
"""
type: builtins.str
disabled: builtins.bool
use_container_width: builtins.bool
icon: builtins.str
def __init__(
self,
*,
id: builtins.str = ...,
label: builtins.str = ...,
default: builtins.bool = ...,
help: builtins.str = ...,
form_id: builtins.str = ...,
is_form_submitter: builtins.bool = ...,
type: builtins.str = ...,
disabled: builtins.bool = ...,
use_container_width: builtins.bool = ...,
icon: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "icon", b"icon", "id", b"id", "is_form_submitter", b"is_form_submitter", "label", b"label", "type", b"type", "use_container_width", b"use_container_width"]) -> None: ...
global___Button = Button

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/CameraInput.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/CameraInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\x8c\x01\n\x0b\x43\x61meraInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0c\n\x04help\x18\x03 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x04 \x01(\t\x12\x10\n\x08\x64isabled\x18\x05 \x01(\x08\x12\x31\n\x10label_visibility\x18\x06 \x01(\x0b\x32\x17.LabelVisibilityMessageB0\n\x1c\x63om.snowflake.apps.streamlitB\x10\x43\x61meraInputProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.CameraInput_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\020CameraInputProto'
_globals['_CAMERAINPUT']._serialized_start=84
_globals['_CAMERAINPUT']._serialized_end=224
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,58 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import streamlit.proto.LabelVisibilityMessage_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class CameraInput(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
id: builtins.str
label: builtins.str
help: builtins.str
form_id: builtins.str
disabled: builtins.bool
@property
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
def __init__(
self,
*,
id: builtins.str = ...,
label: builtins.str = ...,
help: builtins.str = ...,
form_id: builtins.str = ...,
disabled: builtins.bool = ...,
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility"]) -> None: ...
global___CameraInput = CameraInput

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/ChatInput.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/ChatInput.proto\"\xd0\x02\n\tChatInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0bplaceholder\x18\x02 \x01(\t\x12\x11\n\tmax_chars\x18\x03 \x01(\r\x12\x10\n\x08\x64isabled\x18\x04 \x01(\x08\x12\r\n\x05value\x18\x05 \x01(\t\x12\x11\n\tset_value\x18\x06 \x01(\x08\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x07 \x01(\t\x12%\n\x08position\x18\x08 \x01(\x0e\x32\x13.ChatInput.Position\x12*\n\x0b\x61\x63\x63\x65pt_file\x18\t \x01(\x0e\x32\x15.ChatInput.AcceptFile\x12\x11\n\tfile_type\x18\n \x03(\t\x12\x1a\n\x12max_upload_size_mb\x18\x0b \x01(\x05\"\x16\n\x08Position\x12\n\n\x06\x42OTTOM\x10\x00\"0\n\nAcceptFile\x12\x08\n\x04NONE\x10\x00\x12\n\n\x06SINGLE\x10\x01\x12\x0c\n\x08MULTIPLE\x10\x02\x42.\n\x1c\x63om.snowflake.apps.streamlitB\x0e\x43hatInputProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.ChatInput_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\016ChatInputProto'
_globals['_CHATINPUT']._serialized_start=36
_globals['_CHATINPUT']._serialized_end=372
_globals['_CHATINPUT_POSITION']._serialized_start=300
_globals['_CHATINPUT_POSITION']._serialized_end=322
_globals['_CHATINPUT_ACCEPTFILE']._serialized_start=324
_globals['_CHATINPUT_ACCEPTFILE']._serialized_end=372
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,111 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class ChatInput(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _Position:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _PositionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ChatInput._Position.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
BOTTOM: ChatInput._Position.ValueType # 0
class Position(_Position, metaclass=_PositionEnumTypeWrapper):
"""DEPRECATED: position property is deprecated and unused."""
BOTTOM: ChatInput.Position.ValueType # 0
class _AcceptFile:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _AcceptFileEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ChatInput._AcceptFile.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
NONE: ChatInput._AcceptFile.ValueType # 0
SINGLE: ChatInput._AcceptFile.ValueType # 1
MULTIPLE: ChatInput._AcceptFile.ValueType # 2
class AcceptFile(_AcceptFile, metaclass=_AcceptFileEnumTypeWrapper): ...
NONE: ChatInput.AcceptFile.ValueType # 0
SINGLE: ChatInput.AcceptFile.ValueType # 1
MULTIPLE: ChatInput.AcceptFile.ValueType # 2
ID_FIELD_NUMBER: builtins.int
PLACEHOLDER_FIELD_NUMBER: builtins.int
MAX_CHARS_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
SET_VALUE_FIELD_NUMBER: builtins.int
DEFAULT_FIELD_NUMBER: builtins.int
POSITION_FIELD_NUMBER: builtins.int
ACCEPT_FILE_FIELD_NUMBER: builtins.int
FILE_TYPE_FIELD_NUMBER: builtins.int
MAX_UPLOAD_SIZE_MB_FIELD_NUMBER: builtins.int
id: builtins.str
placeholder: builtins.str
max_chars: builtins.int
disabled: builtins.bool
value: builtins.str
set_value: builtins.bool
default: builtins.str
position: global___ChatInput.Position.ValueType
accept_file: global___ChatInput.AcceptFile.ValueType
max_upload_size_mb: builtins.int
"""Max file size allowed by server config"""
@property
def file_type(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""Supported file types: For example: ["png","jpg","img"]"""
def __init__(
self,
*,
id: builtins.str = ...,
placeholder: builtins.str = ...,
max_chars: builtins.int = ...,
disabled: builtins.bool = ...,
value: builtins.str = ...,
set_value: builtins.bool = ...,
default: builtins.str = ...,
position: global___ChatInput.Position.ValueType = ...,
accept_file: global___ChatInput.AcceptFile.ValueType = ...,
file_type: collections.abc.Iterable[builtins.str] | None = ...,
max_upload_size_mb: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["accept_file", b"accept_file", "default", b"default", "disabled", b"disabled", "file_type", b"file_type", "id", b"id", "max_chars", b"max_chars", "max_upload_size_mb", b"max_upload_size_mb", "placeholder", b"placeholder", "position", b"position", "set_value", b"set_value", "value", b"value"]) -> None: ...
global___ChatInput = ChatInput

View File

@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Checkbox.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1estreamlit/proto/Checkbox.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\x85\x02\n\x08\x43heckbox\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\x08\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x05 \x01(\t\x12\r\n\x05value\x18\x06 \x01(\x08\x12\x11\n\tset_value\x18\x07 \x01(\x08\x12\x10\n\x08\x64isabled\x18\x08 \x01(\x08\x12\x31\n\x10label_visibility\x18\t \x01(\x0b\x32\x17.LabelVisibilityMessage\x12!\n\x04type\x18\n \x01(\x0e\x32\x13.Checkbox.StyleType\"$\n\tStyleType\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06TOGGLE\x10\x01\x42-\n\x1c\x63om.snowflake.apps.streamlitB\rCheckboxProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Checkbox_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\rCheckboxProto'
_globals['_CHECKBOX']._serialized_start=81
_globals['_CHECKBOX']._serialized_end=342
_globals['_CHECKBOX_STYLETYPE']._serialized_start=306
_globals['_CHECKBOX_STYLETYPE']._serialized_end=342
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,90 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import streamlit.proto.LabelVisibilityMessage_pb2
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Checkbox(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _StyleType:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _StyleTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Checkbox._StyleType.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
DEFAULT: Checkbox._StyleType.ValueType # 0
TOGGLE: Checkbox._StyleType.ValueType # 1
class StyleType(_StyleType, metaclass=_StyleTypeEnumTypeWrapper): ...
DEFAULT: Checkbox.StyleType.ValueType # 0
TOGGLE: Checkbox.StyleType.ValueType # 1
ID_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
DEFAULT_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
SET_VALUE_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
id: builtins.str
label: builtins.str
default: builtins.bool
help: builtins.str
form_id: builtins.str
value: builtins.bool
set_value: builtins.bool
disabled: builtins.bool
type: global___Checkbox.StyleType.ValueType
@property
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
def __init__(
self,
*,
id: builtins.str = ...,
label: builtins.str = ...,
default: builtins.bool = ...,
help: builtins.str = ...,
form_id: builtins.str = ...,
value: builtins.bool = ...,
set_value: builtins.bool = ...,
disabled: builtins.bool = ...,
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
type: global___Checkbox.StyleType.ValueType = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["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", "set_value", b"set_value", "type", b"type", "value", b"value"]) -> None: ...
global___Checkbox = Checkbox

View File

@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/ClientState.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import WidgetStates_pb2 as streamlit_dot_proto_dot_WidgetStates__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/ClientState.proto\x1a\"streamlit/proto/WidgetStates.proto\"\x83\x01\n\x0b\x43ontextInfo\x12\x15\n\x08timezone\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0ftimezone_offset\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x13\n\x06locale\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x0b\n\t_timezoneB\x12\n\x10_timezone_offsetB\t\n\x07_locale\"\xc6\x01\n\x0b\x43lientState\x12\x14\n\x0cquery_string\x18\x01 \x01(\t\x12$\n\rwidget_states\x18\x02 \x01(\x0b\x32\r.WidgetStates\x12\x18\n\x10page_script_hash\x18\x03 \x01(\t\x12\x11\n\tpage_name\x18\x04 \x01(\t\x12\x13\n\x0b\x66ragment_id\x18\x05 \x01(\t\x12\x15\n\ris_auto_rerun\x18\x06 \x01(\x08\x12\"\n\x0c\x63ontext_info\x18\x08 \x01(\x0b\x32\x0c.ContextInfoB0\n\x1c\x63om.snowflake.apps.streamlitB\x10\x43lientStateProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.ClientState_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\020ClientStateProto'
_globals['_CONTEXTINFO']._serialized_start=74
_globals['_CONTEXTINFO']._serialized_end=205
_globals['_CLIENTSTATE']._serialized_start=208
_globals['_CLIENTSTATE']._serialized_end=406
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,90 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import streamlit.proto.WidgetStates_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class ContextInfo(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TIMEZONE_FIELD_NUMBER: builtins.int
TIMEZONE_OFFSET_FIELD_NUMBER: builtins.int
LOCALE_FIELD_NUMBER: builtins.int
timezone: builtins.str
timezone_offset: builtins.int
locale: builtins.str
def __init__(
self,
*,
timezone: builtins.str | None = ...,
timezone_offset: builtins.int | None = ...,
locale: builtins.str | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_locale", b"_locale", "_timezone", b"_timezone", "_timezone_offset", b"_timezone_offset", "locale", b"locale", "timezone", b"timezone", "timezone_offset", b"timezone_offset"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["_locale", b"_locale", "_timezone", b"_timezone", "_timezone_offset", b"_timezone_offset", "locale", b"locale", "timezone", b"timezone", "timezone_offset", b"timezone_offset"]) -> None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal["_locale", b"_locale"]) -> typing.Literal["locale"] | None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal["_timezone", b"_timezone"]) -> typing.Literal["timezone"] | None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal["_timezone_offset", b"_timezone_offset"]) -> typing.Literal["timezone_offset"] | None: ...
global___ContextInfo = ContextInfo
@typing.final
class ClientState(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
QUERY_STRING_FIELD_NUMBER: builtins.int
WIDGET_STATES_FIELD_NUMBER: builtins.int
PAGE_SCRIPT_HASH_FIELD_NUMBER: builtins.int
PAGE_NAME_FIELD_NUMBER: builtins.int
FRAGMENT_ID_FIELD_NUMBER: builtins.int
IS_AUTO_RERUN_FIELD_NUMBER: builtins.int
CONTEXT_INFO_FIELD_NUMBER: builtins.int
query_string: builtins.str
page_script_hash: builtins.str
page_name: builtins.str
fragment_id: builtins.str
is_auto_rerun: builtins.bool
@property
def widget_states(self) -> streamlit.proto.WidgetStates_pb2.WidgetStates: ...
@property
def context_info(self) -> global___ContextInfo: ...
def __init__(
self,
*,
query_string: builtins.str = ...,
widget_states: streamlit.proto.WidgetStates_pb2.WidgetStates | None = ...,
page_script_hash: builtins.str = ...,
page_name: builtins.str = ...,
fragment_id: builtins.str = ...,
is_auto_rerun: builtins.bool = ...,
context_info: global___ContextInfo | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["context_info", b"context_info", "widget_states", b"widget_states"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["context_info", b"context_info", "fragment_id", b"fragment_id", "is_auto_rerun", b"is_auto_rerun", "page_name", b"page_name", "page_script_hash", b"page_script_hash", "query_string", b"query_string", "widget_states", b"widget_states"]) -> None: ...
global___ClientState = ClientState

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Code.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1astreamlit/proto/Code.proto\"j\n\x04\x43ode\x12\x11\n\tcode_text\x18\x01 \x01(\t\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x19\n\x11show_line_numbers\x18\x03 \x01(\x08\x12\x12\n\nwrap_lines\x18\x04 \x01(\x08\x12\x0e\n\x06height\x18\x05 \x01(\rB)\n\x1c\x63om.snowflake.apps.streamlitB\tCodeProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Code_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\tCodeProto'
_globals['_CODE']._serialized_start=30
_globals['_CODE']._serialized_end=136
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,55 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Code(google.protobuf.message.Message):
"""st.code"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CODE_TEXT_FIELD_NUMBER: builtins.int
LANGUAGE_FIELD_NUMBER: builtins.int
SHOW_LINE_NUMBERS_FIELD_NUMBER: builtins.int
WRAP_LINES_FIELD_NUMBER: builtins.int
HEIGHT_FIELD_NUMBER: builtins.int
code_text: builtins.str
"""Content to display."""
language: builtins.str
show_line_numbers: builtins.bool
wrap_lines: builtins.bool
height: builtins.int
def __init__(
self,
*,
code_text: builtins.str = ...,
language: builtins.str = ...,
show_line_numbers: builtins.bool = ...,
wrap_lines: builtins.bool = ...,
height: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["code_text", b"code_text", "height", b"height", "language", b"language", "show_line_numbers", b"show_line_numbers", "wrap_lines", b"wrap_lines"]) -> None: ...
global___Code = Code

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/ColorPicker.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/ColorPicker.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xbf\x01\n\x0b\x43olorPicker\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\t\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x05 \x01(\t\x12\r\n\x05value\x18\x06 \x01(\t\x12\x11\n\tset_value\x18\x07 \x01(\x08\x12\x10\n\x08\x64isabled\x18\x08 \x01(\x08\x12\x31\n\x10label_visibility\x18\t \x01(\x0b\x32\x17.LabelVisibilityMessageB0\n\x1c\x63om.snowflake.apps.streamlitB\x10\x43olorPickerProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.ColorPicker_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\020ColorPickerProto'
_globals['_COLORPICKER']._serialized_start=84
_globals['_COLORPICKER']._serialized_end=275
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,67 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import streamlit.proto.LabelVisibilityMessage_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class ColorPicker(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
DEFAULT_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
SET_VALUE_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
id: builtins.str
label: builtins.str
default: builtins.str
help: builtins.str
form_id: builtins.str
value: builtins.str
set_value: builtins.bool
disabled: builtins.bool
@property
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
def __init__(
self,
*,
id: builtins.str = ...,
label: builtins.str = ...,
default: builtins.str = ...,
help: builtins.str = ...,
form_id: builtins.str = ...,
value: builtins.str = ...,
set_value: builtins.bool = ...,
disabled: builtins.bool = ...,
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["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", "set_value", b"set_value", "value", b"value"]) -> None: ...
global___ColorPicker = ColorPicker

View File

@@ -0,0 +1,51 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Common.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cstreamlit/proto/Common.proto\"\x1b\n\x0bStringArray\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\t\"\x1b\n\x0b\x44oubleArray\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\x01\"\x1a\n\nInt32Array\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\x05\"\x1a\n\nInt64Array\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\x03\"\x1b\n\x0bSInt64Array\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\x12\"\x1b\n\x0bUInt32Array\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\r\"0\n\x12StringTriggerValue\x12\x11\n\x04\x64\x61ta\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x07\n\x05_data\"M\n\x0f\x46ileURLsRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x12\n\nfile_names\x18\x02 \x03(\t\x12\x12\n\nsession_id\x18\x03 \x01(\t\"C\n\x08\x46ileURLs\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\t\x12\x12\n\nupload_url\x18\x02 \x01(\t\x12\x12\n\ndelete_url\x18\x03 \x01(\t\"X\n\x10\x46ileURLsResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12\x1c\n\tfile_urls\x18\x02 \x03(\x0b\x32\t.FileURLs\x12\x11\n\terror_msg\x18\x03 \x01(\t\"i\n\x10UploadedFileInfo\x12\n\n\x02id\x18\x01 \x01(\x12\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04size\x18\x03 \x01(\x04\x12\x0f\n\x07\x66ile_id\x18\x04 \x01(\t\x12\x1c\n\tfile_urls\x18\x05 \x01(\x0b\x32\t.FileURLs\"W\n\x11\x46ileUploaderState\x12\x13\n\x0bmax_file_id\x18\x01 \x01(\x12\x12-\n\x12uploaded_file_info\x18\x02 \x03(\x0b\x32\x11.UploadedFileInfo\"z\n\x0e\x43hatInputValue\x12\x11\n\x04\x64\x61ta\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x34\n\x13\x66ile_uploader_state\x18\x02 \x01(\x0b\x32\x12.FileUploaderStateH\x01\x88\x01\x01\x42\x07\n\x05_dataB\x16\n\x14_file_uploader_stateB+\n\x1c\x63om.snowflake.apps.streamlitB\x0b\x43ommonProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Common_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\013CommonProto'
_globals['_STRINGARRAY']._serialized_start=32
_globals['_STRINGARRAY']._serialized_end=59
_globals['_DOUBLEARRAY']._serialized_start=61
_globals['_DOUBLEARRAY']._serialized_end=88
_globals['_INT32ARRAY']._serialized_start=90
_globals['_INT32ARRAY']._serialized_end=116
_globals['_INT64ARRAY']._serialized_start=118
_globals['_INT64ARRAY']._serialized_end=144
_globals['_SINT64ARRAY']._serialized_start=146
_globals['_SINT64ARRAY']._serialized_end=173
_globals['_UINT32ARRAY']._serialized_start=175
_globals['_UINT32ARRAY']._serialized_end=202
_globals['_STRINGTRIGGERVALUE']._serialized_start=204
_globals['_STRINGTRIGGERVALUE']._serialized_end=252
_globals['_FILEURLSREQUEST']._serialized_start=254
_globals['_FILEURLSREQUEST']._serialized_end=331
_globals['_FILEURLS']._serialized_start=333
_globals['_FILEURLS']._serialized_end=400
_globals['_FILEURLSRESPONSE']._serialized_start=402
_globals['_FILEURLSRESPONSE']._serialized_end=490
_globals['_UPLOADEDFILEINFO']._serialized_start=492
_globals['_UPLOADEDFILEINFO']._serialized_end=597
_globals['_FILEUPLOADERSTATE']._serialized_start=599
_globals['_FILEUPLOADERSTATE']._serialized_end=686
_globals['_CHATINPUTVALUE']._serialized_start=688
_globals['_CHATINPUTVALUE']._serialized_end=810
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,297 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class StringArray(google.protobuf.message.Message):
"""Message types that are common to multiple protobufs."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
def __init__(
self,
*,
data: collections.abc.Iterable[builtins.str] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___StringArray = StringArray
@typing.final
class DoubleArray(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ...
def __init__(
self,
*,
data: collections.abc.Iterable[builtins.float] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___DoubleArray = DoubleArray
@typing.final
class Int32Array(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
def __init__(
self,
*,
data: collections.abc.Iterable[builtins.int] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___Int32Array = Int32Array
@typing.final
class Int64Array(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
def __init__(
self,
*,
data: collections.abc.Iterable[builtins.int] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___Int64Array = Int64Array
@typing.final
class SInt64Array(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
def __init__(
self,
*,
data: collections.abc.Iterable[builtins.int] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___SInt64Array = SInt64Array
@typing.final
class UInt32Array(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
def __init__(
self,
*,
data: collections.abc.Iterable[builtins.int] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___UInt32Array = UInt32Array
@typing.final
class StringTriggerValue(google.protobuf.message.Message):
"""DEPRECATED: This proto message is deprecated and unused. The ChatInputValue
proto message should be used instead.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
data: builtins.str
def __init__(
self,
*,
data: builtins.str | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_data", b"_data", "data", b"data"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["_data", b"_data", "data", b"data"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["_data", b"_data"]) -> typing.Literal["data"] | None: ...
global___StringTriggerValue = StringTriggerValue
@typing.final
class FileURLsRequest(google.protobuf.message.Message):
"""NOTE: The FileURLsRequest, FileURLs, and FileURLsResponse message types
must remain stable as some external services rely on them to support
`st.file_uploader`. These types aren't completely set in stone, but changing
them requires a good amount of effort so should be avoided if possible.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
REQUEST_ID_FIELD_NUMBER: builtins.int
FILE_NAMES_FIELD_NUMBER: builtins.int
SESSION_ID_FIELD_NUMBER: builtins.int
request_id: builtins.str
session_id: builtins.str
@property
def file_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
def __init__(
self,
*,
request_id: builtins.str = ...,
file_names: collections.abc.Iterable[builtins.str] | None = ...,
session_id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["file_names", b"file_names", "request_id", b"request_id", "session_id", b"session_id"]) -> None: ...
global___FileURLsRequest = FileURLsRequest
@typing.final
class FileURLs(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FILE_ID_FIELD_NUMBER: builtins.int
UPLOAD_URL_FIELD_NUMBER: builtins.int
DELETE_URL_FIELD_NUMBER: builtins.int
file_id: builtins.str
upload_url: builtins.str
delete_url: builtins.str
def __init__(
self,
*,
file_id: builtins.str = ...,
upload_url: builtins.str = ...,
delete_url: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["delete_url", b"delete_url", "file_id", b"file_id", "upload_url", b"upload_url"]) -> None: ...
global___FileURLs = FileURLs
@typing.final
class FileURLsResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
RESPONSE_ID_FIELD_NUMBER: builtins.int
FILE_URLS_FIELD_NUMBER: builtins.int
ERROR_MSG_FIELD_NUMBER: builtins.int
response_id: builtins.str
error_msg: builtins.str
@property
def file_urls(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FileURLs]: ...
def __init__(
self,
*,
response_id: builtins.str = ...,
file_urls: collections.abc.Iterable[global___FileURLs] | None = ...,
error_msg: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["error_msg", b"error_msg", "file_urls", b"file_urls", "response_id", b"response_id"]) -> None: ...
global___FileURLsResponse = FileURLsResponse
@typing.final
class UploadedFileInfo(google.protobuf.message.Message):
"""Information on a file uploaded via the file_uploader widget."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
NAME_FIELD_NUMBER: builtins.int
SIZE_FIELD_NUMBER: builtins.int
FILE_ID_FIELD_NUMBER: builtins.int
FILE_URLS_FIELD_NUMBER: builtins.int
id: builtins.int
"""DEPRECATED."""
name: builtins.str
size: builtins.int
"""The size of this file in bytes."""
file_id: builtins.str
"""ID that can be used to retrieve a file."""
@property
def file_urls(self) -> global___FileURLs:
"""Metadata containing information about file_urls."""
def __init__(
self,
*,
id: builtins.int = ...,
name: builtins.str = ...,
size: builtins.int = ...,
file_id: builtins.str = ...,
file_urls: global___FileURLs | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["file_urls", b"file_urls"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["file_id", b"file_id", "file_urls", b"file_urls", "id", b"id", "name", b"name", "size", b"size"]) -> None: ...
global___UploadedFileInfo = UploadedFileInfo
@typing.final
class FileUploaderState(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
MAX_FILE_ID_FIELD_NUMBER: builtins.int
UPLOADED_FILE_INFO_FIELD_NUMBER: builtins.int
max_file_id: builtins.int
"""DEPRECATED"""
@property
def uploaded_file_info(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UploadedFileInfo]: ...
def __init__(
self,
*,
max_file_id: builtins.int = ...,
uploaded_file_info: collections.abc.Iterable[global___UploadedFileInfo] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["max_file_id", b"max_file_id", "uploaded_file_info", b"uploaded_file_info"]) -> None: ...
global___FileUploaderState = FileUploaderState
@typing.final
class ChatInputValue(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
FILE_UPLOADER_STATE_FIELD_NUMBER: builtins.int
data: builtins.str
@property
def file_uploader_state(self) -> global___FileUploaderState: ...
def __init__(
self,
*,
data: builtins.str | None = ...,
file_uploader_state: global___FileUploaderState | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_data", b"_data", "_file_uploader_state", b"_file_uploader_state", "data", b"data", "file_uploader_state", b"file_uploader_state"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["_data", b"_data", "_file_uploader_state", b"_file_uploader_state", "data", b"data", "file_uploader_state", b"file_uploader_state"]) -> None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal["_data", b"_data"]) -> typing.Literal["data"] | None: ...
@typing.overload
def WhichOneof(self, oneof_group: typing.Literal["_file_uploader_state", b"_file_uploader_state"]) -> typing.Literal["file_uploader_state"] | None: ...
global___ChatInputValue = ChatInputValue

View File

@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Components.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/Components.proto\"\x8b\x01\n\x11\x43omponentInstance\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tjson_args\x18\x02 \x01(\t\x12!\n\x0cspecial_args\x18\x03 \x03(\x0b\x32\x0b.SpecialArg\x12\x16\n\x0e\x63omponent_name\x18\x04 \x01(\t\x12\x0b\n\x03url\x18\x05 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x06 \x01(\t\"_\n\nSpecialArg\x12\x0b\n\x03key\x18\x01 \x01(\t\x12*\n\x0f\x61rrow_dataframe\x18\x02 \x01(\x0b\x32\x0f.ArrowDataframeH\x00\x12\x0f\n\x05\x62ytes\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05value\"J\n\x0e\x41rrowDataframe\x12\x19\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x0b.ArrowTable\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\r\n\x05width\x18\x03 \x01(\r\"]\n\nArrowTable\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\x0c\x12\x0f\n\x07\x63olumns\x18\x03 \x01(\x0c\x12!\n\x06styler\x18\x05 \x01(\x0b\x32\x11.ArrowTableStyler\"Y\n\x10\x41rrowTableStyler\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\x0f\x43omponentsProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Components_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\017ComponentsProto'
_globals['_COMPONENTINSTANCE']._serialized_start=37
_globals['_COMPONENTINSTANCE']._serialized_end=176
_globals['_SPECIALARG']._serialized_start=178
_globals['_SPECIALARG']._serialized_end=273
_globals['_ARROWDATAFRAME']._serialized_start=275
_globals['_ARROWDATAFRAME']._serialized_end=349
_globals['_ARROWTABLE']._serialized_start=351
_globals['_ARROWTABLE']._serialized_end=444
_globals['_ARROWTABLESTYLER']._serialized_start=446
_globals['_ARROWTABLESTYLER']._serialized_end=535
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,172 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class ComponentInstance(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
JSON_ARGS_FIELD_NUMBER: builtins.int
SPECIAL_ARGS_FIELD_NUMBER: builtins.int
COMPONENT_NAME_FIELD_NUMBER: builtins.int
URL_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
id: builtins.str
"""The instance's "widget ID", used to uniquely identify it."""
json_args: builtins.str
"""Argument dictionary, for JSON-serializable args."""
component_name: builtins.str
"""The component type's unique name."""
url: builtins.str
"""Optional URL to load the component from. By default this is not set,
but while testing, a user can e.g. point this to a local node server
that they're developing their component in.
"""
form_id: builtins.str
@property
def special_args(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SpecialArg]:
"""Additional, non-JSON args. These require special processing
on the other end.
"""
def __init__(
self,
*,
id: builtins.str = ...,
json_args: builtins.str = ...,
special_args: collections.abc.Iterable[global___SpecialArg] | None = ...,
component_name: builtins.str = ...,
url: builtins.str = ...,
form_id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["component_name", b"component_name", "form_id", b"form_id", "id", b"id", "json_args", b"json_args", "special_args", b"special_args", "url", b"url"]) -> None: ...
global___ComponentInstance = ComponentInstance
@typing.final
class SpecialArg(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
KEY_FIELD_NUMBER: builtins.int
ARROW_DATAFRAME_FIELD_NUMBER: builtins.int
BYTES_FIELD_NUMBER: builtins.int
key: builtins.str
bytes: builtins.bytes
@property
def arrow_dataframe(self) -> global___ArrowDataframe: ...
def __init__(
self,
*,
key: builtins.str = ...,
arrow_dataframe: global___ArrowDataframe | None = ...,
bytes: builtins.bytes = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["arrow_dataframe", b"arrow_dataframe", "bytes", b"bytes", "value", b"value"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["arrow_dataframe", b"arrow_dataframe", "bytes", b"bytes", "key", b"key", "value", b"value"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["arrow_dataframe", "bytes"] | None: ...
global___SpecialArg = SpecialArg
@typing.final
class ArrowDataframe(google.protobuf.message.Message):
"""Components uses Apache Arrow for dataframe serialization.
This is distinct from `Arrow.proto`: Components was created before
Streamlit supported Arrow for internal dataframe serialization, and the
two implementations currently use different logic + data structures.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
HEIGHT_FIELD_NUMBER: builtins.int
WIDTH_FIELD_NUMBER: builtins.int
height: builtins.int
width: builtins.int
@property
def data(self) -> global___ArrowTable: ...
def __init__(
self,
*,
data: global___ArrowTable | None = ...,
height: builtins.int = ...,
width: builtins.int = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["data", b"data", "height", b"height", "width", b"width"]) -> None: ...
global___ArrowDataframe = ArrowDataframe
@typing.final
class ArrowTable(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
INDEX_FIELD_NUMBER: builtins.int
COLUMNS_FIELD_NUMBER: builtins.int
STYLER_FIELD_NUMBER: builtins.int
data: builtins.bytes
index: builtins.bytes
columns: builtins.bytes
@property
def styler(self) -> global___ArrowTableStyler: ...
def __init__(
self,
*,
data: builtins.bytes = ...,
index: builtins.bytes = ...,
columns: builtins.bytes = ...,
styler: global___ArrowTableStyler | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["styler", b"styler"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["columns", b"columns", "data", b"data", "index", b"index", "styler", b"styler"]) -> None: ...
global___ArrowTable = ArrowTable
@typing.final
class ArrowTableStyler(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
UUID_FIELD_NUMBER: builtins.int
CAPTION_FIELD_NUMBER: builtins.int
STYLES_FIELD_NUMBER: builtins.int
DISPLAY_VALUES_FIELD_NUMBER: builtins.int
uuid: builtins.str
caption: builtins.str
styles: builtins.str
display_values: builtins.bytes
def __init__(
self,
*,
uuid: builtins.str = ...,
caption: builtins.str = ...,
styles: builtins.str = ...,
display_values: builtins.bytes = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["caption", b"caption", "display_values", b"display_values", "styles", b"styles", "uuid", b"uuid"]) -> None: ...
global___ArrowTableStyler = ArrowTableStyler

View File

@@ -0,0 +1,56 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/DataFrame.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import Common_pb2 as streamlit_dot_proto_dot_Common__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/DataFrame.proto\x1a\x1cstreamlit/proto/Common.proto\"m\n\tDataFrame\x12\x14\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x06.Table\x12\x15\n\x05index\x18\x02 \x01(\x0b\x32\x06.Index\x12\x17\n\x07\x63olumns\x18\x03 \x01(\x0b\x32\x06.Index\x12\x1a\n\x05style\x18\x04 \x01(\x0b\x32\x0b.TableStyle\"\x9f\x02\n\x05Index\x12\"\n\x0bplain_index\x18\x01 \x01(\x0b\x32\x0b.PlainIndexH\x00\x12\"\n\x0brange_index\x18\x02 \x01(\x0b\x32\x0b.RangeIndexH\x00\x12\"\n\x0bmulti_index\x18\x04 \x01(\x0b\x32\x0b.MultiIndexH\x00\x12(\n\x0e\x64\x61tetime_index\x18\x06 \x01(\x0b\x32\x0e.DatetimeIndexH\x00\x12*\n\x0ftimedelta_index\x18\x07 \x01(\x0b\x32\x0f.TimedeltaIndexH\x00\x12#\n\x0cint_64_index\x18\t \x01(\x0b\x32\x0b.Int64IndexH\x00\x12\'\n\x0e\x66loat_64_index\x18\x0b \x01(\x0b\x32\r.Float64IndexH\x00\x42\x06\n\x04type\"%\n\nPlainIndex\x12\x17\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\t.AnyArray\")\n\nRangeIndex\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0c\n\x04stop\x18\x02 \x01(\x03\"A\n\nMultiIndex\x12\x16\n\x06levels\x18\x01 \x03(\x0b\x32\x06.Index\x12\x1b\n\x06labels\x18\x02 \x03(\x0b\x32\x0b.Int32Array\"+\n\rDatetimeIndex\x12\x1a\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x0c.StringArray\"+\n\x0eTimedeltaIndex\x12\x19\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x0b.Int64Array\"\'\n\nInt64Index\x12\x19\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x0b.Int64Array\"*\n\x0c\x46loat64Index\x12\x1a\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x0c.DoubleArray\"+\n\x08\x43SSStyle\x12\x10\n\x08property\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"U\n\tCellStyle\x12\x16\n\x03\x63ss\x18\x01 \x03(\x0b\x32\t.CSSStyle\x12\x15\n\rdisplay_value\x18\x02 \x01(\t\x12\x19\n\x11has_display_value\x18\x03 \x01(\x08\",\n\x0e\x43\x65llStyleArray\x12\x1a\n\x06styles\x18\x01 \x03(\x0b\x32\n.CellStyle\"\xb9\x01\n\x08\x41nyArray\x12\x1f\n\x07strings\x18\x01 \x01(\x0b\x32\x0c.StringArrayH\x00\x12\x1f\n\x07\x64oubles\x18\x02 \x01(\x0b\x32\x0c.DoubleArrayH\x00\x12\x1d\n\x06int64s\x18\x03 \x01(\x0b\x32\x0b.Int64ArrayH\x00\x12!\n\tdatetimes\x18\x04 \x01(\x0b\x32\x0c.StringArrayH\x00\x12!\n\ntimedeltas\x18\x05 \x01(\x0b\x32\x0b.Int64ArrayH\x00\x42\x06\n\x04type\" \n\x05Table\x12\x17\n\x04\x63ols\x18\x01 \x03(\x0b\x32\t.AnyArray\"+\n\nTableStyle\x12\x1d\n\x04\x63ols\x18\x01 \x03(\x0b\x32\x0f.CellStyleArrayB.\n\x1c\x63om.snowflake.apps.streamlitB\x0e\x44\x61taFrameProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.DataFrame_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\016DataFrameProto'
_globals['_DATAFRAME']._serialized_start=65
_globals['_DATAFRAME']._serialized_end=174
_globals['_INDEX']._serialized_start=177
_globals['_INDEX']._serialized_end=464
_globals['_PLAININDEX']._serialized_start=466
_globals['_PLAININDEX']._serialized_end=503
_globals['_RANGEINDEX']._serialized_start=505
_globals['_RANGEINDEX']._serialized_end=546
_globals['_MULTIINDEX']._serialized_start=548
_globals['_MULTIINDEX']._serialized_end=613
_globals['_DATETIMEINDEX']._serialized_start=615
_globals['_DATETIMEINDEX']._serialized_end=658
_globals['_TIMEDELTAINDEX']._serialized_start=660
_globals['_TIMEDELTAINDEX']._serialized_end=703
_globals['_INT64INDEX']._serialized_start=705
_globals['_INT64INDEX']._serialized_end=744
_globals['_FLOAT64INDEX']._serialized_start=746
_globals['_FLOAT64INDEX']._serialized_end=788
_globals['_CSSSTYLE']._serialized_start=790
_globals['_CSSSTYLE']._serialized_end=833
_globals['_CELLSTYLE']._serialized_start=835
_globals['_CELLSTYLE']._serialized_end=920
_globals['_CELLSTYLEARRAY']._serialized_start=922
_globals['_CELLSTYLEARRAY']._serialized_end=966
_globals['_ANYARRAY']._serialized_start=969
_globals['_ANYARRAY']._serialized_end=1154
_globals['_TABLE']._serialized_start=1156
_globals['_TABLE']._serialized_end=1188
_globals['_TABLESTYLE']._serialized_start=1190
_globals['_TABLESTYLE']._serialized_end=1233
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,397 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import streamlit.proto.Common_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class DataFrame(google.protobuf.message.Message):
"""DEPRECATED: This proto message is deprecated and unsused. Use Arrow.proto instead.
Represents a pandas DataFrame.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
INDEX_FIELD_NUMBER: builtins.int
COLUMNS_FIELD_NUMBER: builtins.int
STYLE_FIELD_NUMBER: builtins.int
@property
def data(self) -> global___Table:
"""The data in the array."""
@property
def index(self) -> global___Index:
"""List of row names. (Multiple implies a multi-index.)"""
@property
def columns(self) -> global___Index:
"""List of column names. (Multiple implies a multi-index.)"""
@property
def style(self) -> global___TableStyle:
"""Cell style and formatting data. Optional."""
def __init__(
self,
*,
data: global___Table | None = ...,
index: global___Index | None = ...,
columns: global___Index | None = ...,
style: global___TableStyle | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["columns", b"columns", "data", b"data", "index", b"index", "style", b"style"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["columns", b"columns", "data", b"data", "index", b"index", "style", b"style"]) -> None: ...
global___DataFrame = DataFrame
@typing.final
class Index(google.protobuf.message.Message):
"""An index in the dataFrame"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
PLAIN_INDEX_FIELD_NUMBER: builtins.int
RANGE_INDEX_FIELD_NUMBER: builtins.int
MULTI_INDEX_FIELD_NUMBER: builtins.int
DATETIME_INDEX_FIELD_NUMBER: builtins.int
TIMEDELTA_INDEX_FIELD_NUMBER: builtins.int
INT_64_INDEX_FIELD_NUMBER: builtins.int
FLOAT_64_INDEX_FIELD_NUMBER: builtins.int
@property
def plain_index(self) -> global___PlainIndex: ...
@property
def range_index(self) -> global___RangeIndex: ...
@property
def multi_index(self) -> global___MultiIndex:
"""CategoricalIndex categorical_index = 3;"""
@property
def datetime_index(self) -> global___DatetimeIndex:
"""IntervalIndex interval_index = 5;"""
@property
def timedelta_index(self) -> global___TimedeltaIndex: ...
@property
def int_64_index(self) -> global___Int64Index:
"""PeriodIndex period_index = 8;"""
@property
def float_64_index(self) -> global___Float64Index:
"""UInt64Index uint_64_index = 10;"""
def __init__(
self,
*,
plain_index: global___PlainIndex | None = ...,
range_index: global___RangeIndex | None = ...,
multi_index: global___MultiIndex | None = ...,
datetime_index: global___DatetimeIndex | None = ...,
timedelta_index: global___TimedeltaIndex | None = ...,
int_64_index: global___Int64Index | None = ...,
float_64_index: global___Float64Index | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["datetime_index", b"datetime_index", "float_64_index", b"float_64_index", "int_64_index", b"int_64_index", "multi_index", b"multi_index", "plain_index", b"plain_index", "range_index", b"range_index", "timedelta_index", b"timedelta_index", "type", b"type"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["datetime_index", b"datetime_index", "float_64_index", b"float_64_index", "int_64_index", b"int_64_index", "multi_index", b"multi_index", "plain_index", b"plain_index", "range_index", b"range_index", "timedelta_index", b"timedelta_index", "type", b"type"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["plain_index", "range_index", "multi_index", "datetime_index", "timedelta_index", "int_64_index", "float_64_index"] | None: ...
global___Index = Index
@typing.final
class PlainIndex(google.protobuf.message.Message):
"""Basic, 1D index."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> global___AnyArray: ...
def __init__(
self,
*,
data: global___AnyArray | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___PlainIndex = PlainIndex
@typing.final
class RangeIndex(google.protobuf.message.Message):
"""Range index. See:
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.RangeIndex.html
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
START_FIELD_NUMBER: builtins.int
STOP_FIELD_NUMBER: builtins.int
start: builtins.int
stop: builtins.int
def __init__(
self,
*,
start: builtins.int = ...,
stop: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["start", b"start", "stop", b"stop"]) -> None: ...
global___RangeIndex = RangeIndex
@typing.final
class MultiIndex(google.protobuf.message.Message):
"""A multi-level, or hierarchical, Index. See:
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.MultiIndex.html
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
LEVELS_FIELD_NUMBER: builtins.int
LABELS_FIELD_NUMBER: builtins.int
@property
def levels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Index]: ...
@property
def labels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[streamlit.proto.Common_pb2.Int32Array]: ...
def __init__(
self,
*,
levels: collections.abc.Iterable[global___Index] | None = ...,
labels: collections.abc.Iterable[streamlit.proto.Common_pb2.Int32Array] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["labels", b"labels", "levels", b"levels"]) -> None: ...
global___MultiIndex = MultiIndex
@typing.final
class DatetimeIndex(google.protobuf.message.Message):
"""A date represented internally as nano second epoch int64. See:
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DatetimeIndex.html
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> streamlit.proto.Common_pb2.StringArray: ...
def __init__(
self,
*,
data: streamlit.proto.Common_pb2.StringArray | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___DatetimeIndex = DatetimeIndex
@typing.final
class TimedeltaIndex(google.protobuf.message.Message):
"""A time interval represented internally as nano second epoch int64. See:
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.TimedeltaIndex.html
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> streamlit.proto.Common_pb2.Int64Array: ...
def __init__(
self,
*,
data: streamlit.proto.Common_pb2.Int64Array | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___TimedeltaIndex = TimedeltaIndex
@typing.final
class Int64Index(google.protobuf.message.Message):
"""See:
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Int64Index.html
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> streamlit.proto.Common_pb2.Int64Array: ...
def __init__(
self,
*,
data: streamlit.proto.Common_pb2.Int64Array | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___Int64Index = Int64Index
@typing.final
class Float64Index(google.protobuf.message.Message):
"""See:
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Int64Index.html
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> streamlit.proto.Common_pb2.DoubleArray: ...
def __init__(
self,
*,
data: streamlit.proto.Common_pb2.DoubleArray | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ...
global___Float64Index = Float64Index
@typing.final
class CSSStyle(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
PROPERTY_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
property: builtins.str
value: builtins.str
def __init__(
self,
*,
property: builtins.str = ...,
value: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["property", b"property", "value", b"value"]) -> None: ...
global___CSSStyle = CSSStyle
@typing.final
class CellStyle(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CSS_FIELD_NUMBER: builtins.int
DISPLAY_VALUE_FIELD_NUMBER: builtins.int
HAS_DISPLAY_VALUE_FIELD_NUMBER: builtins.int
display_value: builtins.str
"""e.g. '21.96%'"""
has_display_value: builtins.bool
"""The default value for a string field in proto3 is '', so we need
this extra bool to indicate the presence of a user-specified
display_value, which itself could be ''.
"""
@property
def css(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CSSStyle]: ...
def __init__(
self,
*,
css: collections.abc.Iterable[global___CSSStyle] | None = ...,
display_value: builtins.str = ...,
has_display_value: builtins.bool = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["css", b"css", "display_value", b"display_value", "has_display_value", b"has_display_value"]) -> None: ...
global___CellStyle = CellStyle
@typing.final
class CellStyleArray(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
STYLES_FIELD_NUMBER: builtins.int
@property
def styles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CellStyle]: ...
def __init__(
self,
*,
styles: collections.abc.Iterable[global___CellStyle] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["styles", b"styles"]) -> None: ...
global___CellStyleArray = CellStyleArray
@typing.final
class AnyArray(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
STRINGS_FIELD_NUMBER: builtins.int
DOUBLES_FIELD_NUMBER: builtins.int
INT64S_FIELD_NUMBER: builtins.int
DATETIMES_FIELD_NUMBER: builtins.int
TIMEDELTAS_FIELD_NUMBER: builtins.int
@property
def strings(self) -> streamlit.proto.Common_pb2.StringArray: ...
@property
def doubles(self) -> streamlit.proto.Common_pb2.DoubleArray: ...
@property
def int64s(self) -> streamlit.proto.Common_pb2.Int64Array: ...
@property
def datetimes(self) -> streamlit.proto.Common_pb2.StringArray: ...
@property
def timedeltas(self) -> streamlit.proto.Common_pb2.Int64Array: ...
def __init__(
self,
*,
strings: streamlit.proto.Common_pb2.StringArray | None = ...,
doubles: streamlit.proto.Common_pb2.DoubleArray | None = ...,
int64s: streamlit.proto.Common_pb2.Int64Array | None = ...,
datetimes: streamlit.proto.Common_pb2.StringArray | None = ...,
timedeltas: streamlit.proto.Common_pb2.Int64Array | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["datetimes", b"datetimes", "doubles", b"doubles", "int64s", b"int64s", "strings", b"strings", "timedeltas", b"timedeltas", "type", b"type"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["datetimes", b"datetimes", "doubles", b"doubles", "int64s", b"int64s", "strings", b"strings", "timedeltas", b"timedeltas", "type", b"type"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["strings", "doubles", "int64s", "datetimes", "timedeltas"] | None: ...
global___AnyArray = AnyArray
@typing.final
class Table(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
COLS_FIELD_NUMBER: builtins.int
@property
def cols(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AnyArray]: ...
def __init__(
self,
*,
cols: collections.abc.Iterable[global___AnyArray] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["cols", b"cols"]) -> None: ...
global___Table = Table
@typing.final
class TableStyle(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
COLS_FIELD_NUMBER: builtins.int
@property
def cols(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CellStyleArray]: ...
def __init__(
self,
*,
cols: collections.abc.Iterable[global___CellStyleArray] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["cols", b"cols"]) -> None: ...
global___TableStyle = TableStyle

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/DateInput.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/DateInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xf9\x01\n\tDateInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x03(\t\x12\x0b\n\x03min\x18\x04 \x01(\t\x12\x0b\n\x03max\x18\x05 \x01(\t\x12\x10\n\x08is_range\x18\x06 \x01(\x08\x12\x0c\n\x04help\x18\x07 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x08 \x01(\t\x12\r\n\x05value\x18\t \x03(\t\x12\x11\n\tset_value\x18\n \x01(\x08\x12\x10\n\x08\x64isabled\x18\x0b \x01(\x08\x12\x31\n\x10label_visibility\x18\x0c \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x0e\n\x06\x66ormat\x18\r \x01(\tB.\n\x1c\x63om.snowflake.apps.streamlitB\x0e\x44\x61teInputProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.DateInput_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\016DateInputProto'
_globals['_DATEINPUT']._serialized_start=82
_globals['_DATEINPUT']._serialized_end=331
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,83 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import streamlit.proto.LabelVisibilityMessage_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class DateInput(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
DEFAULT_FIELD_NUMBER: builtins.int
MIN_FIELD_NUMBER: builtins.int
MAX_FIELD_NUMBER: builtins.int
IS_RANGE_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
SET_VALUE_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
FORMAT_FIELD_NUMBER: builtins.int
id: builtins.str
label: builtins.str
min: builtins.str
max: builtins.str
is_range: builtins.bool
help: builtins.str
form_id: builtins.str
set_value: builtins.bool
disabled: builtins.bool
format: builtins.str
@property
def default(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
@property
def value(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
@property
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
def __init__(
self,
*,
id: builtins.str = ...,
label: builtins.str = ...,
default: collections.abc.Iterable[builtins.str] | None = ...,
min: builtins.str = ...,
max: builtins.str = ...,
is_range: builtins.bool = ...,
help: builtins.str = ...,
form_id: builtins.str = ...,
value: collections.abc.Iterable[builtins.str] | None = ...,
set_value: builtins.bool = ...,
disabled: builtins.bool = ...,
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
format: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "help", b"help", "id", b"id", "is_range", b"is_range", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "set_value", b"set_value", "value", b"value"]) -> None: ...
global___DateInput = DateInput

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/DeckGlJsonChart.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%streamlit/proto/DeckGlJsonChart.proto\"\x8d\x02\n\x0f\x44\x65\x63kGlJsonChart\x12\x0c\n\x04json\x18\x01 \x01(\t\x12\x0f\n\x07tooltip\x18\x02 \x01(\t\x12\x1b\n\x13use_container_width\x18\x04 \x01(\x08\x12\n\n\x02id\x18\x05 \x01(\t\x12\x14\n\x0cmapbox_token\x18\x06 \x01(\t\x12\r\n\x05width\x18\x07 \x01(\r\x12\x0e\n\x06height\x18\x08 \x01(\r\x12\x36\n\x0eselection_mode\x18\t \x03(\x0e\x32\x1e.DeckGlJsonChart.SelectionMode\x12\x0f\n\x07\x66orm_id\x18\n \x01(\t\"4\n\rSelectionMode\x12\x11\n\rSINGLE_OBJECT\x10\x00\x12\x10\n\x0cMULTI_OBJECT\x10\x01\x42\x34\n\x1c\x63om.snowflake.apps.streamlitB\x14\x44\x65\x63kGlJsonChartProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.DeckGlJsonChart_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\024DeckGlJsonChartProto'
_globals['_DECKGLJSONCHART']._serialized_start=42
_globals['_DECKGLJSONCHART']._serialized_end=311
_globals['_DECKGLJSONCHART_SELECTIONMODE']._serialized_start=259
_globals['_DECKGLJSONCHART_SELECTIONMODE']._serialized_end=311
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,102 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class DeckGlJsonChart(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _SelectionMode:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _SelectionModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DeckGlJsonChart._SelectionMode.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
SINGLE_OBJECT: DeckGlJsonChart._SelectionMode.ValueType # 0
"""Only one object can be selected at a time."""
MULTI_OBJECT: DeckGlJsonChart._SelectionMode.ValueType # 1
"""Multiple objects can be selected at a time."""
class SelectionMode(_SelectionMode, metaclass=_SelectionModeEnumTypeWrapper):
"""Available selection modes:"""
SINGLE_OBJECT: DeckGlJsonChart.SelectionMode.ValueType # 0
"""Only one object can be selected at a time."""
MULTI_OBJECT: DeckGlJsonChart.SelectionMode.ValueType # 1
"""Multiple objects can be selected at a time."""
JSON_FIELD_NUMBER: builtins.int
TOOLTIP_FIELD_NUMBER: builtins.int
USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
ID_FIELD_NUMBER: builtins.int
MAPBOX_TOKEN_FIELD_NUMBER: builtins.int
WIDTH_FIELD_NUMBER: builtins.int
HEIGHT_FIELD_NUMBER: builtins.int
SELECTION_MODE_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
json: builtins.str
"""The json of the pydeck object (https://deckgl.readthedocs.io/en/latest/deck.html)"""
tooltip: builtins.str
use_container_width: builtins.bool
"""If True, will overwrite the chart width spec to fit to container."""
id: builtins.str
"""ID, required for selection events."""
mapbox_token: builtins.str
"""The user-configured Mapbox token. If empty, the token id fetched from https://data.streamlit.io/tokens.json"""
width: builtins.int
"""Width in pixels"""
height: builtins.int
"""Height in pixels"""
form_id: builtins.str
"""The form ID of the widget, this is required if the chart has selection events"""
@property
def selection_mode(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DeckGlJsonChart.SelectionMode.ValueType]:
"""If non-empty, treat this instance as a Widget"""
def __init__(
self,
*,
json: builtins.str = ...,
tooltip: builtins.str = ...,
use_container_width: builtins.bool = ...,
id: builtins.str = ...,
mapbox_token: builtins.str = ...,
width: builtins.int = ...,
height: builtins.int = ...,
selection_mode: collections.abc.Iterable[global___DeckGlJsonChart.SelectionMode.ValueType] | None = ...,
form_id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["form_id", b"form_id", "height", b"height", "id", b"id", "json", b"json", "mapbox_token", b"mapbox_token", "selection_mode", b"selection_mode", "tooltip", b"tooltip", "use_container_width", b"use_container_width", "width", b"width"]) -> None: ...
global___DeckGlJsonChart = DeckGlJsonChart

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Delta.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import Block_pb2 as streamlit_dot_proto_dot_Block__pb2
from streamlit.proto import Element_pb2 as streamlit_dot_proto_dot_Element__pb2
from streamlit.proto import NamedDataSet_pb2 as streamlit_dot_proto_dot_NamedDataSet__pb2
from streamlit.proto import ArrowNamedDataSet_pb2 as streamlit_dot_proto_dot_ArrowNamedDataSet__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Delta.proto\x1a\x1bstreamlit/proto/Block.proto\x1a\x1dstreamlit/proto/Element.proto\x1a\"streamlit/proto/NamedDataSet.proto\x1a\'streamlit/proto/ArrowNamedDataSet.proto\"\xb3\x01\n\x05\x44\x65lta\x12\x1f\n\x0bnew_element\x18\x03 \x01(\x0b\x32\x08.ElementH\x00\x12\x1b\n\tadd_block\x18\x06 \x01(\x0b\x32\x06.BlockH\x00\x12!\n\x08\x61\x64\x64_rows\x18\x05 \x01(\x0b\x32\r.NamedDataSetH\x00\x12,\n\x0e\x61rrow_add_rows\x18\x07 \x01(\x0b\x32\x12.ArrowNamedDataSetH\x00\x12\x13\n\x0b\x66ragment_id\x18\x08 \x01(\tB\x06\n\x04typeB*\n\x1c\x63om.snowflake.apps.streamlitB\nDeltaProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Delta_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nDeltaProto'
_globals['_DELTA']._serialized_start=169
_globals['_DELTA']._serialized_end=348
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,74 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import streamlit.proto.ArrowNamedDataSet_pb2
import streamlit.proto.Block_pb2
import streamlit.proto.Element_pb2
import streamlit.proto.NamedDataSet_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Delta(google.protobuf.message.Message):
"""A change to an element."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
NEW_ELEMENT_FIELD_NUMBER: builtins.int
ADD_BLOCK_FIELD_NUMBER: builtins.int
ADD_ROWS_FIELD_NUMBER: builtins.int
ARROW_ADD_ROWS_FIELD_NUMBER: builtins.int
FRAGMENT_ID_FIELD_NUMBER: builtins.int
fragment_id: builtins.str
@property
def new_element(self) -> streamlit.proto.Element_pb2.Element:
"""Append a new element to the frontend."""
@property
def add_block(self) -> streamlit.proto.Block_pb2.Block:
"""Append a new block to the frontend."""
@property
def add_rows(self) -> streamlit.proto.NamedDataSet_pb2.NamedDataSet:
"""Append data to a DataFrame in for current element. The element to add to
is identified by the ID field, above. The dataframe is identified either
by NamedDataSet.name or by setting NamedDataSet.has_name to false.
All elements that contain a DataFrame should support add_rows.
"""
@property
def arrow_add_rows(self) -> streamlit.proto.ArrowNamedDataSet_pb2.ArrowNamedDataSet: ...
def __init__(
self,
*,
new_element: streamlit.proto.Element_pb2.Element | None = ...,
add_block: streamlit.proto.Block_pb2.Block | None = ...,
add_rows: streamlit.proto.NamedDataSet_pb2.NamedDataSet | None = ...,
arrow_add_rows: streamlit.proto.ArrowNamedDataSet_pb2.ArrowNamedDataSet | None = ...,
fragment_id: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["add_block", b"add_block", "add_rows", b"add_rows", "arrow_add_rows", b"arrow_add_rows", "new_element", b"new_element", "type", b"type"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["add_block", b"add_block", "add_rows", b"add_rows", "arrow_add_rows", b"arrow_add_rows", "fragment_id", b"fragment_id", "new_element", b"new_element", "type", b"type"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["new_element", "add_block", "add_rows", "arrow_add_rows"] | None: ...
global___Delta = Delta

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/DocString.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/DocString.proto\"v\n\tDocString\x12\x12\n\ndoc_string\x18\x03 \x01(\t\x12\x0c\n\x04type\x18\x04 \x01(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\r\n\x05value\x18\x07 \x01(\t\x12\x18\n\x07members\x18\x08 \x03(\x0b\x32\x07.MemberJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x05\x10\x06\"W\n\x06Member\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0f\n\x05value\x18\x03 \x01(\tH\x00\x12\x14\n\ndoc_string\x18\x04 \x01(\tH\x00\x42\n\n\x08\x63ontentsB.\n\x1c\x63om.snowflake.apps.streamlitB\x0e\x44ocStringProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.DocString_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\016DocStringProto'
_globals['_DOCSTRING']._serialized_start=35
_globals['_DOCSTRING']._serialized_end=153
_globals['_MEMBER']._serialized_start=155
_globals['_MEMBER']._serialized_end=242
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,93 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class DocString(google.protobuf.message.Message):
"""Formatted text"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DOC_STRING_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
NAME_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
MEMBERS_FIELD_NUMBER: builtins.int
doc_string: builtins.str
"""The doc string."""
type: builtins.str
"""The type of the object."""
name: builtins.str
"""The name the user gave to the variable holding this object."""
value: builtins.str
"""A string representation of this object's value."""
@property
def members(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Member]:
"""List of this object's methods and member variables."""
def __init__(
self,
*,
doc_string: builtins.str = ...,
type: builtins.str = ...,
name: builtins.str = ...,
value: builtins.str = ...,
members: collections.abc.Iterable[global___Member] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["doc_string", b"doc_string", "members", b"members", "name", b"name", "type", b"type", "value", b"value"]) -> None: ...
global___DocString = DocString
@typing.final
class Member(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
NAME_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
DOC_STRING_FIELD_NUMBER: builtins.int
name: builtins.str
"""The name of the object."""
type: builtins.str
"""The type of the object."""
value: builtins.str
"""A string representation of this member's value."""
doc_string: builtins.str
"""The doc string."""
def __init__(
self,
*,
name: builtins.str = ...,
type: builtins.str = ...,
value: builtins.str = ...,
doc_string: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["contents", b"contents", "doc_string", b"doc_string", "value", b"value"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["contents", b"contents", "doc_string", b"doc_string", "name", b"name", "type", b"type", "value", b"value"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["contents", b"contents"]) -> typing.Literal["value", "doc_string"] | None: ...
global___Member = Member

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/DownloadButton.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$streamlit/proto/DownloadButton.proto\"\xc9\x01\n\x0e\x44ownloadButton\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\x08\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x05 \x01(\t\x12\x0b\n\x03url\x18\x06 \x01(\t\x12\x10\n\x08\x64isabled\x18\x07 \x01(\x08\x12\x1b\n\x13use_container_width\x18\x08 \x01(\x08\x12\x0c\n\x04type\x18\t \x01(\t\x12\x0c\n\x04icon\x18\n \x01(\t\x12\x14\n\x0cignore_rerun\x18\x0b \x01(\x08\x42\x33\n\x1c\x63om.snowflake.apps.streamlitB\x13\x44ownloadButtonProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.DownloadButton_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\023DownloadButtonProto'
_globals['_DOWNLOADBUTTON']._serialized_start=41
_globals['_DOWNLOADBUTTON']._serialized_end=242
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,70 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class DownloadButton(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
DEFAULT_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
URL_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
ICON_FIELD_NUMBER: builtins.int
IGNORE_RERUN_FIELD_NUMBER: builtins.int
id: builtins.str
label: builtins.str
default: builtins.bool
help: builtins.str
form_id: builtins.str
url: builtins.str
disabled: builtins.bool
use_container_width: builtins.bool
type: builtins.str
icon: builtins.str
ignore_rerun: builtins.bool
def __init__(
self,
*,
id: builtins.str = ...,
label: builtins.str = ...,
default: builtins.bool = ...,
help: builtins.str = ...,
form_id: builtins.str = ...,
url: builtins.str = ...,
disabled: builtins.bool = ...,
use_container_width: builtins.bool = ...,
type: builtins.str = ...,
icon: builtins.str = ...,
ignore_rerun: builtins.bool = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "icon", b"icon", "id", b"id", "ignore_rerun", b"ignore_rerun", "label", b"label", "type", b"type", "url", b"url", "use_container_width", b"use_container_width"]) -> None: ...
global___DownloadButton = DownloadButton

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,312 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import streamlit.proto.Alert_pb2
import streamlit.proto.ArrowVegaLiteChart_pb2
import streamlit.proto.Arrow_pb2
import streamlit.proto.AudioInput_pb2
import streamlit.proto.Audio_pb2
import streamlit.proto.Balloons_pb2
import streamlit.proto.BokehChart_pb2
import streamlit.proto.ButtonGroup_pb2
import streamlit.proto.Button_pb2
import streamlit.proto.CameraInput_pb2
import streamlit.proto.ChatInput_pb2
import streamlit.proto.Checkbox_pb2
import streamlit.proto.Code_pb2
import streamlit.proto.ColorPicker_pb2
import streamlit.proto.Components_pb2
import streamlit.proto.DataFrame_pb2
import streamlit.proto.DateInput_pb2
import streamlit.proto.DeckGlJsonChart_pb2
import streamlit.proto.DocString_pb2
import streamlit.proto.DownloadButton_pb2
import streamlit.proto.Empty_pb2
import streamlit.proto.Exception_pb2
import streamlit.proto.Favicon_pb2
import streamlit.proto.FileUploader_pb2
import streamlit.proto.GraphVizChart_pb2
import streamlit.proto.Heading_pb2
import streamlit.proto.Html_pb2
import streamlit.proto.IFrame_pb2
import streamlit.proto.Image_pb2
import streamlit.proto.Json_pb2
import streamlit.proto.LinkButton_pb2
import streamlit.proto.Markdown_pb2
import streamlit.proto.Metric_pb2
import streamlit.proto.MultiSelect_pb2
import streamlit.proto.NumberInput_pb2
import streamlit.proto.PageLink_pb2
import streamlit.proto.PlotlyChart_pb2
import streamlit.proto.Progress_pb2
import streamlit.proto.Radio_pb2
import streamlit.proto.Selectbox_pb2
import streamlit.proto.Skeleton_pb2
import streamlit.proto.Slider_pb2
import streamlit.proto.Snow_pb2
import streamlit.proto.Spinner_pb2
import streamlit.proto.TextArea_pb2
import streamlit.proto.TextInput_pb2
import streamlit.proto.Text_pb2
import streamlit.proto.TimeInput_pb2
import streamlit.proto.Toast_pb2
import streamlit.proto.VegaLiteChart_pb2
import streamlit.proto.Video_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Element(google.protobuf.message.Message):
"""An element which can be displayed on the screen."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ALERT_FIELD_NUMBER: builtins.int
ARROW_DATA_FRAME_FIELD_NUMBER: builtins.int
ARROW_TABLE_FIELD_NUMBER: builtins.int
ARROW_VEGA_LITE_CHART_FIELD_NUMBER: builtins.int
AUDIO_FIELD_NUMBER: builtins.int
AUDIO_INPUT_FIELD_NUMBER: builtins.int
BALLOONS_FIELD_NUMBER: builtins.int
BOKEH_CHART_FIELD_NUMBER: builtins.int
BUTTON_FIELD_NUMBER: builtins.int
BUTTON_GROUP_FIELD_NUMBER: builtins.int
DOWNLOAD_BUTTON_FIELD_NUMBER: builtins.int
CAMERA_INPUT_FIELD_NUMBER: builtins.int
CHAT_INPUT_FIELD_NUMBER: builtins.int
CHECKBOX_FIELD_NUMBER: builtins.int
COLOR_PICKER_FIELD_NUMBER: builtins.int
COMPONENT_INSTANCE_FIELD_NUMBER: builtins.int
DATA_FRAME_FIELD_NUMBER: builtins.int
TABLE_FIELD_NUMBER: builtins.int
DATE_INPUT_FIELD_NUMBER: builtins.int
DECK_GL_JSON_CHART_FIELD_NUMBER: builtins.int
DOC_STRING_FIELD_NUMBER: builtins.int
EMPTY_FIELD_NUMBER: builtins.int
EXCEPTION_FIELD_NUMBER: builtins.int
FAVICON_FIELD_NUMBER: builtins.int
FILE_UPLOADER_FIELD_NUMBER: builtins.int
GRAPHVIZ_CHART_FIELD_NUMBER: builtins.int
HTML_FIELD_NUMBER: builtins.int
IFRAME_FIELD_NUMBER: builtins.int
IMGS_FIELD_NUMBER: builtins.int
JSON_FIELD_NUMBER: builtins.int
LINK_BUTTON_FIELD_NUMBER: builtins.int
MARKDOWN_FIELD_NUMBER: builtins.int
METRIC_FIELD_NUMBER: builtins.int
MULTISELECT_FIELD_NUMBER: builtins.int
NUMBER_INPUT_FIELD_NUMBER: builtins.int
PAGE_LINK_FIELD_NUMBER: builtins.int
PLOTLY_CHART_FIELD_NUMBER: builtins.int
PROGRESS_FIELD_NUMBER: builtins.int
RADIO_FIELD_NUMBER: builtins.int
SELECTBOX_FIELD_NUMBER: builtins.int
SKELETON_FIELD_NUMBER: builtins.int
SLIDER_FIELD_NUMBER: builtins.int
SNOW_FIELD_NUMBER: builtins.int
SPINNER_FIELD_NUMBER: builtins.int
TEXT_FIELD_NUMBER: builtins.int
TEXT_AREA_FIELD_NUMBER: builtins.int
TEXT_INPUT_FIELD_NUMBER: builtins.int
TIME_INPUT_FIELD_NUMBER: builtins.int
TOAST_FIELD_NUMBER: builtins.int
VEGA_LITE_CHART_FIELD_NUMBER: builtins.int
VIDEO_FIELD_NUMBER: builtins.int
HEADING_FIELD_NUMBER: builtins.int
CODE_FIELD_NUMBER: builtins.int
@property
def alert(self) -> streamlit.proto.Alert_pb2.Alert: ...
@property
def arrow_data_frame(self) -> streamlit.proto.Arrow_pb2.Arrow: ...
@property
def arrow_table(self) -> streamlit.proto.Arrow_pb2.Arrow: ...
@property
def arrow_vega_lite_chart(self) -> streamlit.proto.ArrowVegaLiteChart_pb2.ArrowVegaLiteChart: ...
@property
def audio(self) -> streamlit.proto.Audio_pb2.Audio: ...
@property
def audio_input(self) -> streamlit.proto.AudioInput_pb2.AudioInput: ...
@property
def balloons(self) -> streamlit.proto.Balloons_pb2.Balloons: ...
@property
def bokeh_chart(self) -> streamlit.proto.BokehChart_pb2.BokehChart: ...
@property
def button(self) -> streamlit.proto.Button_pb2.Button: ...
@property
def button_group(self) -> streamlit.proto.ButtonGroup_pb2.ButtonGroup: ...
@property
def download_button(self) -> streamlit.proto.DownloadButton_pb2.DownloadButton: ...
@property
def camera_input(self) -> streamlit.proto.CameraInput_pb2.CameraInput: ...
@property
def chat_input(self) -> streamlit.proto.ChatInput_pb2.ChatInput: ...
@property
def checkbox(self) -> streamlit.proto.Checkbox_pb2.Checkbox: ...
@property
def color_picker(self) -> streamlit.proto.ColorPicker_pb2.ColorPicker: ...
@property
def component_instance(self) -> streamlit.proto.Components_pb2.ComponentInstance: ...
@property
def data_frame(self) -> streamlit.proto.DataFrame_pb2.DataFrame:
"""DEPRECATED: This element is deprecated and unused:"""
@property
def table(self) -> streamlit.proto.DataFrame_pb2.DataFrame:
"""DEPRECATED: This element is deprecated and unused:"""
@property
def date_input(self) -> streamlit.proto.DateInput_pb2.DateInput: ...
@property
def deck_gl_json_chart(self) -> streamlit.proto.DeckGlJsonChart_pb2.DeckGlJsonChart: ...
@property
def doc_string(self) -> streamlit.proto.DocString_pb2.DocString: ...
@property
def empty(self) -> streamlit.proto.Empty_pb2.Empty: ...
@property
def exception(self) -> streamlit.proto.Exception_pb2.Exception: ...
@property
def favicon(self) -> streamlit.proto.Favicon_pb2.Favicon: ...
@property
def file_uploader(self) -> streamlit.proto.FileUploader_pb2.FileUploader: ...
@property
def graphviz_chart(self) -> streamlit.proto.GraphVizChart_pb2.GraphVizChart: ...
@property
def html(self) -> streamlit.proto.Html_pb2.Html: ...
@property
def iframe(self) -> streamlit.proto.IFrame_pb2.IFrame: ...
@property
def imgs(self) -> streamlit.proto.Image_pb2.ImageList: ...
@property
def json(self) -> streamlit.proto.Json_pb2.Json: ...
@property
def link_button(self) -> streamlit.proto.LinkButton_pb2.LinkButton: ...
@property
def markdown(self) -> streamlit.proto.Markdown_pb2.Markdown: ...
@property
def metric(self) -> streamlit.proto.Metric_pb2.Metric: ...
@property
def multiselect(self) -> streamlit.proto.MultiSelect_pb2.MultiSelect: ...
@property
def number_input(self) -> streamlit.proto.NumberInput_pb2.NumberInput: ...
@property
def page_link(self) -> streamlit.proto.PageLink_pb2.PageLink: ...
@property
def plotly_chart(self) -> streamlit.proto.PlotlyChart_pb2.PlotlyChart: ...
@property
def progress(self) -> streamlit.proto.Progress_pb2.Progress: ...
@property
def radio(self) -> streamlit.proto.Radio_pb2.Radio: ...
@property
def selectbox(self) -> streamlit.proto.Selectbox_pb2.Selectbox: ...
@property
def skeleton(self) -> streamlit.proto.Skeleton_pb2.Skeleton: ...
@property
def slider(self) -> streamlit.proto.Slider_pb2.Slider: ...
@property
def snow(self) -> streamlit.proto.Snow_pb2.Snow: ...
@property
def spinner(self) -> streamlit.proto.Spinner_pb2.Spinner: ...
@property
def text(self) -> streamlit.proto.Text_pb2.Text: ...
@property
def text_area(self) -> streamlit.proto.TextArea_pb2.TextArea: ...
@property
def text_input(self) -> streamlit.proto.TextInput_pb2.TextInput: ...
@property
def time_input(self) -> streamlit.proto.TimeInput_pb2.TimeInput: ...
@property
def toast(self) -> streamlit.proto.Toast_pb2.Toast: ...
@property
def vega_lite_chart(self) -> streamlit.proto.VegaLiteChart_pb2.VegaLiteChart:
"""DEPRECATED: This element is deprecated and unused:"""
@property
def video(self) -> streamlit.proto.Video_pb2.Video: ...
@property
def heading(self) -> streamlit.proto.Heading_pb2.Heading: ...
@property
def code(self) -> streamlit.proto.Code_pb2.Code:
"""Next ID: 57"""
def __init__(
self,
*,
alert: streamlit.proto.Alert_pb2.Alert | None = ...,
arrow_data_frame: streamlit.proto.Arrow_pb2.Arrow | None = ...,
arrow_table: streamlit.proto.Arrow_pb2.Arrow | None = ...,
arrow_vega_lite_chart: streamlit.proto.ArrowVegaLiteChart_pb2.ArrowVegaLiteChart | None = ...,
audio: streamlit.proto.Audio_pb2.Audio | None = ...,
audio_input: streamlit.proto.AudioInput_pb2.AudioInput | None = ...,
balloons: streamlit.proto.Balloons_pb2.Balloons | None = ...,
bokeh_chart: streamlit.proto.BokehChart_pb2.BokehChart | None = ...,
button: streamlit.proto.Button_pb2.Button | None = ...,
button_group: streamlit.proto.ButtonGroup_pb2.ButtonGroup | None = ...,
download_button: streamlit.proto.DownloadButton_pb2.DownloadButton | None = ...,
camera_input: streamlit.proto.CameraInput_pb2.CameraInput | None = ...,
chat_input: streamlit.proto.ChatInput_pb2.ChatInput | None = ...,
checkbox: streamlit.proto.Checkbox_pb2.Checkbox | None = ...,
color_picker: streamlit.proto.ColorPicker_pb2.ColorPicker | None = ...,
component_instance: streamlit.proto.Components_pb2.ComponentInstance | None = ...,
data_frame: streamlit.proto.DataFrame_pb2.DataFrame | None = ...,
table: streamlit.proto.DataFrame_pb2.DataFrame | None = ...,
date_input: streamlit.proto.DateInput_pb2.DateInput | None = ...,
deck_gl_json_chart: streamlit.proto.DeckGlJsonChart_pb2.DeckGlJsonChart | None = ...,
doc_string: streamlit.proto.DocString_pb2.DocString | None = ...,
empty: streamlit.proto.Empty_pb2.Empty | None = ...,
exception: streamlit.proto.Exception_pb2.Exception | None = ...,
favicon: streamlit.proto.Favicon_pb2.Favicon | None = ...,
file_uploader: streamlit.proto.FileUploader_pb2.FileUploader | None = ...,
graphviz_chart: streamlit.proto.GraphVizChart_pb2.GraphVizChart | None = ...,
html: streamlit.proto.Html_pb2.Html | None = ...,
iframe: streamlit.proto.IFrame_pb2.IFrame | None = ...,
imgs: streamlit.proto.Image_pb2.ImageList | None = ...,
json: streamlit.proto.Json_pb2.Json | None = ...,
link_button: streamlit.proto.LinkButton_pb2.LinkButton | None = ...,
markdown: streamlit.proto.Markdown_pb2.Markdown | None = ...,
metric: streamlit.proto.Metric_pb2.Metric | None = ...,
multiselect: streamlit.proto.MultiSelect_pb2.MultiSelect | None = ...,
number_input: streamlit.proto.NumberInput_pb2.NumberInput | None = ...,
page_link: streamlit.proto.PageLink_pb2.PageLink | None = ...,
plotly_chart: streamlit.proto.PlotlyChart_pb2.PlotlyChart | None = ...,
progress: streamlit.proto.Progress_pb2.Progress | None = ...,
radio: streamlit.proto.Radio_pb2.Radio | None = ...,
selectbox: streamlit.proto.Selectbox_pb2.Selectbox | None = ...,
skeleton: streamlit.proto.Skeleton_pb2.Skeleton | None = ...,
slider: streamlit.proto.Slider_pb2.Slider | None = ...,
snow: streamlit.proto.Snow_pb2.Snow | None = ...,
spinner: streamlit.proto.Spinner_pb2.Spinner | None = ...,
text: streamlit.proto.Text_pb2.Text | None = ...,
text_area: streamlit.proto.TextArea_pb2.TextArea | None = ...,
text_input: streamlit.proto.TextInput_pb2.TextInput | None = ...,
time_input: streamlit.proto.TimeInput_pb2.TimeInput | None = ...,
toast: streamlit.proto.Toast_pb2.Toast | None = ...,
vega_lite_chart: streamlit.proto.VegaLiteChart_pb2.VegaLiteChart | None = ...,
video: streamlit.proto.Video_pb2.Video | None = ...,
heading: streamlit.proto.Heading_pb2.Heading | None = ...,
code: streamlit.proto.Code_pb2.Code | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["alert", b"alert", "arrow_data_frame", b"arrow_data_frame", "arrow_table", b"arrow_table", "arrow_vega_lite_chart", b"arrow_vega_lite_chart", "audio", b"audio", "audio_input", b"audio_input", "balloons", b"balloons", "bokeh_chart", b"bokeh_chart", "button", b"button", "button_group", b"button_group", "camera_input", b"camera_input", "chat_input", b"chat_input", "checkbox", b"checkbox", "code", b"code", "color_picker", b"color_picker", "component_instance", b"component_instance", "data_frame", b"data_frame", "date_input", b"date_input", "deck_gl_json_chart", b"deck_gl_json_chart", "doc_string", b"doc_string", "download_button", b"download_button", "empty", b"empty", "exception", b"exception", "favicon", b"favicon", "file_uploader", b"file_uploader", "graphviz_chart", b"graphviz_chart", "heading", b"heading", "html", b"html", "iframe", b"iframe", "imgs", b"imgs", "json", b"json", "link_button", b"link_button", "markdown", b"markdown", "metric", b"metric", "multiselect", b"multiselect", "number_input", b"number_input", "page_link", b"page_link", "plotly_chart", b"plotly_chart", "progress", b"progress", "radio", b"radio", "selectbox", b"selectbox", "skeleton", b"skeleton", "slider", b"slider", "snow", b"snow", "spinner", b"spinner", "table", b"table", "text", b"text", "text_area", b"text_area", "text_input", b"text_input", "time_input", b"time_input", "toast", b"toast", "type", b"type", "vega_lite_chart", b"vega_lite_chart", "video", b"video"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["alert", b"alert", "arrow_data_frame", b"arrow_data_frame", "arrow_table", b"arrow_table", "arrow_vega_lite_chart", b"arrow_vega_lite_chart", "audio", b"audio", "audio_input", b"audio_input", "balloons", b"balloons", "bokeh_chart", b"bokeh_chart", "button", b"button", "button_group", b"button_group", "camera_input", b"camera_input", "chat_input", b"chat_input", "checkbox", b"checkbox", "code", b"code", "color_picker", b"color_picker", "component_instance", b"component_instance", "data_frame", b"data_frame", "date_input", b"date_input", "deck_gl_json_chart", b"deck_gl_json_chart", "doc_string", b"doc_string", "download_button", b"download_button", "empty", b"empty", "exception", b"exception", "favicon", b"favicon", "file_uploader", b"file_uploader", "graphviz_chart", b"graphviz_chart", "heading", b"heading", "html", b"html", "iframe", b"iframe", "imgs", b"imgs", "json", b"json", "link_button", b"link_button", "markdown", b"markdown", "metric", b"metric", "multiselect", b"multiselect", "number_input", b"number_input", "page_link", b"page_link", "plotly_chart", b"plotly_chart", "progress", b"progress", "radio", b"radio", "selectbox", b"selectbox", "skeleton", b"skeleton", "slider", b"slider", "snow", b"snow", "spinner", b"spinner", "table", b"table", "text", b"text", "text_area", b"text_area", "text_input", b"text_input", "time_input", b"time_input", "toast", b"toast", "type", b"type", "vega_lite_chart", b"vega_lite_chart", "video", b"video"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["alert", "arrow_data_frame", "arrow_table", "arrow_vega_lite_chart", "audio", "audio_input", "balloons", "bokeh_chart", "button", "button_group", "download_button", "camera_input", "chat_input", "checkbox", "color_picker", "component_instance", "data_frame", "table", "date_input", "deck_gl_json_chart", "doc_string", "empty", "exception", "favicon", "file_uploader", "graphviz_chart", "html", "iframe", "imgs", "json", "link_button", "markdown", "metric", "multiselect", "number_input", "page_link", "plotly_chart", "progress", "radio", "selectbox", "skeleton", "slider", "snow", "spinner", "text", "text_area", "text_input", "time_input", "toast", "vega_lite_chart", "video", "heading", "code"] | None: ...
global___Element = Element

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Empty.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Empty.proto\"\x07\n\x05\x45mptyB*\n\x1c\x63om.snowflake.apps.streamlitB\nEmptyProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Empty_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nEmptyProto'
_globals['_EMPTY']._serialized_start=31
_globals['_EMPTY']._serialized_end=38
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,36 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Empty(google.protobuf.message.Message):
"""A python empty."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
global___Empty = Empty

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Exception.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/Exception.proto\"p\n\tException\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x1b\n\x13message_is_markdown\x18\x04 \x01(\x08\x12\x13\n\x0bstack_trace\x18\x03 \x03(\t\x12\x12\n\nis_warning\x18\x05 \x01(\x08\x42.\n\x1c\x63om.snowflake.apps.streamlitB\x0e\x45xceptionProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Exception_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\016ExceptionProto'
_globals['_EXCEPTION']._serialized_start=35
_globals['_EXCEPTION']._serialized_end=147
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,72 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Exception(google.protobuf.message.Message):
"""A python exception.
NOTE: This proto type is used by some external services so needs to remain
relatively stable. While it isn't entirely set in stone, changing it
may require a good amount of effort so should be avoided if possible.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TYPE_FIELD_NUMBER: builtins.int
MESSAGE_FIELD_NUMBER: builtins.int
MESSAGE_IS_MARKDOWN_FIELD_NUMBER: builtins.int
STACK_TRACE_FIELD_NUMBER: builtins.int
IS_WARNING_FIELD_NUMBER: builtins.int
type: builtins.str
"""The type of the exception. This can be any string, but is usually a valid
Python exception type, like 'RuntimeError'.
"""
message: builtins.str
"""The exception's message."""
message_is_markdown: builtins.bool
"""If true, the exception message should be rendered as Markdown text."""
is_warning: builtins.bool
"""If true, this is an error that doesn't stop the execution flow. So it gets
rendered differently for clarity.
"""
@property
def stack_trace(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""The stack trace to print."""
def __init__(
self,
*,
type: builtins.str = ...,
message: builtins.str = ...,
message_is_markdown: builtins.bool = ...,
stack_trace: collections.abc.Iterable[builtins.str] | None = ...,
is_warning: builtins.bool = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["is_warning", b"is_warning", "message", b"message", "message_is_markdown", b"message_is_markdown", "stack_trace", b"stack_trace", "type", b"type"]) -> None: ...
global___Exception = Exception

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Favicon.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/Favicon.proto\"\x16\n\x07\x46\x61vicon\x12\x0b\n\x03url\x18\x01 \x01(\tB,\n\x1c\x63om.snowflake.apps.streamlitB\x0c\x46\x61viconProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Favicon_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014FaviconProto'
_globals['_FAVICON']._serialized_start=33
_globals['_FAVICON']._serialized_end=55
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,40 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Favicon(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
URL_FIELD_NUMBER: builtins.int
url: builtins.str
def __init__(
self,
*,
url: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["url", b"url"]) -> None: ...
global___Favicon = Favicon

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/FileUploader.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"streamlit/proto/FileUploader.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xd5\x01\n\x0c\x46ileUploader\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x03(\t\x12\x1a\n\x12max_upload_size_mb\x18\x04 \x01(\x05\x12\x16\n\x0emultiple_files\x18\x06 \x01(\x08\x12\x0c\n\x04help\x18\x07 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x08 \x01(\t\x12\x10\n\x08\x64isabled\x18\t \x01(\x08\x12\x31\n\x10label_visibility\x18\n \x01(\x0b\x32\x17.LabelVisibilityMessageJ\x04\x08\x05\x10\x06\x42\x31\n\x1c\x63om.snowflake.apps.streamlitB\x11\x46ileUploaderProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.FileUploader_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\021FileUploaderProto'
_globals['_FILEUPLOADER']._serialized_start=85
_globals['_FILEUPLOADER']._serialized_end=298
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,78 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import streamlit.proto.LabelVisibilityMessage_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class FileUploader(google.protobuf.message.Message):
"""file_uploader widget"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
MAX_UPLOAD_SIZE_MB_FIELD_NUMBER: builtins.int
MULTIPLE_FILES_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
id: builtins.str
"""The widget id"""
label: builtins.str
"""Text to be displayed before the widget"""
max_upload_size_mb: builtins.int
"""Max file size allowed by server config"""
multiple_files: builtins.bool
"""If true, the widget accepts multiple files for upload."""
help: builtins.str
form_id: builtins.str
disabled: builtins.bool
@property
def type(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""Supported types: For example: ["png","jpg","img"]"""
@property
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
def __init__(
self,
*,
id: builtins.str = ...,
label: builtins.str = ...,
type: collections.abc.Iterable[builtins.str] | None = ...,
max_upload_size_mb: builtins.int = ...,
multiple_files: builtins.bool = ...,
help: builtins.str = ...,
form_id: builtins.str = ...,
disabled: builtins.bool = ...,
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max_upload_size_mb", b"max_upload_size_mb", "multiple_files", b"multiple_files", "type", b"type"]) -> None: ...
global___FileUploader = FileUploader

View File

@@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/ForwardMsg.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import AutoRerun_pb2 as streamlit_dot_proto_dot_AutoRerun__pb2
from streamlit.proto import Common_pb2 as streamlit_dot_proto_dot_Common__pb2
from streamlit.proto import Delta_pb2 as streamlit_dot_proto_dot_Delta__pb2
from streamlit.proto import GitInfo_pb2 as streamlit_dot_proto_dot_GitInfo__pb2
from streamlit.proto import Logo_pb2 as streamlit_dot_proto_dot_Logo__pb2
from streamlit.proto import Navigation_pb2 as streamlit_dot_proto_dot_Navigation__pb2
from streamlit.proto import NewSession_pb2 as streamlit_dot_proto_dot_NewSession__pb2
from streamlit.proto import PageConfig_pb2 as streamlit_dot_proto_dot_PageConfig__pb2
from streamlit.proto import PageInfo_pb2 as streamlit_dot_proto_dot_PageInfo__pb2
from streamlit.proto import PageProfile_pb2 as streamlit_dot_proto_dot_PageProfile__pb2
from streamlit.proto import PageNotFound_pb2 as streamlit_dot_proto_dot_PageNotFound__pb2
from streamlit.proto import PagesChanged_pb2 as streamlit_dot_proto_dot_PagesChanged__pb2
from streamlit.proto import ParentMessage_pb2 as streamlit_dot_proto_dot_ParentMessage__pb2
from streamlit.proto import SessionEvent_pb2 as streamlit_dot_proto_dot_SessionEvent__pb2
from streamlit.proto import SessionStatus_pb2 as streamlit_dot_proto_dot_SessionStatus__pb2
from streamlit.proto import AuthRedirect_pb2 as streamlit_dot_proto_dot_AuthRedirect__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/ForwardMsg.proto\x1a\x1fstreamlit/proto/AutoRerun.proto\x1a\x1cstreamlit/proto/Common.proto\x1a\x1bstreamlit/proto/Delta.proto\x1a\x1dstreamlit/proto/GitInfo.proto\x1a\x1astreamlit/proto/Logo.proto\x1a streamlit/proto/Navigation.proto\x1a streamlit/proto/NewSession.proto\x1a streamlit/proto/PageConfig.proto\x1a\x1estreamlit/proto/PageInfo.proto\x1a!streamlit/proto/PageProfile.proto\x1a\"streamlit/proto/PageNotFound.proto\x1a\"streamlit/proto/PagesChanged.proto\x1a#streamlit/proto/ParentMessage.proto\x1a\"streamlit/proto/SessionEvent.proto\x1a#streamlit/proto/SessionStatus.proto\x1a\"streamlit/proto/AuthRedirect.proto\"\xcb\x07\n\nForwardMsg\x12\x0c\n\x04hash\x18\x01 \x01(\t\x12%\n\x08metadata\x18\x02 \x01(\x0b\x32\x13.ForwardMsgMetadata\x12\"\n\x0bnew_session\x18\x04 \x01(\x0b\x32\x0b.NewSessionH\x00\x12\x17\n\x05\x64\x65lta\x18\x05 \x01(\x0b\x32\x06.DeltaH\x00\x12&\n\x11page_info_changed\x18\x0c \x01(\x0b\x32\t.PageInfoH\x00\x12*\n\x13page_config_changed\x18\r \x01(\x0b\x32\x0b.PageConfigH\x00\x12;\n\x0fscript_finished\x18\x06 \x01(\x0e\x32 .ForwardMsg.ScriptFinishedStatusH\x00\x12$\n\x10git_info_changed\x18\x0e \x01(\x0b\x32\x08.GitInfoH\x00\x12$\n\x0cpage_profile\x18\x12 \x01(\x0b\x32\x0c.PageProfileH\x00\x12\x30\n\x16session_status_changed\x18\t \x01(\x0b\x32\x0e.SessionStatusH\x00\x12&\n\rsession_event\x18\n \x01(\x0b\x32\r.SessionEventH\x00\x12!\n\nnavigation\x18\x17 \x01(\x0b\x32\x0b.NavigationH\x00\x12\'\n\x0epage_not_found\x18\x0f \x01(\x0b\x32\r.PageNotFoundH\x00\x12*\n\rpages_changed\x18\x10 \x01(\x0b\x32\r.PagesChangedB\x02\x18\x01H\x00\x12/\n\x12\x66ile_urls_response\x18\x13 \x01(\x0b\x32\x11.FileURLsResponseH\x00\x12 \n\nauto_rerun\x18\x15 \x01(\x0b\x32\n.AutoRerunH\x00\x12\x15\n\x04logo\x18\x16 \x01(\x0b\x32\x05.LogoH\x00\x12&\n\rauth_redirect\x18\x18 \x01(\x0b\x32\r.AuthRedirectH\x00\x12(\n\x0eparent_message\x18\x14 \x01(\x0b\x32\x0e.ParentMessageH\x00\x12\x12\n\x08ref_hash\x18\x0b \x01(\tH\x00\x12\x1d\n\x15\x64\x65\x62ug_last_backmsg_id\x18\x11 \x01(\t\"\x98\x01\n\x14ScriptFinishedStatus\x12\x19\n\x15\x46INISHED_SUCCESSFULLY\x10\x00\x12\x1f\n\x1b\x46INISHED_WITH_COMPILE_ERROR\x10\x01\x12\x1c\n\x18\x46INISHED_EARLY_FOR_RERUN\x10\x02\x12&\n\"FINISHED_FRAGMENT_RUN_SUCCESSFULLY\x10\x03\x42\x06\n\x04typeJ\x04\x08\x07\x10\x08J\x04\x08\x08\x10\t\"\x8e\x01\n\x12\x46orwardMsgMetadata\x12\x11\n\tcacheable\x18\x01 \x01(\x08\x12\x12\n\ndelta_path\x18\x02 \x03(\r\x12\x35\n\x16\x65lement_dimension_spec\x18\x03 \x01(\x0b\x32\x15.ElementDimensionSpec\x12\x1a\n\x12\x61\x63tive_script_hash\x18\x04 \x01(\t\"5\n\x14\x45lementDimensionSpec\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\"/\n\x0e\x46orwardMsgList\x12\x1d\n\x08messages\x18\x01 \x03(\x0b\x32\x0b.ForwardMsgB/\n\x1c\x63om.snowflake.apps.streamlitB\x0f\x46orwardMsgProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.ForwardMsg_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\017ForwardMsgProto'
_globals['_FORWARDMSG'].fields_by_name['pages_changed']._loaded_options = None
_globals['_FORWARDMSG'].fields_by_name['pages_changed']._serialized_options = b'\030\001'
_globals['_FORWARDMSG']._serialized_start=575
_globals['_FORWARDMSG']._serialized_end=1546
_globals['_FORWARDMSG_SCRIPTFINISHEDSTATUS']._serialized_start=1374
_globals['_FORWARDMSG_SCRIPTFINISHEDSTATUS']._serialized_end=1526
_globals['_FORWARDMSGMETADATA']._serialized_start=1549
_globals['_FORWARDMSGMETADATA']._serialized_end=1691
_globals['_ELEMENTDIMENSIONSPEC']._serialized_start=1693
_globals['_ELEMENTDIMENSIONSPEC']._serialized_end=1746
_globals['_FORWARDMSGLIST']._serialized_start=1748
_globals['_FORWARDMSGLIST']._serialized_end=1795
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,293 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import streamlit.proto.AuthRedirect_pb2
import streamlit.proto.AutoRerun_pb2
import streamlit.proto.Common_pb2
import streamlit.proto.Delta_pb2
import streamlit.proto.GitInfo_pb2
import streamlit.proto.Logo_pb2
import streamlit.proto.Navigation_pb2
import streamlit.proto.NewSession_pb2
import streamlit.proto.PageConfig_pb2
import streamlit.proto.PageInfo_pb2
import streamlit.proto.PageNotFound_pb2
import streamlit.proto.PageProfile_pb2
import streamlit.proto.PagesChanged_pb2
import streamlit.proto.ParentMessage_pb2
import streamlit.proto.SessionEvent_pb2
import streamlit.proto.SessionStatus_pb2
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class ForwardMsg(google.protobuf.message.Message):
"""A message sent from Proxy to the browser"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _ScriptFinishedStatus:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _ScriptFinishedStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ForwardMsg._ScriptFinishedStatus.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
FINISHED_SUCCESSFULLY: ForwardMsg._ScriptFinishedStatus.ValueType # 0
"""The script compiled and ran."""
FINISHED_WITH_COMPILE_ERROR: ForwardMsg._ScriptFinishedStatus.ValueType # 1
"""The script failed to compile"""
FINISHED_EARLY_FOR_RERUN: ForwardMsg._ScriptFinishedStatus.ValueType # 2
"""Script was interrupted by rerun"""
FINISHED_FRAGMENT_RUN_SUCCESSFULLY: ForwardMsg._ScriptFinishedStatus.ValueType # 3
"""A fragment of the script ran successfully."""
class ScriptFinishedStatus(_ScriptFinishedStatus, metaclass=_ScriptFinishedStatusEnumTypeWrapper):
"""Values for the 'script_finished` type"""
FINISHED_SUCCESSFULLY: ForwardMsg.ScriptFinishedStatus.ValueType # 0
"""The script compiled and ran."""
FINISHED_WITH_COMPILE_ERROR: ForwardMsg.ScriptFinishedStatus.ValueType # 1
"""The script failed to compile"""
FINISHED_EARLY_FOR_RERUN: ForwardMsg.ScriptFinishedStatus.ValueType # 2
"""Script was interrupted by rerun"""
FINISHED_FRAGMENT_RUN_SUCCESSFULLY: ForwardMsg.ScriptFinishedStatus.ValueType # 3
"""A fragment of the script ran successfully."""
HASH_FIELD_NUMBER: builtins.int
METADATA_FIELD_NUMBER: builtins.int
NEW_SESSION_FIELD_NUMBER: builtins.int
DELTA_FIELD_NUMBER: builtins.int
PAGE_INFO_CHANGED_FIELD_NUMBER: builtins.int
PAGE_CONFIG_CHANGED_FIELD_NUMBER: builtins.int
SCRIPT_FINISHED_FIELD_NUMBER: builtins.int
GIT_INFO_CHANGED_FIELD_NUMBER: builtins.int
PAGE_PROFILE_FIELD_NUMBER: builtins.int
SESSION_STATUS_CHANGED_FIELD_NUMBER: builtins.int
SESSION_EVENT_FIELD_NUMBER: builtins.int
NAVIGATION_FIELD_NUMBER: builtins.int
PAGE_NOT_FOUND_FIELD_NUMBER: builtins.int
PAGES_CHANGED_FIELD_NUMBER: builtins.int
FILE_URLS_RESPONSE_FIELD_NUMBER: builtins.int
AUTO_RERUN_FIELD_NUMBER: builtins.int
LOGO_FIELD_NUMBER: builtins.int
AUTH_REDIRECT_FIELD_NUMBER: builtins.int
PARENT_MESSAGE_FIELD_NUMBER: builtins.int
REF_HASH_FIELD_NUMBER: builtins.int
DEBUG_LAST_BACKMSG_ID_FIELD_NUMBER: builtins.int
hash: builtins.str
"""A hash that uniquely identifies this ForwardMsg, for caching."""
script_finished: global___ForwardMsg.ScriptFinishedStatus.ValueType
ref_hash: builtins.str
"""A reference to a ForwardMsg that has already been delivered.
The client should substitute the message with the given hash
for this one. If the client does not have the referenced message
in its cache, it can retrieve it from the server.
"""
debug_last_backmsg_id: builtins.str
"""The ID of the last BackMsg that we received before sending this
ForwardMsg. As its name suggests, this field should only be used for
testing.
"""
@property
def metadata(self) -> global___ForwardMsgMetadata:
"""Contains 'non-payload' ForwardMsg data that isn't cached for the purposes
of ForwardMsg de-duping.
"""
@property
def new_session(self) -> streamlit.proto.NewSession_pb2.NewSession:
"""App lifecycle messages."""
@property
def delta(self) -> streamlit.proto.Delta_pb2.Delta: ...
@property
def page_info_changed(self) -> streamlit.proto.PageInfo_pb2.PageInfo: ...
@property
def page_config_changed(self) -> streamlit.proto.PageConfig_pb2.PageConfig: ...
@property
def git_info_changed(self) -> streamlit.proto.GitInfo_pb2.GitInfo: ...
@property
def page_profile(self) -> streamlit.proto.PageProfile_pb2.PageProfile: ...
@property
def session_status_changed(self) -> streamlit.proto.SessionStatus_pb2.SessionStatus:
"""Status change and event messages."""
@property
def session_event(self) -> streamlit.proto.SessionEvent_pb2.SessionEvent: ...
@property
def navigation(self) -> streamlit.proto.Navigation_pb2.Navigation:
"""Other messages."""
@property
def page_not_found(self) -> streamlit.proto.PageNotFound_pb2.PageNotFound: ...
@property
def pages_changed(self) -> streamlit.proto.PagesChanged_pb2.PagesChanged: ...
@property
def file_urls_response(self) -> streamlit.proto.Common_pb2.FileURLsResponse: ...
@property
def auto_rerun(self) -> streamlit.proto.AutoRerun_pb2.AutoRerun: ...
@property
def logo(self) -> streamlit.proto.Logo_pb2.Logo:
"""App logo message"""
@property
def auth_redirect(self) -> streamlit.proto.AuthRedirect_pb2.AuthRedirect:
"""Auth redirect message"""
@property
def parent_message(self) -> streamlit.proto.ParentMessage_pb2.ParentMessage:
"""Platform - message to host"""
def __init__(
self,
*,
hash: builtins.str = ...,
metadata: global___ForwardMsgMetadata | None = ...,
new_session: streamlit.proto.NewSession_pb2.NewSession | None = ...,
delta: streamlit.proto.Delta_pb2.Delta | None = ...,
page_info_changed: streamlit.proto.PageInfo_pb2.PageInfo | None = ...,
page_config_changed: streamlit.proto.PageConfig_pb2.PageConfig | None = ...,
script_finished: global___ForwardMsg.ScriptFinishedStatus.ValueType = ...,
git_info_changed: streamlit.proto.GitInfo_pb2.GitInfo | None = ...,
page_profile: streamlit.proto.PageProfile_pb2.PageProfile | None = ...,
session_status_changed: streamlit.proto.SessionStatus_pb2.SessionStatus | None = ...,
session_event: streamlit.proto.SessionEvent_pb2.SessionEvent | None = ...,
navigation: streamlit.proto.Navigation_pb2.Navigation | None = ...,
page_not_found: streamlit.proto.PageNotFound_pb2.PageNotFound | None = ...,
pages_changed: streamlit.proto.PagesChanged_pb2.PagesChanged | None = ...,
file_urls_response: streamlit.proto.Common_pb2.FileURLsResponse | None = ...,
auto_rerun: streamlit.proto.AutoRerun_pb2.AutoRerun | None = ...,
logo: streamlit.proto.Logo_pb2.Logo | None = ...,
auth_redirect: streamlit.proto.AuthRedirect_pb2.AuthRedirect | None = ...,
parent_message: streamlit.proto.ParentMessage_pb2.ParentMessage | None = ...,
ref_hash: builtins.str = ...,
debug_last_backmsg_id: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["auth_redirect", b"auth_redirect", "auto_rerun", b"auto_rerun", "delta", b"delta", "file_urls_response", b"file_urls_response", "git_info_changed", b"git_info_changed", "logo", b"logo", "metadata", b"metadata", "navigation", b"navigation", "new_session", b"new_session", "page_config_changed", b"page_config_changed", "page_info_changed", b"page_info_changed", "page_not_found", b"page_not_found", "page_profile", b"page_profile", "pages_changed", b"pages_changed", "parent_message", b"parent_message", "ref_hash", b"ref_hash", "script_finished", b"script_finished", "session_event", b"session_event", "session_status_changed", b"session_status_changed", "type", b"type"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["auth_redirect", b"auth_redirect", "auto_rerun", b"auto_rerun", "debug_last_backmsg_id", b"debug_last_backmsg_id", "delta", b"delta", "file_urls_response", b"file_urls_response", "git_info_changed", b"git_info_changed", "hash", b"hash", "logo", b"logo", "metadata", b"metadata", "navigation", b"navigation", "new_session", b"new_session", "page_config_changed", b"page_config_changed", "page_info_changed", b"page_info_changed", "page_not_found", b"page_not_found", "page_profile", b"page_profile", "pages_changed", b"pages_changed", "parent_message", b"parent_message", "ref_hash", b"ref_hash", "script_finished", b"script_finished", "session_event", b"session_event", "session_status_changed", b"session_status_changed", "type", b"type"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["new_session", "delta", "page_info_changed", "page_config_changed", "script_finished", "git_info_changed", "page_profile", "session_status_changed", "session_event", "navigation", "page_not_found", "pages_changed", "file_urls_response", "auto_rerun", "logo", "auth_redirect", "parent_message", "ref_hash"] | None: ...
global___ForwardMsg = ForwardMsg
@typing.final
class ForwardMsgMetadata(google.protobuf.message.Message):
"""ForwardMsgMetadata contains all data that does _not_ get hashed (or cached)
in our ForwardMsgCache. (That is, when we cache a ForwardMsg, we clear its
metadata field first.) This allows us to, e.g., have a large unchanging
dataframe appear in different places across multiple reruns - or even appear
multiple times in a single run - and only send its dataframe bytes once.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CACHEABLE_FIELD_NUMBER: builtins.int
DELTA_PATH_FIELD_NUMBER: builtins.int
ELEMENT_DIMENSION_SPEC_FIELD_NUMBER: builtins.int
ACTIVE_SCRIPT_HASH_FIELD_NUMBER: builtins.int
cacheable: builtins.bool
"""If this is set, the server will have cached this message,
and a client that receives it should do the same.
"""
active_script_hash: builtins.str
"""active_script_hash the forward message is associated from.
For multipage apps v1, this will always be the page file running
For multipage apps v2, this can be the main script or the page script
"""
@property
def delta_path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
"""The path that identifies a delta's location in the report tree.
Only set for Delta messages.
"""
@property
def element_dimension_spec(self) -> global___ElementDimensionSpec:
"""DEPRECATED: This is not used anymore."""
def __init__(
self,
*,
cacheable: builtins.bool = ...,
delta_path: collections.abc.Iterable[builtins.int] | None = ...,
element_dimension_spec: global___ElementDimensionSpec | None = ...,
active_script_hash: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["element_dimension_spec", b"element_dimension_spec"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["active_script_hash", b"active_script_hash", "cacheable", b"cacheable", "delta_path", b"delta_path", "element_dimension_spec", b"element_dimension_spec"]) -> None: ...
global___ForwardMsgMetadata = ForwardMsgMetadata
@typing.final
class ElementDimensionSpec(google.protobuf.message.Message):
"""DEPRECATED: This is not used anymore.
Specifies the dimensions for the element
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
WIDTH_FIELD_NUMBER: builtins.int
HEIGHT_FIELD_NUMBER: builtins.int
width: builtins.int
"""width in pixels"""
height: builtins.int
"""height in pixels"""
def __init__(
self,
*,
width: builtins.int = ...,
height: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> None: ...
global___ElementDimensionSpec = ElementDimensionSpec
@typing.final
class ForwardMsgList(google.protobuf.message.Message):
"""This is a list of ForwardMessages used to have a single protobuf message
that encapsulates multiple ForwardMessages. This is used in static streamlit app
generation in replaying all of the protobuf messages of a streamlit app. The
ForwardMsgList allows us to leverage the built-ins of protobuf in delimiting the ForwardMsgs
instead of needing to do that ourselves.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
MESSAGES_FIELD_NUMBER: builtins.int
@property
def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ForwardMsg]: ...
def __init__(
self,
*,
messages: collections.abc.Iterable[global___ForwardMsg] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["messages", b"messages"]) -> None: ...
global___ForwardMsgList = ForwardMsgList

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/GitInfo.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/GitInfo.proto\"\xd6\x01\n\x07GitInfo\x12\x12\n\nrepository\x18\x01 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x02 \x01(\t\x12\x0e\n\x06module\x18\x03 \x01(\t\x12\x17\n\x0funtracked_files\x18\x04 \x03(\t\x12\x19\n\x11uncommitted_files\x18\x05 \x03(\t\x12!\n\x05state\x18\x06 \x01(\x0e\x32\x12.GitInfo.GitStates\"@\n\tGitStates\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x11\n\rHEAD_DETACHED\x10\x01\x12\x13\n\x0f\x41HEAD_OF_REMOTE\x10\x02\x42,\n\x1c\x63om.snowflake.apps.streamlitB\x0cGitInfoProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.GitInfo_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014GitInfoProto'
_globals['_GITINFO']._serialized_start=34
_globals['_GITINFO']._serialized_end=248
_globals['_GITINFO_GITSTATES']._serialized_start=184
_globals['_GITINFO_GITSTATES']._serialized_end=248
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,83 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class GitInfo(google.protobuf.message.Message):
"""Message used to update page metadata."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _GitStates:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _GitStatesEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[GitInfo._GitStates.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
DEFAULT: GitInfo._GitStates.ValueType # 0
HEAD_DETACHED: GitInfo._GitStates.ValueType # 1
AHEAD_OF_REMOTE: GitInfo._GitStates.ValueType # 2
class GitStates(_GitStates, metaclass=_GitStatesEnumTypeWrapper): ...
DEFAULT: GitInfo.GitStates.ValueType # 0
HEAD_DETACHED: GitInfo.GitStates.ValueType # 1
AHEAD_OF_REMOTE: GitInfo.GitStates.ValueType # 2
REPOSITORY_FIELD_NUMBER: builtins.int
BRANCH_FIELD_NUMBER: builtins.int
MODULE_FIELD_NUMBER: builtins.int
UNTRACKED_FILES_FIELD_NUMBER: builtins.int
UNCOMMITTED_FILES_FIELD_NUMBER: builtins.int
STATE_FIELD_NUMBER: builtins.int
repository: builtins.str
branch: builtins.str
module: builtins.str
state: global___GitInfo.GitStates.ValueType
@property
def untracked_files(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
@property
def uncommitted_files(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
def __init__(
self,
*,
repository: builtins.str = ...,
branch: builtins.str = ...,
module: builtins.str = ...,
untracked_files: collections.abc.Iterable[builtins.str] | None = ...,
uncommitted_files: collections.abc.Iterable[builtins.str] | None = ...,
state: global___GitInfo.GitStates.ValueType = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["branch", b"branch", "module", b"module", "repository", b"repository", "state", b"state", "uncommitted_files", b"uncommitted_files", "untracked_files", b"untracked_files"]) -> None: ...
global___GitInfo = GitInfo

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/GraphVizChart.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#streamlit/proto/GraphVizChart.proto\"j\n\rGraphVizChart\x12\x0c\n\x04spec\x18\x01 \x01(\t\x12\x1b\n\x13use_container_width\x18\x04 \x01(\x08\x12\x12\n\nelement_id\x18\x05 \x01(\t\x12\x0e\n\x06\x65ngine\x18\x06 \x01(\tJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04\x42\x32\n\x1c\x63om.snowflake.apps.streamlitB\x12GraphVizChartProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.GraphVizChart_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\022GraphVizChartProto'
_globals['_GRAPHVIZCHART']._serialized_start=39
_globals['_GRAPHVIZCHART']._serialized_end=145
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,53 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class GraphVizChart(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
SPEC_FIELD_NUMBER: builtins.int
USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
ELEMENT_ID_FIELD_NUMBER: builtins.int
ENGINE_FIELD_NUMBER: builtins.int
spec: builtins.str
"""A specification of the GraphViz graph in the "Dot" language."""
use_container_width: builtins.bool
"""If True, will overwrite the chart width spec to fit to container."""
element_id: builtins.str
"""A unique ID of this element."""
engine: builtins.str
"""The engine used to layout and render the graph."""
def __init__(
self,
*,
spec: builtins.str = ...,
use_container_width: builtins.bool = ...,
element_id: builtins.str = ...,
engine: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["element_id", b"element_id", "engine", b"engine", "spec", b"spec", "use_container_width", b"use_container_width"]) -> None: ...
global___GraphVizChart = GraphVizChart

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Heading.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/Heading.proto\"h\n\x07Heading\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0e\n\x06\x61nchor\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\t\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x13\n\x0bhide_anchor\x18\x05 \x01(\x08\x12\x0f\n\x07\x64ivider\x18\x06 \x01(\tB,\n\x1c\x63om.snowflake.apps.streamlitB\x0cHeadingProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Heading_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014HeadingProto'
_globals['_HEADING']._serialized_start=33
_globals['_HEADING']._serialized_end=137
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,56 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Heading(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TAG_FIELD_NUMBER: builtins.int
ANCHOR_FIELD_NUMBER: builtins.int
BODY_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
HIDE_ANCHOR_FIELD_NUMBER: builtins.int
DIVIDER_FIELD_NUMBER: builtins.int
tag: builtins.str
"""h1, h2, h3, div, etc"""
anchor: builtins.str
body: builtins.str
help: builtins.str
hide_anchor: builtins.bool
divider: builtins.str
def __init__(
self,
*,
tag: builtins.str = ...,
anchor: builtins.str = ...,
body: builtins.str = ...,
help: builtins.str = ...,
hide_anchor: builtins.bool = ...,
divider: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["anchor", b"anchor", "body", b"body", "divider", b"divider", "help", b"help", "hide_anchor", b"hide_anchor", "tag", b"tag"]) -> None: ...
global___Heading = Heading

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Html.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1astreamlit/proto/Html.proto\"\x14\n\x04Html\x12\x0c\n\x04\x62ody\x18\x01 \x01(\tB)\n\x1c\x63om.snowflake.apps.streamlitB\tHtmlProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Html_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\tHtmlProto'
_globals['_HTML']._serialized_start=30
_globals['_HTML']._serialized_end=50
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,42 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Html(google.protobuf.message.Message):
"""st.html"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
BODY_FIELD_NUMBER: builtins.int
body: builtins.str
def __init__(
self,
*,
body: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["body", b"body"]) -> None: ...
global___Html = Html

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/IFrame.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cstreamlit/proto/IFrame.proto\"v\n\x06IFrame\x12\r\n\x03src\x18\x01 \x01(\tH\x00\x12\x10\n\x06srcdoc\x18\x02 \x01(\tH\x00\x12\r\n\x05width\x18\x03 \x01(\x02\x12\x11\n\thas_width\x18\x04 \x01(\x08\x12\x0e\n\x06height\x18\x05 \x01(\x02\x12\x11\n\tscrolling\x18\x07 \x01(\x08\x42\x06\n\x04typeB+\n\x1c\x63om.snowflake.apps.streamlitB\x0bIFrameProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.IFrame_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\013IFrameProto'
_globals['_IFRAME']._serialized_start=32
_globals['_IFRAME']._serialized_end=150
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,59 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class IFrame(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
SRC_FIELD_NUMBER: builtins.int
SRCDOC_FIELD_NUMBER: builtins.int
WIDTH_FIELD_NUMBER: builtins.int
HAS_WIDTH_FIELD_NUMBER: builtins.int
HEIGHT_FIELD_NUMBER: builtins.int
SCROLLING_FIELD_NUMBER: builtins.int
src: builtins.str
"""A URL to load"""
srcdoc: builtins.str
"""Inline HTML"""
width: builtins.float
has_width: builtins.bool
height: builtins.float
scrolling: builtins.bool
def __init__(
self,
*,
src: builtins.str = ...,
srcdoc: builtins.str = ...,
width: builtins.float = ...,
has_width: builtins.bool = ...,
height: builtins.float = ...,
scrolling: builtins.bool = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["src", b"src", "srcdoc", b"srcdoc", "type", b"type"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["has_width", b"has_width", "height", b"height", "scrolling", b"scrolling", "src", b"src", "srcdoc", b"srcdoc", "type", b"type", "width", b"width"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["src", "srcdoc"] | None: ...
global___IFrame = IFrame

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Image.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Image.proto\"A\n\x05Image\x12\x0b\n\x03url\x18\x03 \x01(\t\x12\x0f\n\x07\x63\x61ption\x18\x02 \x01(\t\x12\x0e\n\x06markup\x18\x04 \x01(\tJ\x04\x08\x01\x10\x02R\x04\x64\x61ta\"0\n\tImageList\x12\x14\n\x04imgs\x18\x01 \x03(\x0b\x32\x06.Image\x12\r\n\x05width\x18\x02 \x01(\x05\x42*\n\x1c\x63om.snowflake.apps.streamlitB\nImageProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Image_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\nImageProto'
_globals['_IMAGE']._serialized_start=31
_globals['_IMAGE']._serialized_end=96
_globals['_IMAGELIST']._serialized_start=98
_globals['_IMAGELIST']._serialized_end=146
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,84 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Image(google.protobuf.message.Message):
"""An image which can be displayed on the screen."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
URL_FIELD_NUMBER: builtins.int
CAPTION_FIELD_NUMBER: builtins.int
MARKUP_FIELD_NUMBER: builtins.int
url: builtins.str
caption: builtins.str
markup: builtins.str
"""DEPRECATED: markup is not used anymore.
SVGs are added as data uris in the url field.
"""
def __init__(
self,
*,
url: builtins.str = ...,
caption: builtins.str = ...,
markup: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["caption", b"caption", "markup", b"markup", "url", b"url"]) -> None: ...
global___Image = Image
@typing.final
class ImageList(google.protobuf.message.Message):
"""A set of images."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
IMGS_FIELD_NUMBER: builtins.int
WIDTH_FIELD_NUMBER: builtins.int
width: builtins.int
"""@see WidthBehavior on the backend
@see WidthBehavior on the frontend
The width of each image.
>0 sets the image width explicitly
-1 means use the image width
-2 means use the column width (deprecated)
-3 means use the smaller of image width & column width (deprecated)
-4 means use the smaller of image width & container width
-5 means use the larger of image width & container width
"""
@property
def imgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Image]: ...
def __init__(
self,
*,
imgs: collections.abc.Iterable[global___Image] | None = ...,
width: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["imgs", b"imgs", "width", b"width"]) -> None: ...
global___ImageList = ImageList

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Json.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1astreamlit/proto/Json.proto\"Z\n\x04Json\x12\x0c\n\x04\x62ody\x18\x01 \x01(\t\x12\x10\n\x08\x65xpanded\x18\x02 \x01(\x08\x12\x1d\n\x10max_expand_depth\x18\x03 \x01(\x05H\x00\x88\x01\x01\x42\x13\n\x11_max_expand_depthB)\n\x1c\x63om.snowflake.apps.streamlitB\tJsonProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Json_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\tJsonProto'
_globals['_JSON']._serialized_start=30
_globals['_JSON']._serialized_end=120
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,53 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Json(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
BODY_FIELD_NUMBER: builtins.int
EXPANDED_FIELD_NUMBER: builtins.int
MAX_EXPAND_DEPTH_FIELD_NUMBER: builtins.int
body: builtins.str
"""Content to display."""
expanded: builtins.bool
"""Controls the initial expansion state of the json element.
Is superseded by max_expand_depth if provided.
"""
max_expand_depth: builtins.int
"""The maximum depth to expand the JSON object."""
def __init__(
self,
*,
body: builtins.str = ...,
expanded: builtins.bool = ...,
max_expand_depth: builtins.int | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_max_expand_depth", b"_max_expand_depth", "max_expand_depth", b"max_expand_depth"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["_max_expand_depth", b"_max_expand_depth", "body", b"body", "expanded", b"expanded", "max_expand_depth", b"max_expand_depth"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["_max_expand_depth", b"_max_expand_depth"]) -> typing.Literal["max_expand_depth"] | None: ...
global___Json = Json

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/LabelVisibilityMessage.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,streamlit/proto/LabelVisibilityMessage.proto\"\x99\x01\n\x16LabelVisibilityMessage\x12=\n\x05value\x18\x01 \x01(\x0e\x32..LabelVisibilityMessage.LabelVisibilityOptions\"@\n\x16LabelVisibilityOptions\x12\x0b\n\x07VISIBLE\x10\x00\x12\n\n\x06HIDDEN\x10\x01\x12\r\n\tCOLLAPSED\x10\x02\x42;\n\x1c\x63om.snowflake.apps.streamlitB\x1bLabelVisibilityMessageProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.LabelVisibilityMessage_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\033LabelVisibilityMessageProto'
_globals['_LABELVISIBILITYMESSAGE']._serialized_start=49
_globals['_LABELVISIBILITYMESSAGE']._serialized_end=202
_globals['_LABELVISIBILITYMESSAGE_LABELVISIBILITYOPTIONS']._serialized_start=138
_globals['_LABELVISIBILITYMESSAGE_LABELVISIBILITYOPTIONS']._serialized_end=202
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,68 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class LabelVisibilityMessage(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _LabelVisibilityOptions:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _LabelVisibilityOptionsEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[LabelVisibilityMessage._LabelVisibilityOptions.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
VISIBLE: LabelVisibilityMessage._LabelVisibilityOptions.ValueType # 0
HIDDEN: LabelVisibilityMessage._LabelVisibilityOptions.ValueType # 1
COLLAPSED: LabelVisibilityMessage._LabelVisibilityOptions.ValueType # 2
class LabelVisibilityOptions(_LabelVisibilityOptions, metaclass=_LabelVisibilityOptionsEnumTypeWrapper):
"""We use separate LabelVisibilityMessage instead of just defining Enum and
use it in other widgets proto files due to protobuf js error, when just
enum defined and imported
https://github.com/protobufjs/protobuf.js/issues/1414
"""
VISIBLE: LabelVisibilityMessage.LabelVisibilityOptions.ValueType # 0
HIDDEN: LabelVisibilityMessage.LabelVisibilityOptions.ValueType # 1
COLLAPSED: LabelVisibilityMessage.LabelVisibilityOptions.ValueType # 2
VALUE_FIELD_NUMBER: builtins.int
value: global___LabelVisibilityMessage.LabelVisibilityOptions.ValueType
def __init__(
self,
*,
value: global___LabelVisibilityMessage.LabelVisibilityOptions.ValueType = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
global___LabelVisibilityMessage = LabelVisibilityMessage

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/LinkButton.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/LinkButton.proto\"\x81\x01\n\nLinkButton\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0b\n\x03url\x18\x06 \x01(\t\x12\x10\n\x08\x64isabled\x18\x07 \x01(\x08\x12\x1b\n\x13use_container_width\x18\x08 \x01(\x08\x12\x0c\n\x04type\x18\t \x01(\t\x12\x0c\n\x04icon\x18\n \x01(\tB/\n\x1c\x63om.snowflake.apps.streamlitB\x0fLinkButtonProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.LinkButton_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\017LinkButtonProto'
_globals['_LINKBUTTON']._serialized_start=37
_globals['_LINKBUTTON']._serialized_end=166
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,58 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class LinkButton(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
LABEL_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
URL_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
ICON_FIELD_NUMBER: builtins.int
label: builtins.str
help: builtins.str
url: builtins.str
disabled: builtins.bool
use_container_width: builtins.bool
type: builtins.str
icon: builtins.str
def __init__(
self,
*,
label: builtins.str = ...,
help: builtins.str = ...,
url: builtins.str = ...,
disabled: builtins.bool = ...,
use_container_width: builtins.bool = ...,
type: builtins.str = ...,
icon: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["disabled", b"disabled", "help", b"help", "icon", b"icon", "label", b"label", "type", b"type", "url", b"url", "use_container_width", b"use_container_width"]) -> None: ...
global___LinkButton = LinkButton

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Logo.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1astreamlit/proto/Logo.proto\"E\n\x04Logo\x12\r\n\x05image\x18\x01 \x01(\t\x12\x0c\n\x04link\x18\x02 \x01(\t\x12\x12\n\nicon_image\x18\x03 \x01(\t\x12\x0c\n\x04size\x18\x04 \x01(\tB)\n\x1c\x63om.snowflake.apps.streamlitB\tLogoProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Logo_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\tLogoProto'
_globals['_LOGO']._serialized_start=30
_globals['_LOGO']._serialized_end=99
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,51 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Logo(google.protobuf.message.Message):
"""Handle the logo for an app"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
IMAGE_FIELD_NUMBER: builtins.int
LINK_FIELD_NUMBER: builtins.int
ICON_IMAGE_FIELD_NUMBER: builtins.int
SIZE_FIELD_NUMBER: builtins.int
image: builtins.str
link: builtins.str
icon_image: builtins.str
size: builtins.str
def __init__(
self,
*,
image: builtins.str = ...,
link: builtins.str = ...,
icon_image: builtins.str = ...,
size: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["icon_image", b"icon_image", "image", b"image", "link", b"link", "size", b"size"]) -> None: ...
global___Logo = Logo

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Markdown.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1estreamlit/proto/Markdown.proto\"\xc8\x01\n\x08Markdown\x12\x0c\n\x04\x62ody\x18\x01 \x01(\t\x12\x12\n\nallow_html\x18\x02 \x01(\x08\x12\x12\n\nis_caption\x18\x03 \x01(\x08\x12$\n\x0c\x65lement_type\x18\x04 \x01(\x0e\x32\x0e.Markdown.Type\x12\x0c\n\x04help\x18\x05 \x01(\t\"R\n\x04Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\n\n\x06NATIVE\x10\x01\x12\x0b\n\x07\x43\x41PTION\x10\x02\x12\x08\n\x04\x43ODE\x10\x03\x12\t\n\x05LATEX\x10\x04\x12\x0b\n\x07\x44IVIDER\x10\x05\x42-\n\x1c\x63om.snowflake.apps.streamlitB\rMarkdownProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Markdown_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\rMarkdownProto'
_globals['_MARKDOWN']._serialized_start=35
_globals['_MARKDOWN']._serialized_end=235
_globals['_MARKDOWN_TYPE']._serialized_start=153
_globals['_MARKDOWN_TYPE']._serialized_end=235
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,86 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Markdown(google.protobuf.message.Message):
"""Formatted text"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _Type:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Markdown._Type.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
UNSPECIFIED: Markdown._Type.ValueType # 0
"""This is recommended to be reserved for proto files backwards compatibility reasons."""
NATIVE: Markdown._Type.ValueType # 1
CAPTION: Markdown._Type.ValueType # 2
CODE: Markdown._Type.ValueType # 3
LATEX: Markdown._Type.ValueType # 4
DIVIDER: Markdown._Type.ValueType # 5
class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
UNSPECIFIED: Markdown.Type.ValueType # 0
"""This is recommended to be reserved for proto files backwards compatibility reasons."""
NATIVE: Markdown.Type.ValueType # 1
CAPTION: Markdown.Type.ValueType # 2
CODE: Markdown.Type.ValueType # 3
LATEX: Markdown.Type.ValueType # 4
DIVIDER: Markdown.Type.ValueType # 5
BODY_FIELD_NUMBER: builtins.int
ALLOW_HTML_FIELD_NUMBER: builtins.int
IS_CAPTION_FIELD_NUMBER: builtins.int
ELEMENT_TYPE_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
body: builtins.str
"""Content to display."""
allow_html: builtins.bool
is_caption: builtins.bool
"""TODO [Karen]: Remove this field if favor of element_type"""
element_type: global___Markdown.Type.ValueType
help: builtins.str
def __init__(
self,
*,
body: builtins.str = ...,
allow_html: builtins.bool = ...,
is_caption: builtins.bool = ...,
element_type: global___Markdown.Type.ValueType = ...,
help: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["allow_html", b"allow_html", "body", b"body", "element_type", b"element_type", "help", b"help", "is_caption", b"is_caption"]) -> None: ...
global___Markdown = Markdown

View File

@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Metric.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cstreamlit/proto/Metric.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xb6\x02\n\x06Metric\x12\r\n\x05label\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x02 \x01(\t\x12\r\n\x05\x64\x65lta\x18\x03 \x01(\t\x12*\n\tdirection\x18\x04 \x01(\x0e\x32\x17.Metric.MetricDirection\x12\"\n\x05\x63olor\x18\x05 \x01(\x0e\x32\x13.Metric.MetricColor\x12\x0c\n\x04help\x18\x06 \x01(\t\x12\x31\n\x10label_visibility\x18\x07 \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x13\n\x0bshow_border\x18\x08 \x01(\x08\"+\n\x0bMetricColor\x12\x07\n\x03RED\x10\x00\x12\t\n\x05GREEN\x10\x01\x12\x08\n\x04GRAY\x10\x02\"-\n\x0fMetricDirection\x12\x08\n\x04\x44OWN\x10\x00\x12\x06\n\x02UP\x10\x01\x12\x08\n\x04NONE\x10\x02\x42+\n\x1c\x63om.snowflake.apps.streamlitB\x0bMetricProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Metric_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\013MetricProto'
_globals['_METRIC']._serialized_start=79
_globals['_METRIC']._serialized_end=389
_globals['_METRIC_METRICCOLOR']._serialized_start=299
_globals['_METRIC_METRICCOLOR']._serialized_end=342
_globals['_METRIC_METRICDIRECTION']._serialized_start=344
_globals['_METRIC_METRICDIRECTION']._serialized_end=389
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,101 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import streamlit.proto.LabelVisibilityMessage_pb2
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class Metric(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _MetricColor:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _MetricColorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Metric._MetricColor.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
RED: Metric._MetricColor.ValueType # 0
GREEN: Metric._MetricColor.ValueType # 1
GRAY: Metric._MetricColor.ValueType # 2
class MetricColor(_MetricColor, metaclass=_MetricColorEnumTypeWrapper): ...
RED: Metric.MetricColor.ValueType # 0
GREEN: Metric.MetricColor.ValueType # 1
GRAY: Metric.MetricColor.ValueType # 2
class _MetricDirection:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _MetricDirectionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Metric._MetricDirection.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
DOWN: Metric._MetricDirection.ValueType # 0
UP: Metric._MetricDirection.ValueType # 1
NONE: Metric._MetricDirection.ValueType # 2
class MetricDirection(_MetricDirection, metaclass=_MetricDirectionEnumTypeWrapper): ...
DOWN: Metric.MetricDirection.ValueType # 0
UP: Metric.MetricDirection.ValueType # 1
NONE: Metric.MetricDirection.ValueType # 2
LABEL_FIELD_NUMBER: builtins.int
BODY_FIELD_NUMBER: builtins.int
DELTA_FIELD_NUMBER: builtins.int
DIRECTION_FIELD_NUMBER: builtins.int
COLOR_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
SHOW_BORDER_FIELD_NUMBER: builtins.int
label: builtins.str
body: builtins.str
delta: builtins.str
direction: global___Metric.MetricDirection.ValueType
color: global___Metric.MetricColor.ValueType
help: builtins.str
show_border: builtins.bool
@property
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
def __init__(
self,
*,
label: builtins.str = ...,
body: builtins.str = ...,
delta: builtins.str = ...,
direction: global___Metric.MetricDirection.ValueType = ...,
color: global___Metric.MetricColor.ValueType = ...,
help: builtins.str = ...,
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
show_border: builtins.bool = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["body", b"body", "color", b"color", "delta", b"delta", "direction", b"direction", "help", b"help", "label", b"label", "label_visibility", b"label_visibility", "show_border", b"show_border"]) -> None: ...
global___Metric = Metric

View File

@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/MetricsEvent.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import PageProfile_pb2 as streamlit_dot_proto_dot_PageProfile__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"streamlit/proto/MetricsEvent.proto\x1a!streamlit/proto/PageProfile.proto\"\xea\x06\n\x0cMetricsEvent\x12\r\n\x05\x65vent\x18\x01 \x01(\t\x12\x14\n\x0c\x61nonymous_id\x18\x02 \x01(\t\x12\x15\n\rmachine_id_v3\x18\x03 \x01(\t\x12\x13\n\x0breport_hash\x18\x04 \x01(\t\x12\x0b\n\x03\x64\x65v\x18\x05 \x01(\x08\x12\x0e\n\x06source\x18\x06 \x01(\t\x12\x19\n\x11streamlit_version\x18\x07 \x01(\t\x12\x10\n\x08is_hello\x18\x08 \x01(\x08\x12\x11\n\thosted_at\x18\t \x01(\t\x12\r\n\x05owner\x18\n \x01(\t\x12\x0c\n\x04repo\x18\x0b \x01(\t\x12\x0e\n\x06\x62ranch\x18\x0c \x01(\t\x12\x13\n\x0bmain_module\x18\r \x01(\t\x12\x12\n\ncreator_id\x18\x0e \x01(\t\x12\x18\n\x10\x63ontext_page_url\x18\x0f \x01(\t\x12\x1a\n\x12\x63ontext_page_title\x18\x10 \x01(\t\x12\x19\n\x11\x63ontext_page_path\x18\x11 \x01(\t\x12\x1d\n\x15\x63ontext_page_referrer\x18\x12 \x01(\t\x12\x1b\n\x13\x63ontext_page_search\x18\x13 \x01(\t\x12\x16\n\x0e\x63ontext_locale\x18\x14 \x01(\t\x12\x1a\n\x12\x63ontext_user_agent\x18\x15 \x01(\t\x12\r\n\x05label\x18\x16 \x01(\t\x12\x1a\n\x08\x63ommands\x18\x17 \x03(\x0b\x32\x08.Command\x12\x11\n\texec_time\x18\x18 \x01(\x03\x12\x11\n\tprep_time\x18\x19 \x01(\x03\x12\x0e\n\x06\x63onfig\x18\x1a \x03(\t\x12\x1a\n\x12uncaught_exception\x18\x1b \x01(\t\x12\x14\n\x0c\x61ttributions\x18\x1c \x03(\t\x12\n\n\x02os\x18\x1d \x01(\t\x12\x10\n\x08timezone\x18\x1e \x01(\t\x12\x10\n\x08headless\x18\x1f \x01(\x08\x12\x17\n\x0fis_fragment_run\x18 \x01(\x08\x12\x0e\n\x06\x61pp_id\x18! \x01(\t\x12\x10\n\x08numPages\x18\" \x01(\x03\x12\x12\n\nsession_id\x18# \x01(\t\x12\x16\n\x0epython_version\x18$ \x01(\t\x12\x18\n\x10page_script_hash\x18% \x01(\t\x12\x14\n\x0c\x61\x63tive_theme\x18& \x01(\t\x12\x17\n\x0ftotal_load_time\x18\' \x01(\x03\x12\"\n\x0c\x62rowser_info\x18( \x01(\x0b\x32\x0c.BrowserInfo\"]\n\x0b\x42rowserInfo\x12\x14\n\x0c\x62rowser_name\x18\x01 \x01(\t\x12\x17\n\x0f\x62rowser_version\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65vice_type\x18\x03 \x01(\t\x12\n\n\x02os\x18\x04 \x01(\tB1\n\x1c\x63om.snowflake.apps.streamlitB\x11MetricsEventProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.MetricsEvent_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\021MetricsEventProto'
_globals['_METRICSEVENT']._serialized_start=74
_globals['_METRICSEVENT']._serialized_end=948
_globals['_BROWSERINFO']._serialized_start=950
_globals['_BROWSERINFO']._serialized_end=1043
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,200 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import streamlit.proto.PageProfile_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class MetricsEvent(google.protobuf.message.Message):
"""Metrics events:"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
EVENT_FIELD_NUMBER: builtins.int
ANONYMOUS_ID_FIELD_NUMBER: builtins.int
MACHINE_ID_V3_FIELD_NUMBER: builtins.int
REPORT_HASH_FIELD_NUMBER: builtins.int
DEV_FIELD_NUMBER: builtins.int
SOURCE_FIELD_NUMBER: builtins.int
STREAMLIT_VERSION_FIELD_NUMBER: builtins.int
IS_HELLO_FIELD_NUMBER: builtins.int
HOSTED_AT_FIELD_NUMBER: builtins.int
OWNER_FIELD_NUMBER: builtins.int
REPO_FIELD_NUMBER: builtins.int
BRANCH_FIELD_NUMBER: builtins.int
MAIN_MODULE_FIELD_NUMBER: builtins.int
CREATOR_ID_FIELD_NUMBER: builtins.int
CONTEXT_PAGE_URL_FIELD_NUMBER: builtins.int
CONTEXT_PAGE_TITLE_FIELD_NUMBER: builtins.int
CONTEXT_PAGE_PATH_FIELD_NUMBER: builtins.int
CONTEXT_PAGE_REFERRER_FIELD_NUMBER: builtins.int
CONTEXT_PAGE_SEARCH_FIELD_NUMBER: builtins.int
CONTEXT_LOCALE_FIELD_NUMBER: builtins.int
CONTEXT_USER_AGENT_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
COMMANDS_FIELD_NUMBER: builtins.int
EXEC_TIME_FIELD_NUMBER: builtins.int
PREP_TIME_FIELD_NUMBER: builtins.int
CONFIG_FIELD_NUMBER: builtins.int
UNCAUGHT_EXCEPTION_FIELD_NUMBER: builtins.int
ATTRIBUTIONS_FIELD_NUMBER: builtins.int
OS_FIELD_NUMBER: builtins.int
TIMEZONE_FIELD_NUMBER: builtins.int
HEADLESS_FIELD_NUMBER: builtins.int
IS_FRAGMENT_RUN_FIELD_NUMBER: builtins.int
APP_ID_FIELD_NUMBER: builtins.int
NUMPAGES_FIELD_NUMBER: builtins.int
SESSION_ID_FIELD_NUMBER: builtins.int
PYTHON_VERSION_FIELD_NUMBER: builtins.int
PAGE_SCRIPT_HASH_FIELD_NUMBER: builtins.int
ACTIVE_THEME_FIELD_NUMBER: builtins.int
TOTAL_LOAD_TIME_FIELD_NUMBER: builtins.int
BROWSER_INFO_FIELD_NUMBER: builtins.int
event: builtins.str
"""Common Event Fields:"""
anonymous_id: builtins.str
machine_id_v3: builtins.str
report_hash: builtins.str
dev: builtins.bool
source: builtins.str
streamlit_version: builtins.str
is_hello: builtins.bool
hosted_at: builtins.str
"""Host tracking fields:"""
owner: builtins.str
repo: builtins.str
branch: builtins.str
main_module: builtins.str
creator_id: builtins.str
context_page_url: builtins.str
"""Context fields:"""
context_page_title: builtins.str
context_page_path: builtins.str
context_page_referrer: builtins.str
context_page_search: builtins.str
context_locale: builtins.str
context_user_agent: builtins.str
label: builtins.str
"""Menu Click Event field:"""
exec_time: builtins.int
prep_time: builtins.int
uncaught_exception: builtins.str
os: builtins.str
timezone: builtins.str
headless: builtins.bool
is_fragment_run: builtins.bool
app_id: builtins.str
"""Addtl for page profile metrics"""
numPages: builtins.int
session_id: builtins.str
python_version: builtins.str
page_script_hash: builtins.str
active_theme: builtins.str
total_load_time: builtins.int
@property
def commands(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[streamlit.proto.PageProfile_pb2.Command]:
"""Page Profile Event fields:
Same as PageProfile msg
"""
@property
def config(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
@property
def attributions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
@property
def browser_info(self) -> global___BrowserInfo: ...
def __init__(
self,
*,
event: builtins.str = ...,
anonymous_id: builtins.str = ...,
machine_id_v3: builtins.str = ...,
report_hash: builtins.str = ...,
dev: builtins.bool = ...,
source: builtins.str = ...,
streamlit_version: builtins.str = ...,
is_hello: builtins.bool = ...,
hosted_at: builtins.str = ...,
owner: builtins.str = ...,
repo: builtins.str = ...,
branch: builtins.str = ...,
main_module: builtins.str = ...,
creator_id: builtins.str = ...,
context_page_url: builtins.str = ...,
context_page_title: builtins.str = ...,
context_page_path: builtins.str = ...,
context_page_referrer: builtins.str = ...,
context_page_search: builtins.str = ...,
context_locale: builtins.str = ...,
context_user_agent: builtins.str = ...,
label: builtins.str = ...,
commands: collections.abc.Iterable[streamlit.proto.PageProfile_pb2.Command] | None = ...,
exec_time: builtins.int = ...,
prep_time: builtins.int = ...,
config: collections.abc.Iterable[builtins.str] | None = ...,
uncaught_exception: builtins.str = ...,
attributions: collections.abc.Iterable[builtins.str] | None = ...,
os: builtins.str = ...,
timezone: builtins.str = ...,
headless: builtins.bool = ...,
is_fragment_run: builtins.bool = ...,
app_id: builtins.str = ...,
numPages: builtins.int = ...,
session_id: builtins.str = ...,
python_version: builtins.str = ...,
page_script_hash: builtins.str = ...,
active_theme: builtins.str = ...,
total_load_time: builtins.int = ...,
browser_info: global___BrowserInfo | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["browser_info", b"browser_info"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["active_theme", b"active_theme", "anonymous_id", b"anonymous_id", "app_id", b"app_id", "attributions", b"attributions", "branch", b"branch", "browser_info", b"browser_info", "commands", b"commands", "config", b"config", "context_locale", b"context_locale", "context_page_path", b"context_page_path", "context_page_referrer", b"context_page_referrer", "context_page_search", b"context_page_search", "context_page_title", b"context_page_title", "context_page_url", b"context_page_url", "context_user_agent", b"context_user_agent", "creator_id", b"creator_id", "dev", b"dev", "event", b"event", "exec_time", b"exec_time", "headless", b"headless", "hosted_at", b"hosted_at", "is_fragment_run", b"is_fragment_run", "is_hello", b"is_hello", "label", b"label", "machine_id_v3", b"machine_id_v3", "main_module", b"main_module", "numPages", b"numPages", "os", b"os", "owner", b"owner", "page_script_hash", b"page_script_hash", "prep_time", b"prep_time", "python_version", b"python_version", "repo", b"repo", "report_hash", b"report_hash", "session_id", b"session_id", "source", b"source", "streamlit_version", b"streamlit_version", "timezone", b"timezone", "total_load_time", b"total_load_time", "uncaught_exception", b"uncaught_exception"]) -> None: ...
global___MetricsEvent = MetricsEvent
@typing.final
class BrowserInfo(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
BROWSER_NAME_FIELD_NUMBER: builtins.int
BROWSER_VERSION_FIELD_NUMBER: builtins.int
DEVICE_TYPE_FIELD_NUMBER: builtins.int
OS_FIELD_NUMBER: builtins.int
browser_name: builtins.str
browser_version: builtins.str
device_type: builtins.str
os: builtins.str
def __init__(
self,
*,
browser_name: builtins.str = ...,
browser_version: builtins.str = ...,
device_type: builtins.str = ...,
os: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["browser_name", b"browser_name", "browser_version", b"browser_version", "device_type", b"device_type", "os", b"os"]) -> None: ...
global___BrowserInfo = BrowserInfo

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/MultiSelect.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/MultiSelect.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xfd\x01\n\x0bMultiSelect\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x03(\x05\x12\x0f\n\x07options\x18\x04 \x03(\t\x12\x0c\n\x04help\x18\x05 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x06 \x01(\t\x12\r\n\x05value\x18\x07 \x03(\x05\x12\x11\n\tset_value\x18\x08 \x01(\x08\x12\x10\n\x08\x64isabled\x18\t \x01(\x08\x12\x31\n\x10label_visibility\x18\n \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x16\n\x0emax_selections\x18\x0b \x01(\x05\x12\x13\n\x0bplaceholder\x18\x0c \x01(\tB0\n\x1c\x63om.snowflake.apps.streamlitB\x10MultiSelectProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.MultiSelect_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\020MultiSelectProto'
_globals['_MULTISELECT']._serialized_start=84
_globals['_MULTISELECT']._serialized_end=337
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,81 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import streamlit.proto.LabelVisibilityMessage_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class MultiSelect(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
LABEL_FIELD_NUMBER: builtins.int
DEFAULT_FIELD_NUMBER: builtins.int
OPTIONS_FIELD_NUMBER: builtins.int
HELP_FIELD_NUMBER: builtins.int
FORM_ID_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
SET_VALUE_FIELD_NUMBER: builtins.int
DISABLED_FIELD_NUMBER: builtins.int
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
MAX_SELECTIONS_FIELD_NUMBER: builtins.int
PLACEHOLDER_FIELD_NUMBER: builtins.int
id: builtins.str
label: builtins.str
help: builtins.str
form_id: builtins.str
set_value: builtins.bool
disabled: builtins.bool
max_selections: builtins.int
placeholder: builtins.str
@property
def default(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
@property
def options(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
@property
def value(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
@property
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
def __init__(
self,
*,
id: builtins.str = ...,
label: builtins.str = ...,
default: collections.abc.Iterable[builtins.int] | None = ...,
options: collections.abc.Iterable[builtins.str] | None = ...,
help: builtins.str = ...,
form_id: builtins.str = ...,
value: collections.abc.Iterable[builtins.int] | None = ...,
set_value: builtins.bool = ...,
disabled: builtins.bool = ...,
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
max_selections: builtins.int = ...,
placeholder: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["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", "max_selections", b"max_selections", "options", b"options", "placeholder", b"placeholder", "set_value", b"set_value", "value", b"value"]) -> None: ...
global___MultiSelect = MultiSelect

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/NamedDataSet.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from streamlit.proto import DataFrame_pb2 as streamlit_dot_proto_dot_DataFrame__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"streamlit/proto/NamedDataSet.proto\x1a\x1fstreamlit/proto/DataFrame.proto\"H\n\x0cNamedDataSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08has_name\x18\x03 \x01(\x08\x12\x18\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\n.DataFrameB1\n\x1c\x63om.snowflake.apps.streamlitB\x11NamedDataSetProtob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.NamedDataSet_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\021NamedDataSetProto'
_globals['_NAMEDDATASET']._serialized_start=71
_globals['_NAMEDDATASET']._serialized_end=143
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,59 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
*!
Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.message
import streamlit.proto.DataFrame_pb2
import typing
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing.final
class NamedDataSet(google.protobuf.message.Message):
"""DEPRECATED: This proto message is deprecated and unsused.
A dataset that can be referenced by name.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
NAME_FIELD_NUMBER: builtins.int
HAS_NAME_FIELD_NUMBER: builtins.int
DATA_FIELD_NUMBER: builtins.int
name: builtins.str
"""The dataset name."""
has_name: builtins.bool
"""True if the name field (above) was manually set. This is used to get
around proto3 not having a way to check whether something was set.
"""
@property
def data(self) -> streamlit.proto.DataFrame_pb2.DataFrame:
"""The data itself."""
def __init__(
self,
*,
name: builtins.str = ...,
has_name: builtins.bool = ...,
data: streamlit.proto.DataFrame_pb2.DataFrame | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["data", b"data", "has_name", b"has_name", "name", b"name"]) -> None: ...
global___NamedDataSet = NamedDataSet

Some files were not shown because too many files have changed in this diff Show More