There is a newer version of the record available.

Published April 1, 2022 | Version 1.1.0
Software Open

PySourceCloze: Source Files Decorator and Source Codes Clozes Generator for Moodle Quizzes

Authors/Creators

  • 1. ESTIA

Description

PySourceCloze helps you generate cloze questions in an easy, fast, and efficient way from source files for programming quizzes and exams on Moodle learning management system. Moodle clozes customized by PySourceCloze are easy to fill and easy to read for source code filling. To do so, PySourceCloze uses a simple source code decoration syntax that helps you decorate your source code manually or automatically from your custom lexicons and get the HTML code or XML file needed by Moodle.

Source cloze quiz preview: pysourcecloze_preview.png

PySourceCloze overview: pysourcecloze_overview.png

Optimize correction time; offer more training sessions to your students beyond multiple choice questions!

PREREQUISITES

  • Python ≥ 3.7 is required (downloads):

    • PySourceCloze has been tested on Python versions 3.7, 3.8, 3.9, and 3.10.
  • Editing access to Moodle 3 or Moodle 4:

    • PySourceCloze has been tested on Moodle versions 3.1 LTS, 3.5 LTS, 3.6, 3.9 LTS, and 4.0 beta.
  • Firefox or Safe Exam Browser:

    • PySourceCloze has been tested on Firefox 78 and 98.

INSTALLATION

If you move or link 'pysoclz.py', set the environment variable PYSOCLZ_INSTALL_DIR to the installation directory.

Dependencies

pip3 install filetype

QUICK START

Seven steps are detailed on the Quick Start Guide (doc/quick_start_guide.md) to create your first source cloze quiz.

HELP

Print general help page: python3 pysoclz.py -h

Print a command's help page: python3 pysoclz.py <command> -h

LICENSE

Source code is released under the GPL v3.0 license.

Documentation is released under the CC BY-SA 4.0 license.

VERSIONS HISTORY

  • 1.1.0 (2022-05-13): Latest version
    • New option to embed questions' images as base64 code in HTML code
  • 1.0.1 (2022-04-16)
    • Fixing one bug with output file path for init command
    • Getting compatible with Windows paths
  • 1.0.0 (2022-04-01): Initial release
    • Commands: enclose, fill, clean, sum, generate, init, updates
    • Instructions' languages: EN, FR
    • Samples: C, PHP-HTML, SQL

Files

pysourcecloze-1.1.0.zip

Files (1.7 MB)

Name Size Download all
md5:ef16b370300560480fc25b8f3f9199e6
822.8 kB Download
md5:3d093d6f6f8cdb5a89cb31206bca66b1
860.8 kB Preview Download

Additional details

Related works