Skip to main content

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 of 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/labquiz.git#subdirectory=quiz_editor

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

quiz_editor -- example of template usage with potentially external variables, including an editor preview based on automatically generated variables.

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


Metadata

Release files for quiz-editor 1.2.8

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

Source distribution (sdist)

Source distribution for quiz-editor 1.2.8
File Size Uploaded Provenance Actions
quiz_editor-1.2.8.tar.gz 165.6 kB Without provenance Details for quiz_editor-1.2.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quiz-editor 1.2.8
File Interpreter ABI Platform Actions
quiz_editor-1.2.8-py3-none-any.whl Python 3 none any Details for quiz_editor-1.2.8-py3-none-any.whl

Total release size: 359.1 kB

Release files / quiz_editor-1.2.8.tar.gz

Download URL quiz_editor-1.2.8.tar.gz
Size 165.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9f9369bfbf3a5fa8469cb1c18458cbb3b3b2289daded5f55b28168ff085ee44e
BLAKE2b-256 checksum
How to use checksums
84e8c0452fdab1b4871195cb2a131e92757371e9c9f1261f23e0beed02c6aefb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release files / quiz_editor-1.2.8-py3-none-any.whl

Download URL quiz_editor-1.2.8-py3-none-any.whl
Size 193.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd275f6a95d61baa0f49ff1b7adeeb6e190adda7a5e948da7b809b9d59544364
BLAKE2b-256 checksum
How to use checksums
772f8e83e0ee24fd42ef81ea9f163cc933c6fe1ea598435b1fc870fa2d51912e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Security for quiz-editor 1.2.8

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.

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