Skip to main content

Question Converter

Multi-format question converter for Moodle and offline exams. Turn a plain-text question file into Moodle-compatible XML, JSON, HTML, or a self-contained interactive exam page — in one command.

Version: 2.0 Author: Udaya Raj Joshi


✨ Features

  • Moodle XML Export — Ready-to-import Moodle XML for multichoice, essay, truefalse, and matching questions.
  • Interactive Exam HTML — Self-contained, proctored exam page with a timer, negative marking, one-answer locking, dark mode, and a final certificate with detailed statistics.
  • Multiple Outputs — XML, JSON, HTML, plain text, and exam HTML.
  • Reading Passages — Define a passage once, reuse it across questions. Shuffle-safe because each question carries its own copy.
  • Question Groups — Organise questions into named groups (e.g. Mathematics, Geography) which appear as headings in the HTML export.
  • Shuffling & Filtering — Randomise question order (-s) or export only selected questions (--questions 5,10..20).
  • Negative Marking & Custom Fractions — Per-question fractions such as Fraction: 100 -20, exactly as Moodle expects.
  • LaTeX Support — Markers are detected outside \( ... \), \[ ... \], $ ... $, $$ ... $$ blocks, so math content is never corrupted.

📦 Installation

Requirements

  • Python 3.6+
  • Optional: bleach for HTML sanitisation (pip install bleach)

From source

git clone https://github.com/blee-design/converter.git
cd converter
python -m pip install -e .    # optional — installs the `qconvert` command


### For Package debian
- change directory name accordingly in debian package

Metadata

Release files for question-converter 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for question-converter 2.0
File Size Uploaded Provenance Actions
question_converter-2.0.tar.gz 55.1 kB Without provenance Details for question_converter-2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for question-converter 2.0
File Interpreter ABI Platform Actions
question_converter-2.0-py3-none-any.whl Python 3 none any Details for question_converter-2.0-py3-none-any.whl

Total release size: 114.7 kB

Release files / question_converter-2.0.tar.gz

Download URL question_converter-2.0.tar.gz
Size 55.1 kB
Tags Source
SHA-256 checksum
How to use checksums
36e3c4d010ea50f700a871e89bc7411648edcd8c89b7049f851f783025bd58a1
BLAKE2b-256 checksum
How to use checksums
68a17d7f628e160bb3e70206546cc000036fe8d2d08c3a8c5782124547a720dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / question_converter-2.0-py3-none-any.whl

Download URL question_converter-2.0-py3-none-any.whl
Size 59.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5a3b3c187edb4fc5e30fc17da23fc15c9cecb10e1d6f8c4889d4c843bfcdf8a
BLAKE2b-256 checksum
How to use checksums
200fd9dc6db079ab7056137bde47699ff599c80c710f42359a98fd5bc1fab377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for question-converter 2.0

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.

Release history Release notifications | RSS feed

This release

2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page