Python scripts to generate JSON document of a questionnaire, to be added to a Mongo database.
questionnaire_generator.py
's main function is
questionnaire_generator
which takes the following parameters:
csv_filename
:string
name for a.csv
file which includes all relevant text and scoring for a questionnaire. SeeSF-12.csv
for an example of proper formatting. Generated from this Google Sheet.title
:string
with the title of the questionnaire. Will also be used to name the.json
output file.author
:string
with the authors name.standard_frequency
:string
with the survey's intended standard frequency. ex: weekly, daily, monthly, etc.description
:string
with a description of the questionnaire and/or its purpose.
see SF-12questionnaire.json
for an example output