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
name: str
params: dict
requires_authentication: bool
resource_model_id: str
resources: List
streamlit_code: str
user_access_tokens: Dict
Initialize self. See help(type(self)) for accurate signature.
str
str
ShellProxy
bool
- True
Add the user to the list of users that can access the app and return the user access token
str
str
Method to create the streamlit app code file and return the url to access the app.
str
str
str
AppInstanceUrl
Get 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.
str
Get the type of the app.
AppType
str
str
str
ShellProxy
Get the user id from the user access token If the user does not exist, return None
str
Optional
bool
bool
str
Set the resources of the app
: param resources: description : type resources: List[str]
List
dict
Set 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
bool
str
str
str
AppInstanceDTO
Return true if the app was generated from the given resource model id
str
bool