tabsdata.SourcePlugin#
- class SourcePlugin[source]#
Bases:
ABC
Abstract class for input plugins.
- trigger_input(working_dir
str) -> Union[str, Tuple[str, …], List[str]] Trigger the import of the data. The method will receive a folder where it must store the data as parquet files, and return a list of the paths of the files created. This files will then be loaded and mapped to the dataset function in positional order, so if you want file.parquet to be the first argument of the dataset function, you must return it first. If you want a parameter to receive multiple files, return a list of the paths. For example, you would give the following return to provide a first argument with a single file and a second argument with two files: return [“file1.parquet”, [“file2.parquet”, “file3.parquet”]]
- __init__()#
Methods
__init__
()trigger_input
(working_dir)Trigger the import of the data. This must be implemented in any class that
Attributes
initial_values
Return a dictionary with the initial values to be stored after execution of the plugin.