genmq
A Moodle quiz generator using LaTeX and the moodle.sty package with jinja2 templates
Generates Individualized Moodle Quizzes based on a LaTeX Template
Author: Colin Caprani, colin.caprani@monash.edu
Overview
genmq is a python package that performs mail-merge like functionality to generate a Moodle quiz XML file for bulk upload. It uses a template latex file based on the moodle.sty package, and populates placeholder variables with entries from a prepared csv file to generate many variants of the template question. It can include the answers, precision, and feedback; all as described in the documentation for the moodle.sty package.
genmq can also split larger Moodle XML files into multiple files to facilitate uploading when there are file size limits.
Installation
genmq installs as a command into your system.
Using pip
pip install genmq
For development
Clone or download this repository to a local directory. Open a terminal in that directory (where this README will be found) and run:
pip install -e .
Typical Usage
For generating quizzes:
genmq -t [template].tex -c [database].csv
For splitting an existing large XML file:
genmq -s [moodle_quiz].xml
To see all arguments, run genmq --help.
Metadata
Release files for genmq 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genmq-0.6.2.tar.gz | 19.5 kB | Without provenance | Details for genmq-0.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genmq-0.6.2-py3-none-any.whl | Python 3 | none | any | Details for genmq-0.6.2-py3-none-any.whl |
Total release size: 39.2 kB
Release files / genmq-0.6.2.tar.gz
| Download URL | genmq-0.6.2.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0857f8f31daebb23d4df7cb8196a4cf1666bb32a17fba7f9002725aa92789dcf
|
|
BLAKE2b-256 checksum How to use checksums |
196a619a754684c3b446aec33b3ed646ec60871616ac13188cb80be7cbcc5e0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / genmq-0.6.2-py3-none-any.whl
| Download URL | genmq-0.6.2-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe4005ed1d8f5fc7203461fab6acc7502842bdef651190ed8c66e5ea941604ff
|
|
BLAKE2b-256 checksum How to use checksums |
8db6fdbd72896fd143a8f8fa22cb6bdfb438feb4cf3007b28d0c4e00030c8cc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for genmq 0.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.