keboola / processor-create-manifest

MIT License
0 stars 0 forks source link

processor-create-manifest

Takes all CSV files in /data/in/tables and creates or updates the manifest file move all files to /data/out/tables.

Adds or updates these manifest attributes

Development

Clone this repository and init the workspace with following command:

git clone https://github.com/keboola/processor-create-manifest
cd processor-create-manifest
docker-compose build
docker-compose run dev composer install

Run the test suite using this command:

docker-compose run dev composer ci

Integration

Usage

It supports optional parameters:

Using columns

Populating the columns attribute (manually or by using columns_from option) will make the imports consider the CSV file(s) headless. The first row of the CSV file(s) will be imported to the table data as well. If the first row contains headers we recommend using keboola.processor-skip-lines to remove the first line of the CSV file(s).

Sample configurations

Default parameters:

{  
    "definition": {
        "component": "keboola.processor-create-manifest"
    }
}

Add column names:

{
    "definition": {
        "component": "keboola.processor-create-manifest"
    },
    "parameters": {
        "columns": ["id", "amount"]
    }
}

Set delimiter and enclosure:

{
    "definition": {
        "component": "keboola.processor-create-manifest"
    },
    "parameters": {
        "delimiter": "\t",
        "enclosure": "'"
    }
}

License

MIT licensed, see LICENSE file.