BrickService
Find the folder of the brick by searching in the user bricks folder and the system bricks folder
strstrreturn true if the provided folder is a brick. If the folder contains a settings.json and a src folder it is a brick
strboollistGet the directory for a specific extension of a specific brick. You can store data of the brick in this folder. This folder is backup during backup process.
Warnings: The docker service creates a directory in the extension folder with the unique_name of the compose service. So don't create a folder with the same name.
strstrstrGet the extensions directory for a specific brick. You can store data of the brick in this folder. This folder is backup during backup process.
strstrstrBrickModelGet the brick name from a folder path
strstr | NoneGet the folder of the brick source code
strstrstrstrGet the parent brick folder of a file or folder path
strstr | NoneMethod to load a brick from path in python.
strstrClear the BrickModel table and log all the messages that were waiting on start
List all brick directories from both user and system brick folders.
Returns a list of BrickDirectoryDTO containing brick name and path. Only returns folders that are valid bricks (contain settings.json and src folder).
bool - FalselistAnystrAnystrAnystrstrstrLiteralLog a message for the brick of the object. The message is save in DB so it can be viewed later
AnystrLiteralAnystrRead and parse the settings.json file from a brick folder path.
strgws_core.brick.brick_settings.BrickSettings | NoneRename brick objects and delete brick from settings /!\ This method is not safe and should be used with caution
strstr