This script processes a given csv file with appropiate columns.
For each row in the csv, generate a CHIP-0007 compatible json file, makes a hash of the json file, adds a Sha256 Json Hash header to the given and appends it the original row(row from which json was created) under this header, outputs a new csv file with name original-filename.output.csv. Does not modify input csv file.
An appropiate/valid csv file. The following csv columns are required:
- Team Names
- Series Number
- File Name
- NFT Name
- Description
- Gender
-
Attributes
format: "key: value; key-2: value-2; key-3: value-3"
- A modified csv file with a new Sha256 Json Hash header column
- Json file of each csv row
csv format: input-filename.output.csv
json format: nft-name.json
All inside a folder named output
Before proceeding, makes sure python is installed in your machine.
- Download process-csv.zip
- Extract download to C:\process-csv or your desired location
- Done :)
Copy the csv file to process to the extraction directory.
run the command below
python main.py your-csv-file.csv
or
python3 main.py your-csv-file.csv
Output files should be in a folder named output