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.
app_folder_path: str | Noneenable_debugger: boolname: strparams: dict | Nonerequires_authentication: boolresource_model_id: strresources: list[gws_core.resource.resource.Resource] | Nonestreamlit_code: str | NoneInitialize self. See help(type(self)) for accurate signature.
strstrShellProxybool - TrueGenerate the streamlit app code if this is using streamlit_code attribute.
strGet the app folder path where the main.py is located.
strGet the type of the app.
AppTypeShellProxyGet the source ids of the app
listGet the user's main.py file path.
strboolboolSet the user to be used in dev mode and return the user access token
strboolSet the resources of the app
: param resources: description : type resources: List[str]
listdictSet if the app requires authentication. By default it requires authentication. If the app does not require authentication, the user access tokens are not used. In this case the system user is used to access the app.
: param requires_authentication: True if the app requires authentication : type requires_authentication: bool
boolstrstrstrAppInstanceDTOReturn true if the app was generated from the given resource model id
strbool