CreateFiles
Overview
This script reads a dbdata.json
file that contains schema information for various data groups and generates individual JSON files for each group in the db
directory. Each JSON file is named according to its group and is initialized as an empty array.
Prerequisites
- Python 3.8 or higher is recommended. You can download the latest version of Python from the official Python website.
Script Details
The script performs the following tasks:
- Reads the
dbdata.json
file to get schema information. - Creates a separate JSON file for each data group defined in the schema.
- Initializes each file with an empty array.
Usage
- Run the Script:
Open a terminal and run the script:
python ./scripts/createfiles.py
Table of Contents