Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosGoogle Chrome: Unfinished Projects: Solange’s Public Sculpture(21.09.2026 um 17:02 Uhr)
Windows Tipps & SecurityBlurry or pixelated video in Microsoft Teams(21.09.2026 um 14:34 Uhr)
Sicherheitslücken (CVE)USN-8791-1: Ghostscript vulnerability(21.09.2026 um 14:51 Uhr)
Sicherheitslücken (CVE)USN-8792-1: Memcached vulnerability(21.09.2026 um 15:02 Uhr)
Sichere ProgrammierungI stopped rewriting the same Electron boilerplate — so I packaged it(21.09.2026 um 17:28 Uhr)
YouTube Security VideosGoogle Chrome: Unfinished Projects: Solange’s Public Sculpture(21.09.2026 um 17:02 Uhr)
Windows Tipps & SecurityBlurry or pixelated video in Microsoft Teams(21.09.2026 um 14:34 Uhr)
Sicherheitslücken (CVE)USN-8791-1: Ghostscript vulnerability(21.09.2026 um 14:51 Uhr)
Sicherheitslücken (CVE)USN-8792-1: Memcached vulnerability(21.09.2026 um 15:02 Uhr)
Sichere ProgrammierungI stopped rewriting the same Electron boilerplate — so I packaged it(21.09.2026 um 17:28 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Building QM2: A Modern, Dockerized CLI Quiz Engine with 330+ Tests

🚀 The Mission Most quiz applications are web-based, but I wanted something that lives where I spend most of my time: the terminal. I built QM2 — a robust, interactive quiz engine designed for developers and power users who value speed, ef…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

QM2 - Modern Python CLI Quiz Maker application main menu featuring ASCII art and interactive terminal UI on a green gradient background






🚀 The Mission



Most quiz applications are web-based, but I wanted something that lives where I spend most of my time: the terminal. I built QM2 — a robust, interactive quiz engine designed for developers and power users who value speed, efficiency, and a clean "brutalist" UI.






🛠️ The Tech Stack



To make a CLI feel like a professional product, I relied on some of the best libraries in the Python ecosystem:





  • Rich: For the beautiful, colored interface and real-time feedback.


  • Questionary: To handle complex interactive prompts and menus.


  • Platformdirs: Ensuring data is stored correctly whether you are on Windows, macOS, or Linux.


  • Docker: For those who want to run the engine in a completely isolated environment.



QM2 - Modern Python CLI Quiz Maker application main menu featuring ASCII art and interactive terminal UI on a green gradient background






🏗️ Engineered for Reliability



As a developer, I believe that if it's not tested, it's broken.





  • 330 Individual Tests: Ensuring the core logic remains rock-solid as the project grows.


  • 86% Coverage: Backed by a strict CI/CD pipeline.


  • OIDC Publishing: Secure, token-less deployment to PyPI via GitHub Actions.



QM2 - Modern Python CLI Quiz Maker application main menu featuring ASCII art and interactive terminal UI on a green gradient background






✨ Key Features





  • 4 Question Types: Multiple Choice, True/False, Fill-in-the-blank, and Matching.


  • Flashcards Mode: Stress-free learning without the pressure of a timer.


  • Data Portability: Full support for bidirectional CSV ↔ JSON conversion. You can even import quizzes directly from a URL!


  • Category Management: Organize your learning into hierarchical structures (e.g., programming/python/basics).



QM2 - Modern Python CLI Quiz Maker application main menu featuring ASCII art and interactive terminal UI on a green gradient background






📦 Installation & Quick Start



You can get up and running in seconds:

pip install qm2

qm2



Or via Docker to keep your system clean:



docker build -t qm2 .

docker run -it -v qm2_data:/root/.local/share/qm2 qm2






📖 Deep Dive into Data



I designed the question format to be as human-readable as possible. Whether you prefer JSON for precision or CSV for bulk editing in Excel, QM2 handles both:

JSON



{

"type": "match",

"question": "Match programming languages with their types",

"pairs": {

"left": ["Python", "C++"],

"right": ["Interpreted", "Compiled"],

"answers": { "a": "1", "b": "2" }

}

}






🗺️ What's Next?



"With the release of v1.0.25, QM2 has officially moved out of beta. The core is now stable, and I am shifting focus towards expanding the ecosystem."





  • AI Integration: Generating quizzes automatically from your documentation.


  • Plugin System: Allowing the community to build their own extensions.






🔗 Links & Support



If you're a CLI enthusiast, I'd love for you to try it out and give me your feedback!





I’m curious — what is your favorite library for building CLI tools in Python? Let's discuss in the comments!

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Building QM2: A Modern, Dockerized CLI Quiz Engine with 330+ Tests

Thematisch verwandte Begriffe: Building, Modern, Dockerized, Quiz · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94393 | When a user creates or edits a report inside an event, MISP can identify…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick