|
9 | 9 | from collections import OrderedDict
|
10 | 10 |
|
11 | 11 |
|
12 |
| -def create_template(schema, output_name='releases', output_format='all', main_sheet_name='main', flatten=False, rollup=False, root_id='ocid', use_titles=False, **_): |
| 12 | +def create_template(schema, output_name='template', output_format='all', main_sheet_name='main', flatten=False, rollup=False, root_id='ocid', use_titles=False, **_): |
13 | 13 | """
|
14 | 14 | Creates template file(s) from given inputs
|
15 | 15 | This function is built to deal with commandline input and arguments
|
@@ -38,7 +38,7 @@ def spreadsheet_output(spreadsheet_output_class, name):
|
38 | 38 | raise Exception('The requested format is not available')
|
39 | 39 |
|
40 | 40 |
|
41 |
| -def flatten(input_name, schema=None, output_name='releases', output_format='all', main_sheet_name='main', root_list_path='main', rollup=False, root_id='ocid', use_titles=False, **_): |
| 41 | +def flatten(input_name, schema=None, output_name='flattened', output_format='all', main_sheet_name='main', root_list_path='main', rollup=False, root_id='ocid', use_titles=False, **_): |
42 | 42 | """
|
43 | 43 | Flatten a nested structure (JSON) to a flat structure (spreadsheet - csv or xlsx).
|
44 | 44 |
|
@@ -100,7 +100,7 @@ def decimal_default(o):
|
100 | 100 | raise TypeError(repr(o) + " is not JSON serializable")
|
101 | 101 |
|
102 | 102 |
|
103 |
| -def unflatten(input_name, base_json=None, input_format=None, output_name='releases.json', |
| 103 | +def unflatten(input_name, base_json=None, input_format=None, output_name='unflattened.json', |
104 | 104 | root_list_path='main', encoding='utf8', timezone_name='UTC',
|
105 | 105 | root_id='ocid', schema='', convert_titles=False, cell_source_map=None,
|
106 | 106 | heading_source_map=None, **_):
|
|
0 commit comments