Settings class.
This class represents to global settings of the application.
:property data: The settings data
:type data: dict
data: Dict
Initialize self. See help(type(self)) for accurate signature.
dict
BrickInfo
ModuleInfo
List
str
Optional
Get the data directory of a brick. It contains the data downloaded for a brick.
str
str
Get the main data director for the brick. It contains folder for each brick containing data of the brick.
str
str
Optional
Retrieve the list of all brick migrations
Dict
Dict
str
Any
str
Get the default data directory. Depending on if the lab is in dev or prod mode, the appropriate directory is returned.
str
str
str
str
Get the log directory
str
str
str
Dict
Returns all the paths of all the brick used by the Application
str
str
Optional
List
List
SpaceDict
Returns a variable. Returns None
if the variable does not exist
Any
str
Returns the variables dict
dict
True when lab is running on a desktop in prod mode
bool
True when lab is running locally in dev mode
bool
bool
str
Any
str
List
SpaceDict
Set a variable
str
str
SettingsDTO
Add a new brick migration log and update last migration version
str
str
Return the log dir
bool
str
str
str
str
Returns the port where all the external request to app are sent.
int
Returns the sub domain of the app
str
str
str
str
Returns the front version of the lab
str
str
str
DbConfig
Settings
str
str
Return 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)
Literal
str
Returns the name of the lab
str
Returns the name of the lab
str
str
str
Return the path where the monitor disk data is stored
str
Return 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.
int
Return 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 | None
Return the tick interval for the monitor cleanup in seconds. This is the interval at which the monitor data is cleaned up.
int
Return the tick interval for the monitor log in seconds. This is the interval at which the monitor data is logged.
int
Return the open ai api key
str
Return the root temp dir
str
Return the space api key
str
Return the space api url
str
Return the space front url
str
str
DbConfig
str
Return the virtual host of the machine like tokyo.gencovery.io
str
return true if the gpu is available
bool
Settings
bool
bool
bool
bool
Make a unique temp dir
str
str
Settings
str
str