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
app_type: Literal
env_code: str
env_file_path: str
params: dict
resources: List
streamlit_code: str
Functions
Initialize self. See help(type(self)) for accurate signature.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
app_id | str | ||
app_type | Literal |
Method to create the streamlit app code file and return the url to access the app.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
working_dir | str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
host_url | str | ||
token | str |
Return type:
str |
Return type:
str |
Return type:
str |
Return type:
ShellProxy |
Return type:
bool |
Return type:
bool |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
dev_config_file | str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
env_code | str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
env_file_path | str |
Set the resources of the app For normal app, the resources are the source ids For env app, the resources are the file paths
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
resources | List | _description_ [str] |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
params | dict |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
streamlit_code | str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
streamlit_app_code_path | str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
streamlit_folder_path | str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
host_url | str | ||
token | str |
Return type:
StreamlitAppDTO |