You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be a way to import existing CSV files.
Design
data.csv plugin should be a part of the fabric binary.
Specification
Configuration options:
delimiter -- a one-character string used to separate fields. It defaults to ,
API interface:
required path string attribute that accepts a path to a file on a local filesystem.
Behavior
Using the provided path value, the plugin reads the CSV file and returns a JSON object with the data.
The plugin expects the CSV file to have a header, so the first row is always treated as a header. The CSV file is parsed using the configured delimiter.
The plugin produces a list of dictionaries -- one dictionary per row, with fields corresponding to the column names.
Background
There should be a way to import existing CSV files.
Design
data.csv
plugin should be a part of thefabric
binary.Specification
delimiter
-- a one-character string used to separate fields. It defaults to,
path
string attribute that accepts a path to a file on a local filesystem.Behavior
Using the provided
path
value, the plugin reads the CSV file and returns a JSON object with the data.The plugin expects the CSV file to have a header, so the first row is always treated as a header. The CSV file is parsed using the configured delimiter.
The plugin produces a list of dictionaries -- one dictionary per row, with fields corresponding to the column names.
For example, for the CSV file
the plugin will return
Deliverables
data.csv
pluginThe text was updated successfully, but these errors were encountered: