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

25 lines
680 B
Python
Raw Normal View History

2023-01-11 17:09:59 -07:00
#!/usr/bin/env python
from py.lib.data.converter import convert
2023-02-21 18:44:27 -07:00
from py.lib.scwrypts import execute
from py.lib.scwrypts.exceptions import ImportedExecutableError
2023-01-11 17:09:59 -07:00
if __name__ != '__main__':
2023-02-21 18:44:27 -07:00
raise ImportedExecutableError()
2023-01-11 17:09:59 -07:00
2023-02-21 18:44:27 -07:00
#####################################################################
2023-01-11 17:09:59 -07:00
2023-02-21 18:44:27 -07:00
def main(_args, stream):
return convert(
input_stream = stream.input,
input_type = 'yaml',
output_stream = stream.output,
output_type = 'csv',
)
2023-01-11 17:09:59 -07:00
2023-02-21 18:44:27 -07:00
#####################################################################
execute(main,
description = 'convert yaml into csv',
parse_args = [],
2023-01-11 17:09:59 -07:00
)