Settings
Settings class.
This class represents to global settings of the application.
:property data: The settings data
:type data: dict
data: DictInitialize self. See help(type(self)) for accurate signature.
dictBrickInfoModuleInfoListstrOptionalGet the data directory of a brick. It contains the data downloaded for a brick.
strstrGet the main data director for the brick. It contains folder for each brick containing data of the brick.
strstrOptionalRetrieve the list of all brick migrations
DictDictstrAnystrGet the default data directory. Depending on if the lab is in dev or prod mode, the appropriate directory is returned.
strstrstrstrGet the log directory
strstrstrDictReturns all the paths of all the brick used by the Application
strstrOptionalListListSpaceDictReturns a variable. Returns None if the variable does not exist
AnystrReturns the variables dict
dictTrue when lab is running on a desktop in prod mode
boolTrue when lab is running locally in dev mode
boolboolstrAnystrListSpaceDictSet a variable
strstrSettingsDTOAdd a new brick migration log and update last migration version
strstrReturn the log dir
boolstrstrstrstrReturns the port where all the external request to app are sent.
intReturns the sub domain of the app
strstrstrstrReturns the front version of the lab
strstrstrDbConfigSettingsstrstrReturn the environment where the lab run ON_CLOUD : the lab is running on the cloud DESKTOP : the lab is running on a desktop LOCAL : the lab is running locally (for development purpose)
LiteralstrReturns the name of the lab
strReturns the name of the lab
strstrstrReturn the path where the monitor disk data is stored
strReturn the maximum number of lines to keep in the monitor log. This is the maximum number of lines to keep in the monitor log. With 1 log every 30 seconds, this is 86400 lines for 1 month.
intReturn the required free disk space in bytes. This is the minimum free disk space required to avoid disk full. Once reached, no more data can be uploaded or scenario run. By default it is set to 10% of the disk space with a minimum of 5GB and a maximum of 20GB.
int | NoneReturn the tick interval for the monitor cleanup in seconds. This is the interval at which the monitor data is cleaned up.
intReturn the tick interval for the monitor log in seconds. This is the interval at which the monitor data is logged.
intReturn the open ai api key
strReturn the root temp dir
strReturn the space api key
strReturn the space api url
strReturn the space front url
strstrDbConfigstrReturn the virtual host of the machine like tokyo.gencovery.io
strreturn true if the gpu is available
boolSettingsboolboolboolboolMake a unique temp dir
strstrSettingsstrstr