TabsdataFunction
class TabsdataFunction(
func: Callable,
name: str | None,
input: dict | Input | SourcePlugin = None,
output: dict | Output | DestinationPlugin = None,
trigger_by: str | List[str] | None = None,
)
Categories: function
Class to decorate a function with metadata and methods for use in a Tabsdata environment.
Attributes:
Initializes the TabsDataFunction with the given function, input, output and trigger.
Parameters
funcCallableThe function to decorate.
namestrThe name with which the function will be registered. If None, the original_function name will be used.
inputdict | Input | SourcePlugin, optionalThe data to be used when running the function. Can be a dictionary or an instance of Input or SourcePlugin.
outputdict | Output | DestinationPlugin, optionalThe location where the function results will be saved when run.
trigger_bystr | List[str], optionalThe trigger(s) that will cause the function to execute. It can be a table in the system, a list of tables or None (in which case it will be inferred from the dependencies).
Raises
FunctionConfigurationError InputConfigurationError OutputConfigurationError FormatConfigurationError
Properties
inputInput | SourcePlugin | NoneThe data to be used when running the function.
namestrThe name with which the function will be registered.
original_filestr: The file where the original function is defined in the user's computer
original_folderstrThe folder where the original function is defined, as a local path in the user's computer.
original_functionCallableThe original function that was decorated, without any behaviour modifications.
outputOutput | DestinationPlugin | Nonedict: The location where the function results will be saved when run.
trigger_byList[str] | NoneList[str]: The trigger(s) that will cause the function to execute. It must be another table or tables in the system.