Back to bricks list
Introduction Getting Started
Architecture
Technical Documentation
Other Classes
AbstractDbManager AgentFactory AudioView AuthService BadRequestException BarPlotView Base BaseEnvShell BaseHTTPException BaseModelDTO BaseTestCase BaseTestCaseLight BashCodeParam BoolParam BoolRField BoolValidator BoxPlotView BrickMigration BrickService CheckBeforeTaskResult CommunityService Compress CondaShellProxy Config ConfigParams Connector ConnectorPartSpec ConnectorSpec ConverterRunner Credentials CredentialsDataBasic CredentialsDataLab CredentialsDataOther CredentialsDataS3 CredentialsParam CredentialsType CurrentUserService Dashboard DashboardType DataframeAggregatorHelper DataframeDataFilterHelper DataframeFilterHelper DataFrameRField DataframeScalerHelper datetime DateTimeUTC DbConfig DictRField DictValidator DispatchedMessage DynamicInputs DynamicOutputs EntityNavigator EntityNavigatorNote EntityNavigatorResource EntityNavigatorScenario EntityNavigatorService EntityNavigatorView EntityTag EntityType Enum ExceptionHandler ExceptionResponse ExpressionBuilder ExternalApiService ExternalSpaceCreateFolder FileDownloader FileHelper FileRField FloatParam FloatRField FloatValidator ForbiddenException FrontService FrontTheme FSNodeModel FsNodeService GwsCorePackages GWSException GzipCompress HeatmapView HistogramView ImageView InPort Inputs InputSpec InputSpecs InterfaceSpec IntParam IntRField IntValidator IO IOface Job JsonCodeParam JSONField JSONView JuliaCodeParam KVStore LazyViewParam LinePlot2DView ListParam ListRField ListValidator Logger LoggerMessageObserver MailService MambaShellProxy MessageDispatcher MessageLevel MessageObserver Model ModelRfield ModelService Monitor MonitorService MultiViews NetworkView Note Notebook NoteParam NoteSearchBuilder NoteService NoteTemplate NoteTemplateParam NoteTemplateService NotFoundException NumericHelper NumericParam NumericValidator OpenAiChat OpenAiChatMessage OpenAiChatParam OpenAiHelper OutPort Outputs OutputSpec OutputSpecs PackageHelper Paginator ParamSet ParamSpec PerlCodeParam PipShellProxy PlotlyRField PlotlyView PoolDb Port PrimitiveRField Process ProcessFactory ProcessModel ProcessProxy ProcessSpec ProgressBar ProgressBarMessageObserver ProgressBarService ProtocolModel ProtocolProxy ProtocolService ProtocolTyping PythonCodeParam Queue QueueService RCodeParam Requests ResourceDownloaderBase ResourceModel ResourceOrigin ResourceRField ResourceSearchBuilder ResourceService ResourceTransfertService ResourceTyping RField RichText RichTextBlock RichTextBlockModificationDTO RichTextBlockModificationWithUserDTO RichTextBlockType RichTextDTO RichTextFigureData RichTextFileData RichTextFormulaData RichTextListData RichTextListItem RichTextModificationDifferenceDTO RichTextModificationsDTO RichTextModificationType RichTextNoteResourceViewData RichTextObjectType RichTextParagraphData RichTextParagraphHeaderData RichTextParagraphHeaderLevel RichTextParagraphListData RichTextParagraphListItemData RichTextParagraphText RichTextResourceViewData RichTextTimestampData RichTextUserDTO RichTextVariableData RichTextView RichTextViewFileData S3Bucket ScatterPlot2DView Scenario ScenarioCreationType ScenarioProcessStatus ScenarioProxy ScenarioRunService ScenarioSaveDTO ScenarioSearchBuilder ScenarioService ScenarioStatus ScenarioTemplate ScenarioTemplateFactory ScenarioTransfertService SearchBuilder SerializableObjectJson SerializableRField Settings ShellProxy ShellProxyFactory SimpleTextView SpaceFolder SpaceService SqlMigrator StackedBarPlotView StreamlitApp StreamlitAppManager StreamlitProcess StringHelper StrParam StrRField StrValidator SysProc TableAnnotatorHelper TableColumnSelector TableColumnTagToRowExtractor TableColumnTagUnfolder TableConcatHelper TableHeaderInfo TableOperationHelper TableRowSelector TableRowTagToColumnExtractor TableRowTagUnfolder TableScalerHelper TableTagAggregatorHelper TableUnfolderHelper TableView TabularView Tag TagHelper TagKeyModel TagList TagService TagsParam TagValueModel TarCompress TarGzCompress TaskFileDownloader TaskHelper TaskInputs TaskModel TaskProxy TaskRunner TaskService TaskTyping TechnicalInfo TextParam TextView TextViewData Typing TypingDeprecated TypingIconColor TypingIconType TypingManager TypingStyle UnauthorizedException URLValidator User UserCredentialsDTO UserGroup UserService Utils UUIDRField Validator VennDiagramView Version View ViewConfig ViewTester ViewType YamlCodeParam ZipCompress
Version

