Skip to main content

A tool to create and edit quizzes, for LabQuiz and more

Project description

PyPI version Python versions License

Visual editor for creating, managing, and exporting LabQuiz question banks.

quiz_editor is a Streamlit-based application designed to help instructors build structured quiz databases for use with LabQuiz — without manually editing YAML files. quiz_editor can also be useful outside ob LabQuiz as a general quiz-editor with export capabilities.

It supports question authoring, template variable simulation, encryption, tagging, and export to multiple formats.


Why quiz_editor?

While LabQuiz uses YAML files for defining quizzes, editing them manually can become tedious for large question banks.

quiz_editor provides:

  • A visual interface for question creation
  • Support for multiple question types
  • Built-in encryption & encoding
  • Export to multiple formats (subset of questions, HTML, AMC-$\LaTeX$)
  • Tagging, Categories and filtering system
  • Template variable simulators

Installation

From PyPI

pip install quiz-editor

From source

pip install git+https://github.com/jfbercher/quiz_editor.git

Launch

An entry-point is provided that allows to simply use

quiz_editor

Or use the hosted version:

👉 https://jfb-quizeditor.streamlit.app/


quiz_editor

quiz_editor -- editing a question, with category, tags, choice of question type (multiple choice, numeric, etc.)

quiz_editor

quiz_editor -- editing a proposition -- correct or incorrect, hint (tip), answer (displayed during correction), bonus, penalty, etc.

quiz_editor_exports

quiz_editor -- Export examples (AMC-$\LaTeX$, interactive HTML, HTML-exam)

Centered image

quiz_editor -- YAML Export with normal/encoded/encrypted options and question-only file

---

Supported Question Types

  • mcq — Multiple choice
  • numeric — Numerical with tolerance
  • mcq-template — Parameterized MCQ
  • numeric-template — Parameterized numeric

Template Variable Simulation

For template questions, quiz_editor allows you to define variable generators (“simulators”) directly in the interface.

Each variable can specify:

  • type (int, float, etc.)
  • structure (scalar, vector, …)
  • engine (e.g., NumPy RNG)
  • call (generation function, e.g. integers(0,10,size=1))

This enables:

  • Dynamic generation of values
  • Testing template behavior before export
  • Automatic inclusion of variable definitions in the YAML file
  • Consistent export to LabQuiz, HTML, or AMC formats

These simulators make template questions robust and reusable across sessions.


Features

Question Management

  • Create / edit / delete questions
  • Add categories and tags
  • Define logical constraints (XOR, IMPLY, SAME, IMPLYFALSE)
  • Configure bonuses and penalties
  • Define tolerances for numerical answers
  • Template variables simulation: define variable generators directly in the interface, which enable dynamic generation of values in LabQuiz and in HTML, or AMC exports.

Export Options

quiz_editor can export to:

  • ✅ YAML (LabQuiz format)
  • 🔐 Encrypted version
  • 🔎 Base64-encoded version
  • 🌍 Interactive HTML (training mode)
  • 📝 HTML exam version (Google Sheet connected)
  • 📄 AMC–LaTeX format (for paper exams)

This allows reuse of the same question bank across:

  • Notebook-based quizzes
  • Web-based self-assessment
  • Secure online exams
  • Paper multiple-choice exams

Integration with LabQuiz

Typical workflow:

  1. Create questions in quiz_editor
  2. Export encrypted YAML
  3. Use file in:
from labquiz import QuizLab
quiz = QuizLab(URL, "questions.yaml")

Part of the LabQuiz ``Ecosystem''

  • labquiz — Notebook quiz engine
  • quiz_editor — Question bank editor
  • quiz_dash — Monitoring & correction dashboard

📜 License

GNU GPL-3.0 license


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quiz_editor-0.8.12.tar.gz (85.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quiz_editor-0.8.12-py3-none-any.whl (114.9 kB view details)

Uploaded Python 3

File details

Details for the file quiz_editor-0.8.12.tar.gz.

File metadata

  • Download URL: quiz_editor-0.8.12.tar.gz
  • Upload date:
  • Size: 85.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for quiz_editor-0.8.12.tar.gz
Algorithm Hash digest
SHA256 798a5588f6a2da2e4dde0ad6dcfc69b6433d0bdf3f87cb45932a8224c5909188
MD5 841541aabe22569f1a9db8d7d646e357
BLAKE2b-256 91d0848a28a2aaccb69ec5c2f7de73893847a6c4b2e9c5e9b091b6c283adc518

See more details on using hashes here.

File details

Details for the file quiz_editor-0.8.12-py3-none-any.whl.

File metadata

  • Download URL: quiz_editor-0.8.12-py3-none-any.whl
  • Upload date:
  • Size: 114.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for quiz_editor-0.8.12-py3-none-any.whl
Algorithm Hash digest
SHA256 761373e53db6c196ad26b14a57768142082ac8364e994011c74980c869efef81
MD5 fb3b0aef7312ec49760dbd54b2d50b97
BLAKE2b-256 0cc3e4020c6a37b9f1f21ad1469f6a9ea379e1e603910647f718d6e2a5b92683

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page