Object representing a Reflex app instance. This app instance is used to generate the app code and configuration files.
:param AppInstance: description :type AppInstance: type :return: description :rtype: type
name: str
params: dict
requires_authentication: bool
resource_model_id: str
resources: List
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
Generate the dir for the process. Then inside this dir generate a dir for this app and generate the app configuration file.
str
Get the app config for this app instance.
AppConfig
Get the directory where the app will be generated
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
Get the folder that contains the front build of the app. This folder is created by the task that generates the app.
Optional
str
str
Check if the front build is already generated. If the build was generated from a previous brick version, it will be deleted and considered as not built.
Optional
ShellProxy
Get the user id from the user access token If the user does not exist, return None
str
Optional
bool
bool
Set the app config for this app instance. The app config is used to generate the app code and configuration files.
AppConfig
Folder
Set the directory where the app will be generated
str
Folder
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
AppInstanceDTO
Update the front build brick version. This is used to update the front build version after the app is generated.
Return true if the app was generated from the given resource model id
str
bool