AppsManager
Class to manage the different apps.
Each app runs in its own dedicated process.
app_dir: str | Nonerunning_processes: dictAppInstanceAppInstanceUrlCreate app asynchronously and return the app ID. The app will be started in background.
AppInstanceCreateAppAsyncResultDTOFind the streamlit app that was generated from the given resource model id
strgws_core.apps.app_process.AppProcess | NoneFind the process that contains the app with the given token
strgws_core.apps.app_process.AppProcess | NonestrRead the server log filtered by the app id
strdatetime.datetime | NoneLogsBetweenDatesAppsStatusDTOSet (or clear) the custom subdomain on an app resource.
The value is validated and checked for DB-wide uniqueness by the resource setter. Passing a falsy value clears the custom subdomain and restores the default id-based host.
The custom subdomain is a front-only alias on the app host: the canonical id-based host is kept, and the custom host is added as an extra nginx server_name. If the app is currently running, the change is applied immediately (the front nginx service is re-registered and nginx reloaded); otherwise it takes effect on the next start.
strstr | NoneSet the stop policy on an app resource and update the running process if any.
strAppStopPolicystrReturn the user id from the user access token if the user has access to the app
strstrstr | None