excel2moodle documentation

This Python program helps to create Moodle questions in less time.

The aim is to put alle the information for the questions into a spreadsheet file, and then parse it, to generate Moodle compliant XML-Files. Furthermore this program lets you create a single .xml-File with a selection of questions, that then can be imported to a Moodle-Test.

Concept

The concept is, to store the different questions into categories of similar types and difficulties of questions, for each of which, a separated sheet in the Spreadsheet document should be created.

There Should be a sheet called “Kategorien”, where an overview over the different categories is stored. This sheet stores The names and descriptions, for all categories. The name have to be the same as the actual sheet names with the questions. Furthermore the points used for grading, are set in the “Kategorien” sheet

Functionality

  • Parse multiple Choice Questions, each into one XML file

  • Parse Numeric Questions, each into one XML file

  • create single XML File from a selection of questions

class excel2moodle.LogHandler(*args, **kwargs)[source]

Bases: Handler

emit(record)[source]

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

Return type:

None

class excel2moodle.QSignaler[source]

Bases: QObject

signal
staticMetaObject = PySide6.QtCore.QMetaObject("QSignaler" inherits "QObject": Methods:   #4 type=Signal, signature=signal(QString), parameters=QString )

excel2moodle User Guide

The User Guide (table of contents below) shows gives an overview over the relevant question Types and the relevant steps on how to produce them. The How-To section on the other hand gives a step-by-step explanation from filling the spreadsheet, to importing it to moodle.

API documentation

Indices and Tables