Back to bricks list
Introduction
Technical Documentation
Other Classes
Process StreamlitProcess
Version

StreamlitProcess

Object representing a streamlit process, one instance of 'streamlit run' command. It can manage multiple streamlit apps using the same environment.

Attributes

app_type: Literalcurrent_running_apps: Dictenv_hash: strhost_url: strport: inttoken: str

Functions

__INIT__

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

Parameters:
NameTypeDefault valueDescription
portint
host_urlstr
app_typeLiteral
env_hashstr
CALL_HEALTH_CHECK
Return type:
bool
COUNT_CONNECTIONS
Return type:
int
CREATE_APP
Parameters:
NameTypeDefault valueDescription
appStreamlitApp
GET_APP
Parameters:
NameTypeDefault valueDescription
app_idstr
Return type:
gws_core.streamlit.streamlit_app.StreamlitApp | None
GET_APP_FULL_URL
Parameters:
NameTypeDefault valueDescription
app_idstr
Return type:
str
GET_CURRENT_USER_THEME
Return type:
FrontTheme
GET_MAIN_APP_FILE_PATH
Return type:
str
GET_STATUS_DTO
Return type:
StreamlitProcessStatusDTO
GET_WORKING_DIR
Return type:
str
HAS_APP
Parameters:
NameTypeDefault valueDescription
app_idstr
Return type:
bool
PROCESS_IS_RUNNING
Return type:
bool
SET_DEV_MODE
Parameters:
NameTypeDefault valueDescription
dev_config_filestr
START_CHECK_RUNNING

Method to start the check running loop to check if the app is still used

START_STREAMLIT_PROCESS
Parameters:
NameTypeDefault valueDescription
appStreamlitApp
STOP_PROCESS

Kill the process and all apps

WAIT_MAIN_APP_HEATH_CHECK