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: strname: strparams: dictrequires_authentication: boolresource_model_id: strresources: Liststreamlit_code: struser_access_tokens: DictInitialize self. See help(type(self)) for accurate signature.
strstrShellProxybool - TrueAdd the user to the list of users that can access the app and return the user access token
strstrMethod to create the streamlit app code file and return the url to access the app.
strstrstrAppInstanceUrlGet the hash of the app process. If 2 hash are equal, the app will be running the in the same process. This is used to avoid running the same app in multiple processes.
strGet the type of the app.
AppTypestrstrstrShellProxyGet the user id from the user access token If the user does not exist, return None
strOptionalboolboolstrSet 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