A CLI for converting a graded Moodle quiz HTML to a vik.wiki quiz wikitext
Project description
moodle-to-vikwikiquiz
📖 About
A program for converting a graded Moodle quiz saved as an HTML file to a vik.viki quiz wikitext.
📋 Features
- Imports multiple HTML files at once
- Supports single and multiple choice questions
- Creates placeholders for illustrations
- Asks for correct answers if it can't be determined from a graded question
- Deduplicates questions with the same text
📥 Installation
- Install Homebrew
- Run the following command in the terminal:
brew install gy-mate/moodle-to-vikwikiquiz/moodle-to-vikwikiquiz
🧑💻 Usage
moodle-to-vikwikiquiz [--verbose|-v] [[--grading|-g] grading_method] [[--output|-o] destination_file] source_directory parent_article title
Parameters:
grading_method
:+
or-
. See https://vik.wiki/wiki/Segítség:Kvíz#Pontozás for further info.destination_file
: The name of the file where the wikitext quiz should be exported to. Use.txt
as the extension.source_directory
: The directory where the Moodle quiz HTML files are located. The review page of the quizzes should be downloaded.parent_article
: The article name of the course on vik.wiki.title
: How the quiz should be named on vik.wiki. This usually is in the following form:[course name] kvíz – [exam name]
.
Example:
- Convert all Elektronika alapjai Moodle quizzes downloaded to
~/Downloads/downloaded_ELA_quizzes
:
moodle-to-vikwikiquiz --grading - ~/Downloads/downloaded_ELA_quizzes "Elektronika alapjai" "Elektronika alapjai kvíz – vizsga"
Always check the output before uploading it to vik.wiki. Upload all images and add their filenames to the quiz manually on vik.wiki.
📜 License
This project is licensed under the GNU General Public License v3.0. See the license file (or the GPL-3.0 license tab on GitHub) for its full text.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for moodle_to_vikwikiquiz-1.0.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2380898358a5d69cb231cdc5d3179dcacd9d6ed07470abcae40ff123e436b20 |
|
MD5 | 92e97a5a5ab372a07cc11ed41faa0385 |
|
BLAKE2b-256 | 99156651b1dccbbdadd8e7a112cf6a092e9be1b1295cff398dd26c587e532e87 |
Close
Hashes for moodle_to_vikwikiquiz-1.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e12a632331cfe434bc845774985d0f7ddd50b3ad4c6749990140fb51c86d6a13 |
|
MD5 | d4af3044b25af558e365c4744bba915e |
|
BLAKE2b-256 | 37b2bf34ad672ae0e6a3a4d9a8ffdf31ecdd39c0dd15786733a383fb02ed3d8d |