Skip to main content

quizmd

quizmd is a terminal quiz app for:

  • Markdown MCQs (single/multiple)
  • Imposter quizzes (spot misleading options)
  • Chaos quizzes (branch + recovery scenarios)
  • Essay quizzes (AI rubric scoring)
  • Online room types (compete/collaborate/eliminate)
  • Terminal game modes (Alien Attack)

Install

Recommended:

pip install quizmd

Update to latest:

pip install -U quizmd

From GitHub (latest repo state):

pip install "git+https://github.com/steliosot/quizmd.git"

Check install:

quizmd --version

Quick Start

Create starter files:

quizmd init

This creates:

  • hello-quiz.md (single + multiple MCQ)
  • hello-imposter.md (imposter mode)
  • hello-debug.md (debug mode)
  • hello-challenge.md (challenge mode)
  • hello-reverse.md (reverse mode)
  • hello-millionaire.md (millionaire mode)
  • hello-chaos.md (branching scenario mode)
  • hello-essay.md (essay mode)
  • QUIZ_GUIDE.md (quick commands)

Run starters:

quizmd --validate hello-quiz.md
quizmd hello-quiz.md

quizmd --validate hello-imposter.md
quizmd hello-imposter.md

quizmd --validate hello-chaos.md
quizmd hello-chaos.md

quizmd --validate hello-essay.md
export GEMINI_API_KEY="your_key_here"  # or OPENAI_API_KEY / ANTHROPIC_API_KEY
quizmd hello-essay.md

Modes (What + How to Start)

1) Classic MCQ (Local)

  • What: single/multiple-choice timed quiz.
  • Start: quizmd hello-quiz.md

2) Imposter (Local)

  • What: select correct answers and flag misleading options.
  • Start: quizmd hello-imposter.md

3) Debug (Local)

  • What: fix broken Python code with line-aware scoring.
  • Start: quizmd hello-debug.md

4) Challenge (Local)

  • What: category board + risk levels (stars scoring).
  • Start: quizmd hello-challenge.md

5) Reverse (Local)

  • What: infer code behavior/output in reverse-engineering style MCQs.
  • Start: quizmd hello-reverse.md

6) Millionaire (Local)

  • What: 15-question ladder with lifelines and safety nets.
  • Start: quizmd hello-millionaire.md

7) Chaos (Local)

  • What: branch + recovery scenario that rejoins at final decision.
  • Start: quizmd hello-chaos.md

8) Essay (Local + AI)

  • What: write a short response and get rubric feedback.
  • Start: quizmd hello-essay.md

9) Room: Compete (Online)

  • What: correct answers earn base points plus a small capped speed bonus.
  • Start room: quizmd room --create --mode compete --quiz hello-quiz.md

10) Room: Collaborate (Online)

  • What: discussion + voting phase, team consensus scoring.
  • Start room: quizmd room --create --mode collaborate --quiz hello-quiz.md

11) Room: Eliminate (Online)

  • What: wrong answers eliminate players from scoring, but everyone keeps playing for practice.
  • Start room: quizmd room --create --mode eliminate --quiz hello-quiz.md

12) Game: Alien Attack (Terminal)

  • What: arcade shooter mini-game.
  • Start: quizmd alien-attack

Join any room:

quizmd room --join <room-name> [--token <room-token>]

Room behavior:

  • Rooms are open by default in the CLI. Use --require-token to make a token-protected room.
  • Auto-advance is the default. Use --advance manual if the host should type /next after each result.
  • Compete/Eliminate scoring: correct answer = question points + up to 25% speed bonus; wrong answer = 0.
  • Finished rooms are ephemeral and are released by the room server after the final results.

Room quiz requirement:

  • In online room types, each question Time/time_limit must be 5 seconds or higher.
  • For JSON room quizzes, optional discussion_time (seconds) controls collaborate chat phase per question.

quizmd init Coverage

Yes, quizmd init covers all mode types:

  • MCQ single/multiple via hello-quiz.md
  • Imposter via hello-imposter.md
  • Chaos via hello-chaos.md
  • Essay via hello-essay.md
  • Room types by using hello-quiz.md with --mode compete|collaborate|eliminate

Essay Keys (Essay Mode Only)

MCQ quizzes do not require API keys.

Supported keys:

  • GEMINI_API_KEY
  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY

Auto provider order:

  1. Gemini
  2. OpenAI
  3. Anthropic

Mac/Linux example:

export GEMINI_API_KEY="your_key_here"

Windows PowerShell example:

$env:GEMINI_API_KEY="your_key_here"

Validate Any Quiz

quizmd --validate quizzes/harry-potter-quiz.md

Theme

quizmd --theme auto quizzes/harry-potter-quiz.md
quizmd --theme light quizzes/harry-potter-quiz.md
quizmd --theme dark quizzes/harry-potter-quiz.md

Notes

  • Local question modes support Q for graceful quit with summary.
  • Press Ctrl+C at any time to exit.
  • Each multiple-choice question must have at least 2 non-empty options.
  • If your question text includes markdown bullet lines, add an Options: line before answer choices to disambiguate parsing.

Development

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python -m pytest tests -q

This repository is the CLI/PyPI package.

Community

Metadata

Release files for quizmd 2.4.4

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

Source distribution (sdist)

Source distribution for quizmd 2.4.4
File Size Uploaded Provenance Actions
quizmd-2.4.4.tar.gz 135.3 kB Without provenance Details for quizmd-2.4.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quizmd 2.4.4
File Interpreter ABI Platform Actions
quizmd-2.4.4-py3-none-any.whl Python 3 none any Details for quizmd-2.4.4-py3-none-any.whl

Total release size: 233.9 kB

Release files / quizmd-2.4.4.tar.gz

Download URL quizmd-2.4.4.tar.gz
Size 135.3 kB
Tags Source
SHA-256 checksum
How to use checksums
57be9939068458addbd4086742363ad312b23cba78ae9dc04d96051cc73cb24a
BLAKE2b-256 checksum
How to use checksums
fb96121b256f8e11941e343570f1e6803483f97a99cd16d6eb0db65a79089994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / quizmd-2.4.4-py3-none-any.whl

Download URL quizmd-2.4.4-py3-none-any.whl
Size 98.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
daeb857a48ba1e44beceeeaa43a957bbb0d4c734c886f329a6fa9910eaea230b
BLAKE2b-256 checksum
How to use checksums
b7d6480ea43c025eff8179adb134e9e934a57e87471f145504d124423ef2dbdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for quizmd 2.4.4

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