Skip to main content

Noodle-Quiz

Noodle-Quiz (Not Moodle Quiz generator) is a set of utilities to generate quizzes for Moodle

Example usage

from noodle_quiz import Quiz
from noodle_quiz.question_types import Description, Numeric, MultipleChoice
from noodle_quiz.answer_types import NumericAnswer, MultipleChoiceAnswer
q = Quiz()
d = Description('Exercice 1', 'Description')
a = NumericAnswer(100, 4)
n = Numeric('Question #1', [a], 'Calculate 2+2')
ans1 = MultipleChoiceAnswer(50, 2)
ans2 = MultipleChoiceAnswer(50, -2)
ans3 = MultipleChoiceAnswer(-100, 4)
qcm = MultipleChoice('QCM1', 'Solve for x: $$x^2 = 4$$', [ans1, ans2, ans3], single_choice=False)
ansX = MultipleChoiceAnswer(100, 42)
ansY = MultipleChoiceAnswer(0, 'Not 42')
qcu = MultipleChoice('QCM2', 'What is the product of 7 by 8 ?', [ansX, ansY])
q.add_questions([d, n, qcm, qcu])
q.save_to_path('test.xml')

Metadata

Release files for noodle-quiz 0.1.3

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

Source distribution (sdist)

Source distribution for noodle-quiz 0.1.3
File Size Uploaded Provenance Actions
noodle_quiz-0.1.3.tar.gz 5.5 kB Without provenance Details for noodle_quiz-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for noodle-quiz 0.1.3
File Interpreter ABI Platform Actions
noodle_quiz-0.1.3-py3-none-any.whl Python 3 none any Details for noodle_quiz-0.1.3-py3-none-any.whl

Total release size: 11.9 kB

Release files / noodle_quiz-0.1.3.tar.gz

Download URL noodle_quiz-0.1.3.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
448e2970b5dbba19c04fd992bf0136c37b3ad35940052396a8f490288dc8636e
BLAKE2b-256 checksum
How to use checksums
8677accd86c3a60a3346480e6bf0c99e15628fccc6d383a03895e9230476ca2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / noodle_quiz-0.1.3-py3-none-any.whl

Download URL noodle_quiz-0.1.3-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f954494f3ba2af884e31db4f426e524b1b2eb10bae5997398103e28d0f2176d4
BLAKE2b-256 checksum
How to use checksums
a50e9fc8f3baef4c965a2ea2a36920773c0ccbea8d180091c8ec58a8051e941e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for noodle-quiz 0.1.3

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