Class - builtin.xsv.xsv.iov2.input.XsvInput
¶
JSON Schema¶
XsvInput¶
Read a CSV/TSV file using csv.reader and provide the data to the remaining steps of the job. In Mitto 2.9.4 and earlier, any keyword args not used to construct the
Example usage: {
"input": {
"use": "xsv.iov2#XsvInput",
"source": "/var/mitto/data/test_csv.csv",
"encoding": "ASCII",
"delimiter": ",",
"includes_header": true
},
"output": {}
}
{
"input": {
"use": "xsv.iov2#XsvInput",
"source": "/var/mitto/data/test_csv.csv",
"encoding": "ASCII",
"delimiter": ",",
"includes_header": true
"csv_kwargs": {
"foo": 1,
}
},
"output": {}
}
|
|||
type |
object |
||
properties |
|||
|
Source |
||
|
|||
type |
string |
||
format |
path |
||
|
Encoding |
||
|
|||
type |
string |
||
examples |
ASCII |
||
utf-8 |
|||
ISO-8859-9 |
|||
|
Noneify |
||
|
|||
examples |
(‘’, ‘#Error’) |
||
[‘none’, ‘NONE’, ‘None’] |
|||
default |
True |
||
anyOf |
type |
boolean |
|
type |
array |
||
items |
|||
type |
array |
||
items |
|||
|
Includes Header |
||
|
|||
type |
boolean |
||
examples |
true |
||
false |
|||
default |
True |
||
|
Skip |
||
Skip x number of lines. |
|||
type |
integer |
||
minimum |
0 |
||
default |
0 |
||
|
Csv Kwargs |
||
Key/value pairs which will be passed as kwargs to csv.reader(). |
|||
type |
object |
||
default |
|||
additionalProperties |
False |