Settings

Settings class.

This class represents to global settings of the application.

:property data: The settings data :type data: dict

Attributes
data: Dict
Functions
__INIT__

Initialize self. See help(type(self)) for accurate signature.

Parameters:
NameTypeDefault valueDescription
datadict
ADD_BRICK
Parameters:
NameTypeDefault valueDescription
brick_infoBrickInfo
ADD_MODULE
Parameters:
NameTypeDefault valueDescription
module_infoModuleInfo
GET_ALL_PIP_PACKAGES
Return type:
List
GET_BRICK
Parameters:
NameTypeDefault valueDescription
brick_namestr
Return type:
Optional
GET_BRICK_DATA_DIR

Get the data directory of a brick. It contains the data downloaded for a brick.

Parameters:
NameTypeDefault valueDescription
brick_namestr The name of the brick ``
Return type:
str
GET_BRICK_DATA_MAIN_DIR

Get the main data director for the brick. It contains folder for each brick containing data of the brick.

Return type:
str
GET_BRICK_MIGRATION_LOG
Parameters:
NameTypeDefault valueDescription
brick_namestr
Return type:
Optional
GET_BRICK_MIGRATIONS_LOGS

Retrieve the list of all brick migrations

Return type:
Dict
GET_BRICKS
Return type:
Dict
GET_DATA
Parameters:
NameTypeDefault valueDescription
kstr
defaultAny
Return type:
str
GET_DATA_DIR

Get the default data directory. Depending on if the lab is in dev or prod mode, the appropriate directory is returned.

Return type:
str
GET_FILE_STORE_DIR
Return type:
str
GET_GWS_CORE_DB_NAME
Return type:
str
GET_KV_STORE_BASE_DIR
Return type:
str
GET_LOG_DIR

Get the log directory

Return type:
str
GET_MAIN_SETTINGS_FILE_PATH
Return type:
str
GET_MARIA_DB_BACKUP_DIR
Return type:
str
GET_MODULES
Return type:
Dict
GET_NOTEBOOK_PATHS

Returns all the paths of all the brick used by the Application

Return type:
str
GET_PIP_PACKAGE
Parameters:
NameTypeDefault valueDescription
namestr
Return type:
Optional
GET_PIP_PACKAGES
Parameters:
NameTypeDefault valueDescription
namesList
Return type:
List
GET_SPACE
Return type:
SpaceDict
GET_VARIABLE

Returns a variable. Returns None if the variable does not exist

Parameters:
NameTypeDefault valueDescription
keyAny
Return type:
str
GET_VARIABLES

Returns the variables dict

Return type:
dict
IS_DESKTOP_LAB

True when lab is running on a desktop in prod mode

Return type:
bool
IS_LOCAL_DEV_ENV

True when lab is running locally in dev mode

Return type:
bool
SAVE
Return type:
bool
SET_DATA
Parameters:
NameTypeDefault valueDescription
keystr
valAny
SET_MAIN_SETTINGS_FILE_PATH
Parameters:
NameTypeDefault valueDescription
main_settings_file_pathstr
SET_PIP_FREEZE
Parameters:
NameTypeDefault valueDescription
pip_freezeList
SET_SPACE
Parameters:
NameTypeDefault valueDescription
spaceSpaceDict
SET_VARIABLE

