update readme

This commit is contained in:
gowthaman 2023-06-17 23:20:00 +05:30
parent 40b64248e3
commit e08444b12b

View File

@ -1,7 +1,7 @@
JSON to CSV JSON to CSV
= =
with support for nested structures with support for nested structures (with auto schema)
Steps Steps
@ -10,10 +10,9 @@ Steps
* required `--input <dir of input json>` * required `--input <dir of input json>`
* required `--output <dir of output csvs>` * required `--output <dir of output csvs>`
* (optional) to merge all json to single csv `--single` * (optional) to merge all json to single csv `--single`
* required `--schema <path to schema.json>`
* (optional) # of records to check records for all headers `--metadata <number or records>` defaults to 1000 * (optional) # of records to check records for all headers `--metadata <number or records>` defaults to 1000
* required `--join-column <column name from first level to use as merge column>` * required `--join-column <column name from first level to use as merge column>`
* required `--name <base-name of data>` * required `--name <base-name of data>`
* example * example
* `python3 main.py --input /var/tmp/input --output /var/tmp/outputs --schema /var/tmp/schema.json --name transactions --single --metadata 1000 --join-column origin_id` * `python3 main.py --input /var/tmp/input --output /var/tmp/outputs --name transactions --single --metadata 1000 --join-column origin_id`