Streamlit App
Streamlit App
name: strstyle: TypingStyletags: TagListtechnical_info: TechnicalInfoDictuid: strConstructor, please do not overwrite this method, use the init method instead Leave the constructor without parameters.
strAdd a resource to the list
Resourcebool - TrueAdd technical information on the resource. Technical info are useful to set additional information on the resource.
TechnicalInfoYou can redefine this method to define custom logic to check this resource. If there is a problem with the resource, return a string that define the error, otherwise return None This method is called on output resources of a task. If there is an error returned, the task will be set to error and next proceses will not be run. It is also call when uploading a resource (usually for files or folder), if there is an error returned, the resource will not be uploaded
OptionalClone the resource to create a new instance with a new id. It copies the RFields.
ResourceTypeAnyintYou can redefine this method to set a name of the resource. When saving the resource the name will be saved automatically This can be useful to distinguish this resource from another one or to search for the resource
strGet the id of the resource model in the database. It is provided by the system for input resources of a task.
strGet the name of the resource or the default name if the name is None
strGet the parameters that will be passed to the streamlit app.
dictReturn the resource model ids of the sub resources
SetReturn the resource models of the sub resources list
List[ResourceModel]Return the sub resources as a list
ListReturn the sub resources as a set
SetGet the streamlit code.
strstrGet the technical information of the resource
strTechnicalInfoReturn true if the resource with the given id is in the resource list
strboolAnyintThis can be overwritten to perform custom initialization of the resource. This method is called after the init (constructor) of the resource. The values of RFields are set when this method is called.
Return true if the resource list is empty
boolReplace current resources by the resources in the dict
DictSet a parameter that will be passed to the streamlit app into the 'params' variable.
strAnySet the parameters that will be passed to the streamlit app into the 'params' variable.
dictSet the streamlit code dynamically.
strSet the streamlit code from a file path. The file will be read and the content will be set as the streamlit code. Don't use this if you have multiple files for the streamlit app. In this case, use the set_streamlit_folder method.
strSet the folder that contains the streamlit code. The folder must contain a main.py file.
strAnybool - FalseReturn the resources as a list
ListReturns the name of the class
bool - Falsebool - Falsebool - FalsestrCopy the style of the resource with the possibility to override some properties. Useful when settings the style for a task based on the resource style.
strTypingIconTypestrTypingIconColorTypingStyleAnyReturns the full name of the class
bool - Falsebool - FalsestrGet the human name of the resource
strGet the short description of the resource
strGet the typing name of the resource
strGet all the classes that inherit this class
ListReturns the list of the methods
ListReturns the module name of the class
strRetrieves the property names
typetypeListCreate a StreamlitResource from a file path. The file will be read and the content will be set as the streamlit code. Don't use this if you have multiple files for the streamlit app. In this case, use the set_streamlit_folder method.
strStreamlitResource