convert-csv-to-yml.py 246 B

12345678910
  1. # this temporary script converts .csv to .yml
  2. # can delete when documentation migration is done
  3. import sys,csv
  4. r = csv.reader(open(sys.argv[1]))
  5. keys = next(r)
  6. for row in r:
  7. print('-')
  8. for k, v in zip(keys, row):
  9. print(f''' {k}: {v}''')