excel2moodle package
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
Subpackages
- excel2moodle.core package
- Submodules
- excel2moodle.core.category module
- excel2moodle.core.dataStructure module
QuestionDB
QuestionDB.appendQElements()
QuestionDB.appendQuestions()
QuestionDB.asyncInitAllCategories()
QuestionDB.initAllCategories()
QuestionDB.initCategory()
QuestionDB.mcParser
QuestionDB.nfParser
QuestionDB.nfmParser
QuestionDB.parseAllQuestions()
QuestionDB.parseCategoryQuestions()
QuestionDB.parseQuestion()
QuestionDB.readCategoriesMetadata()
QuestionDB.signals
QuestionDB.validator
QuestionDBSignals
processSheet()
- excel2moodle.core.etHelpers module
- excel2moodle.core.exceptions module
- excel2moodle.core.globals module
- excel2moodle.core.numericMultiQ module
- excel2moodle.core.parser module
QuestionParser
QuestionParser.appendToTmpEle()
QuestionParser.formatBulletList()
QuestionParser.getFeedBEle()
QuestionParser.getNumericAnsElement()
QuestionParser.getTolerancePercent()
QuestionParser.hasPicture()
QuestionParser.parse()
QuestionParser.setAnswers()
QuestionParser.setBPoints()
QuestionParser.setMainText()
QuestionParser.setup()
- excel2moodle.core.question module
- excel2moodle.core.questionValidator module
- excel2moodle.core.questionWriter module
- excel2moodle.core.stringHelpers module
- excel2moodle.extra package
- excel2moodle.ui package
- Submodules
- excel2moodle.ui.appUi module
EqCheckerWindow
MainWindow
MainWindow.closeEvent()
MainWindow.connectEvents()
MainWindow.onButGenTest()
MainWindow.onButSpreadsheet()
MainWindow.onSelectionChanged()
MainWindow.onSheetPathChanged()
MainWindow.openAboutDlg()
MainWindow.openEqCheckerDlg()
MainWindow.openPreviewQuestionDlg()
MainWindow.parseSpreadsheetAll()
MainWindow.setIncludeCategoriesSetting()
MainWindow.setQVariantDefault()
MainWindow.setStatus()
MainWindow.staticMetaObject
MainWindow.toggleQuestionSelectionState()
MainWindow.treeRefreshCategory()
MainWindow.updateLog()
ParseAllThread
- excel2moodle.ui.dialogs module
- excel2moodle.ui.questionPreviewDialog module
- excel2moodle.ui.settings module
Settings
SettingsKey
SettingsKey.CATEGORIESSHEET
SettingsKey.INCLUDEINCATS
SettingsKey.LOGFILE
SettingsKey.LOGLEVEL
SettingsKey.PARSERNF_TOLERANCE
SettingsKey.PICTUREFOLDER
SettingsKey.PICTURESUBFOLDER
SettingsKey.POINTS
SettingsKey.QUESTIONVARIANT
SettingsKey.SPREADSHEETFOLDER
SettingsKey.VERSION
SettingsKey.default
SettingsKey.full
SettingsKey.place
SettingsKey.typ()
- excel2moodle.ui.treewidget module
- excel2moodle.ui.variantDialog module
- excel2moodle.ui.windowEquationChecker module
- excel2moodle.ui.windowMain module