Description
Use case: I need to only onboard text files from a folder and I am using the import.local.file_bundle module.
When using the module without config options, some undesired DS_store file gets onboarded, but I am only interested in .txt files.
I did a kiara operation explain import.local.file_bundle -m
in the terminal to see if config options are available for this module, and found "include_file_types" and "exclude_file_types" that seem available:
╭─ Operation: import.local.file_bundle ───────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Documentation Import a folder (file_bundle) from the local filesystem. │
│ │
│ Inputs │
│ field name type description Required Default │
│ ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ path string The local path of the folder to import. yes -- no default -- │
│ │
│ │
│ Outputs │
│ field name type description │
│ ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ file_bundle file_bundle The imported file bundle. │
│ │
│ │
│ Module type import.local.file_bundle │
│ │
│ Module config { │
│ "constants": {}, │
│ "defaults": {}, │
│ "include_file_types": null, │
│ "exclude_file_types": null │
│ } │
│ │
│ Module metadata Import a folder (file_bundle) from the local filesystem. │
│ │
│ Author(s) │
│ Markus Binsteiner [email protected] │
│ │
│ Context │
│ Labels package: kiara │
│ References source_repo: https://github.com/DHARPA-Project/kiara │
│ documentation: https://dharpa.org/kiara_documentation/ │
│ │
│ Python class │
│ python_class_name ImportLocalFileBundleModule │
│ python_module_name kiara.modules.included_core_modules.filesystem │
│ full_name kiara.modules.included_core_modules.filesystem.ImportLocalFileBundleModu… │
│ │
│ │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
To learn more about what kind of inputs are expected here, I did kiara module explain import.local.file_bundle
, which resulted in the following info:
╭─ Module type: import.local.file_bundle ─────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Documentation │
│ Import a folder (file_bundle) from the local filesystem. │
│ │
│ Author(s) │
│ Markus Binsteiner [email protected] │
│ │
│ Context │
│ Labels package: kiara │
│ References source_repo: https://github.com/DHARPA-Project/kiara │
│ documentation: https://dharpa.org/kiara_documentation/ │
│ │
│ Module config schema │
│ Field Type Description Required Default │
│ ───────────────────────────────────────────────────────────────────────────────────────────────── │
│ constants object Value constants for this module. no │
│ │
│ defaults object Value defaults for this module. no │
│ │
│ exclude_file_types -- check source -- File types to include. no │
│ │
│ include_file_types -- check source -- File types to include. no │
│ │
│ Python class │
│ python_class_name ImportLocalFileBundleModule │
│ python_module_name kiara.modules.included_core_modules.filesystem │
│ full_name kiara.modules.included_core_modules.filesystem.ImportLocalFileBundleModule │
│ │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
The info provided "check source" to learn about how I should format the input and what inputs are accepted refers to the source repo info indicated: source_repo: https://github.com/DHARPA-Project/kiara.
@makkus my question is the following, how do I find easily the import.local.file_bundle
within https://github.com/DHARPA-Project/kiara to be able to check what input I can use?
Activity