Set a variable

Parameters:
NameTypeDefault valueDescription
keystr
valuestr
TO_DTO
Return type:
SettingsDTO
UPDATE_BRICK_MIGRATION_LOG

Add a new brick migration log and update last migration version

Parameters:
NameTypeDefault valueDescription
brick_namestr
versionstr
BUILD_LOG_DIR - @classmethod

Return the log dir

Parameters:
NameTypeDefault valueDescription
is_testbool
Return type:
str
CORE_API_ROUTE_PATH - @classmethod
Return type:
str
DEV_API_SUB_DOMAIN - @classmethod
Return type:
str
EXTERNAL_LAB_API_ROUTE_PATH - @classmethod
Return type:
str
GET_COMMUNITY_API_URL - @classmethod
Return type:
str
GET_DASHBOARD_DEV_PORT - @classmethod
Return type:
str
GET_DASHBOARD_DEV_URL - @classmethod
Return type:
str
GET_FRONT_URL - @classmethod
Return type:
str
GET_FRONT_VERSION - @classmethod

Returns the front version of the lab

Return type:
str
GET_GLOBAL_ENV_DIR - @classmethod
Return type:
str
GET_GWS_CORE_BRICK_NAME - @classmethod
Return type:
str
GET_GWS_CORE_DB_CONFIG - @classmethod
Return type:
DbConfig
GET_INSTANCE - @classmethod
Return type:
Settings
GET_LAB_API_URL - @classmethod
Return type:
str
GET_LAB_DEV_API_URL - @classmethod
Return type:
str
GET_LAB_ENVIRONMENT - @classmethod

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)

Return type:
Literal
GET_LAB_FOLDER - @classmethod
Return type:
str
GET_LAB_ID - @classmethod

Returns the name of the lab

Return type:
str
GET_LAB_NAME - @classmethod

Returns the name of the lab

Return type:
str
GET_LAB_PROD_API_URL - @classmethod
Return type:
str
GET_MAIN_APP_FOLDER - @classmethod
Return type:
str
GET_OPEN_AI_API_KEY - @classmethod

Return the open ai api key

Return type:
str
GET_ROOT_TEMP_DIR - @classmethod

Return the root temp dir

Return type:
str
GET_SPACE_API_KEY - @classmethod

Return the space api key

Return type:
str
GET_SPACE_API_URL - @classmethod

Return the space api url

Return type:
str
GET_STREAMLIT_APP_ADDITIONAL_HOSTS - @classmethod

Returns available port for streamlit addtional app (running in virtual env)

Return type:
List
GET_STREAMLIT_APP_ADDITIONAL_PORTS - @classmethod

Returns available port for streamlit addtional app (running in virtual env)

Return type:
List
GET_STREAMLIT_HOST_URL - @classmethod

Returns the front version of the lab

Return type:
str
GET_STREAMLIT_MAIN_APP_PORT - @classmethod

Returns the front version of the lab

Return type:
int
GET_SYS_BRICKS_FOLDER - @classmethod
Return type:
str
GET_TEST_DB_CONFIG - @classmethod
Return type:
DbConfig
GET_USER_BRICKS_FOLDER - @classmethod
Return type:
str
GET_VIRTUAL_HOST - @classmethod

Return the virtual host of the machine like tokyo.gencovery.io

Return type:
str
GPU_IS_AVAILABLE - @classmethod

return true if the gpu is available

Return type:
bool
INIT - @classmethod
Return type:
Settings
IS_DEV_MODE - @classmethod
Return type:
bool
IS_LOCAL_ENV - @classmethod
Return type:
bool
IS_PROD_MODE - @classmethod
Return type:
bool
MAKE_TEMP_DIR - @classmethod

Make a unique temp dir

Return type:
str
PROD_API_SUB_DOMAIN - @classmethod
Return type:
str
RETRIEVE - @classmethod
Return type:
Settings
S3_SERVER_API_ROUTE_PATH - @classmethod
Return type:
str
SPACE_API_ROUTE_PATH - @classmethod
Return type:
str