Login
Back to bricks list
Introduction Version

ModelService

Functions

CHECK_ALL_TYPINGS - @classmethod

Method to check if all typing registered in BD exists

COUNT_MODEL - @classmethod

Counts models

Parameters:
NameTypeDefault valueDescription
typing_namestr
Return type:
int
COUNT_MODEL_FROM_TYPE - @classmethod

Counts models

Parameters:
NameTypeDefault valueDescription
model_typeType
Return type:
int
FETCH_LIST_OF_MODELS - @classmethod
Parameters:
NameTypeDefault valueDescription
typing_namestr
pageint 0
number_of_items_per_pageint 20
Return type:
Paginator
FETCH_MODEL - @classmethod

Fetch a model

Parameters:
NameTypeDefault valueDescription
typing_namestr
idstr The id of the model ``
Return type:
Model
REGISTER_ALL_PROCESSES_AND_RESOURCES - @classmethod