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: str
app_id: str
params: dict
resources: List
streamlit_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