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
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 open ai api key
str
Return the root temp dir
str
Return the space api key
str
Return the space api url
str
Returns available port for streamlit addtional app (running in virtual env)
List
Returns available port for streamlit addtional app (running in virtual env)
List
Returns the front version of the lab
str
Returns the front version of the lab
int
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
Make a unique temp dir
str
str
Settings
str
str