Operation import.table.from.local_file_path in plugin tabular v0.5.0
Import a table from a file on the local filesystem.
Author(s) | Markus Binsteiner (markus@frkl.io) |
Operation type | pipeline |
Inputs
Name | Description | Type | Required? | Default |
---|---|---|---|---|
path | The local path to the file (absolute, or relative to current directory. | string | true | null |
first_row_is_header | Whether the first row of a (csv) file is a header row. If not provided, kiara will try to auto-determine. Ignored if not a csv file. | boolean | false | null |
Outputs
Name | Description | Type | Required? | Default |
---|---|---|---|---|
imported_file | The loaded files. | file | true | null |
table | The result value (of type 'table'). | table | true | null |
Module configuration
Module pipeline
With configuration options:
constants | {} |
context | {} |
defaults | {} |
doc | {
"description": "Import a table from a file on the local filesystem.",
"doc": null
} |
input_aliases | {
"import_file.path": "path",
"create_table_from_file.first_row_is_header": "first_row_is_header"
} |
output_aliases | {
"import_file.file": "imported_file",
"create_table_from_file.table": "table"
} |
pipeline_name | "import.table.from.local_file_path" |
steps | [
{
"module_type": "import.local.file",
"module_config": {},
"is_resolved": false,
"step_id": "import_file",
"manifest_src": {
"module_type": "import.local.file",
"module_config": {},
"is_resolved": false
},
"input_links": {},
"module_details": {
"python_class_name": "ImportLocalFileModule",
"python_module_name": "kiara.modules.included_core_modules.filesystem",
"full_name": "kiara.modules.included_core_modules.filesystem.ImportLocalFileModule",
"module_config": {
"constants": {},
"defaults": {}
},
"inputs_schema": {
"path": {
"type": "string",
"type_config": {},
"default": null,
"optional": false,
"is_constant": false,
"doc": {
"description": "The local path to the file (absolute, or relative to current directory.",
"doc": null
}
}
},
"outputs_schema": {
"file": {
"type": "file",
"type_config": {},
"default": null,
"optional": false,
"is_constant": false,
"doc": {
"description": "The loaded files.",
"doc": null
}
}
}
},
"doc": {
"description": "Import a file from the local filesystem.",
"doc": null
}
},
{
"module_type": "create.table",
"module_config": {
"source_type": "file",
"target_type": "table"
},
"is_resolved": false,
"step_id": "create_table_from_file",
"manifest_src": {
"module_type": "create.table.from.file",
"module_config": {},
"is_resolved": false
},
"input_links": {
"file": [
{
"step_id": "import_file",
"value_name": "file",
"sub_value": null
}
]
},
"module_details": {
"python_class_name": "CreateTableModule",
"python_module_name": "kiara_plugin.tabular.modules.table",
"full_name": "kiara_plugin.tabular.modules.table.CreateTableModule",
"module_config": {
"constants": {},
"defaults": {},
"source_type": "file",
"target_type": "table",
"ignore_errors": false
},
"inputs_schema": {
"file": {
"type": "file",
"type_config": {},
"default": null,
"optional": false,
"is_constant": false,
"doc": {
"description": "The source value (of type 'file').",
"doc": null
}
},
"first_row_is_header": {
"type": "boolean",
"type_config": {},
"default": null,
"optional": true,
"is_constant": false,
"doc": {
"description": "Whether the first row of a (csv) file is a header row. If not provided, kiara will try to auto-determine. Ignored if not a csv file.",
"doc": null
}
}
},
"outputs_schema": {
"table": {
"type": "table",
"type_config": {},
"default": null,
"optional": false,
"is_constant": false,
"doc": {
"description": "The result value (of type 'table').",
"doc": null
}
}
}
},
"doc": {
"description": "Creates a 'table' instance from a source value of type 'file'.",
"doc": null
}
}
] |