Skip to content

PlatonaM/lopco-fix-csv-columns-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lopco-fix-csv-columns-worker

Removes or adds columns, based on a reference header, to a CSV file. Alternatively, an error can be generated to cancel a job.

Configuration

delimiter: Delimiter used in the CSV file.

reference_header: Serves as a reference for validation.

abort_on_unknown: Set to 0 or 1 to control if a job is aborted if an unknown column is found .

abort_on_missing: Set to 0 or 1 to control if a job is aborted if a column is missing.

Inputs

Type: single

source_csv: CSV file to check.

Outputs

Type: single

output_file: Input CSV file.

Description

{
    "name": "Fix CSV Columns",
    "image": "platonam/lopco-fix-csv-columns-worker:latest",
    "data_cache_path": "/data_cache",
    "description": "Remove unknown columns or add missing columns.",
    "configs": {
        "delimiter": null,
        "reference_header": null,
        "abort_on_unknown": "0",
        "abort_on_missing": "0"
    },
    "input": {
        "type": "single",
        "fields": [
            {
                "name": "source_csv",
                "media_type": "text/csv",
                "is_file": true
            }
        ]
    },
    "output": {
        "type": "single",
        "fields": [
            {
                "name": "output_file",
                "media_type": "text/csv",
                "is_file": true
            }
        ]
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages