scwrypts/py/data/convert/yaml-to-csv.py

21 lines
566 B
Python
Executable File

#!/usr/bin/env python
from scwrypts import execute
#####################################################################
from scwrypts.data import convert
description = 'convert yaml into csv'
parse_args = []
def main(_args, stream):
return convert(
input_stream = stream.input,
input_type = 'yaml',
output_stream = stream.output,
output_type = 'csv',
)
#####################################################################
if __name__ == '__main__':
execute(main, description, parse_args)