Back to bricks list
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

StreamlitApp

Class to manage a streamlit app that runs inside the main streamlit app

The path of this streamlit app code is passed to the main streamlit app as a parameter of the url. The main streamlit app load and run this app code.

Attributes
app_folder_path: strapp_id: strparams: dictresources: Liststreamlit_code: str
Functions
__INIT__

Initialize self. See help(type(self)) for accurate signature.

app_id : str
shell_proxy : ShellProxy
DESTROY
GENERATE_APP

Method to create the streamlit app code file and return the url to access the app.

working_dir : str
GET_APP_FULL_URL
host_url : str
token : str
Return type : StreamlitAppUrl
GET_DEV_CONFIG_FILE
Return type : str
GET_ENV_CODE_HASH
Return type : str
GET_MAIN_APP_FILE_PATH
Return type : str
GET_SHELL_PROXY
Return type : ShellProxy
IS_DEV_MODE
Return type : bool
IS_NORMAL_APP
Return type : bool
SET_DEV_MODE
dev_config_file : str
SET_INPUT_RESOURCES

Set the resources of the app For normal app, the resources are the source ids For env app, the resources are the file paths

resources : List
_description_
SET_PARAMS
params : dict
SET_STREAMLIT_CODE
streamlit_code : str
SET_STREAMLIT_CODE_PATH
streamlit_app_code_path : str
SET_STREAMLIT_FOLDER
streamlit_folder_path : str
TO_DTO
host_url : str
token : str
Return type : StreamlitAppDTO