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

BrickService

Functions
FIND_BRICK_FOLDER - @classmethod

Find the folder of the brick by searching in the user bricks folder and the system bricks folder

Parameters:
NameTypeDefault valueDescription
brick_namestr
Return type:
str
FOLDER_IS_BRICK - @classmethod

return true if the provided folder is a brick. If the folder contains a settings.json and a src folder it is a brick

Parameters:
NameTypeDefault valueDescription
pathstr
Return type:
bool
GET_ALL_BRICK_MODELS - @classmethod
Return type:
List
GET_BRICK_MODEL - @classmethod
Parameters:
NameTypeDefault valueDescription
namestr
Return type:
BrickModel
GET_BRICK_SRC_FOLDER - @classmethod

Get the folder of the brick source code

Parameters:
NameTypeDefault valueDescription
brick_namestr
Return type:
str
GET_BRICK_VERSION - @classmethod
Parameters:
NameTypeDefault valueDescription
namestr
Return type:
str
GET_PARENT_BRICK_FOLDER - @classmethod

Get the parent brick folder of a file or folder path

Parameters:
NameTypeDefault valueDescription
pathstr Path to a file or folder
Return type:
Optional
IMPORT_ALL_BRICKS_IN_PYTHON - @classmethod
IMPORT_BRICK_IN_PYTHON - @classmethod

Method to load a brick from path in python.

Parameters:
NameTypeDefault valueDescription
brick_namestr _description_
brick_pathstr _description_
INIT - @classmethod

Clear the BrickModel table and log all the messages that were waiting on start

LOG_BRICK_ERROR - @classmethod
Parameters:
NameTypeDefault valueDescription
objAny
messagestr
LOG_BRICK_INFO - @classmethod
Parameters:
NameTypeDefault valueDescription
objAny
messagestr
LOG_BRICK_MESSAGE - @classmethod
Parameters:
NameTypeDefault valueDescription
brick_namestr
messagestr
statusLiteral
LOG_BRICK_MESSAGE_FROM_OBJ - @classmethod

Log a message for the brick of the object. The message is save in DB so it can be viewed later

Parameters:
NameTypeDefault valueDescription
objAny Obj that caused the message. the brick information will be retrieve form the obj type
messagestr [description]
statusLiteral [description] brickmessagestatus
LOG_BRICK_WARNING - @classmethod
Parameters:
NameTypeDefault valueDescription
objAny
messagestr
RENAME_BRICK - @classmethod

Rename brick objects and delete brick from settings /!\ This method is not safe and should be used with caution

Parameters:
NameTypeDefault valueDescription
old_brick_namestr
new_brick_namestr