Skip to content
Generate a volume of questions based on a template
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
qgen
tests
xml_samples
.gitignore
Functions.py
LICENSE
Makefile
Polynomial.py
PolynomialDistractor.py
README.md
requirements.txt
setup.py

README.md

QGenPY

A Python package for generating a volume of questions based on a template. Source for Web app located at https://github.com/JA-VON/QGen-UI

Installation

QGen is available through PyPi and be installed using pip

pip install qgen

Usage

QGen needs either a yaml file or a python dictionary describing the configuration of question to be able to generate questions.

Open up a python console and then import qgen and use as follows:

YAML file

import qgen
qgen.build_moodle_xml('/path/to/yaml/file/test.yml', number_of_questions=50)

For a description of what the YAML file should look like, please see the Getting Started guide in the Wiki.

Python Dictionary

import qgen
qgen.build_moodle_xml(dict_value=configuation_as_dictionary, number_of_questions=50)
You can’t perform that action at this time.