ReflexApp
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: strparams: dict | Nonerequires_authentication: boolresource_model_id: strresources: list[gws_core.resource.resource.Resource] | Nonestop_policy: AppStopPolicyInitialize self. See help(type(self)) for accurate signature.
strstrShellProxybool - TrueClear the Reflex app cache by deleting specific folders. Deletes the following folders if they exist:
- .states
- .web
- assets/external
Get the app config for this app instance.
AppConfigGet the directory where the app will be generated
strGet the type of the app.
AppTypeGet the folder that contains the front build of the app. This folder is created by the task that generates the app.
gws_core.impl.file.folder.Folder | NonestrstrCheck 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.
str | NoneShellProxyGet the source references passed to the app, stored in the config file.
For virtual environment apps, the app runs in an isolated env that cannot load gws_core to resolve model ids to resources. So the file paths are passed instead. Only FSNode resources are supported for virtual environment apps.
For normal apps, the resource model ids are passed.
listboolboolboolSet the app config for this app instance. The app config is used to generate the app code and configuration files.
AppConfigFolderSet the directory where the app will be generated
strFolderSet the user to be used in dev mode and return the user access token
strSet the resources of the app
: param resources: description : type resources: List[str]
listbooldictSet 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
boolSet how the app should be stopped when no connections are detected. By default (AUTO), the app is automatically stopped when no connections are detected.
AppStopPolicyAppInstanceDTOUpdate 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
strbool