Generate YAML files from rows inside a CSV
- OSX
- Python
- Create a
data.csv
file with all the data you wish to add to your yaml files. - Run
python generate.py
in your terminal. .yaml
files will be generated and saved inside a/yaml
folder.
- A sample
data.csv
file has been included for testing. - Make sure the first row contains the column headings as this will be used in your yaml.
- The last cell in your
.csv
row will be used as the filename and also be included in the yaml data.
Credits go to hfionte for the original script.