This project is a Python parser for the Aiken question format used in Moodle. Aiken is a very simple format to represent multiple choice questions (https://docs.moodle.org/24/en/Aiken_format) It accept two very similar syntaxes:
What is the correct answer to this question? A. Is it this one? B. Maybe this answer? C. Possibly this one? D. Must be this one! ANSWER: D
And this:
Which LMS has the most quiz import formats? A) Moodle B) ATutor C) Claroline D) Blackboard E) WebCT F) Ilias ANSWER: A
Usage
The aiken module simply expose the load and dump functions that respectively parse a question file and convert a parsed question object back to code. Let us parse a question string:
>>> import aiken
>>> question = aiken.load("""
... Is this a valid Aiken Question?
... A. Yes
... B. No
... ANSWER: A
... """)
>>> question.options
['Yes', 'No']
Now, we make some changes and convert it back to a string of code:
>>> question.options.append('Who knows?')
>>> print(aiken.dump(question))
Is this a valid Aiken Question?
A. Yes
B. No
C. Who knows?
ANSWER: A
Metadata
Release files for aiken 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiken-0.1.0.tar.gz | 4.6 kB | Without provenance | Details for aiken-0.1.0.tar.gz |
Release files / aiken-0.1.0.tar.gz
| Download URL | aiken-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a348b068a9b78fbb9c0c8365fcbfdc4f95ba4f6107badcb8121746d6dd603ea
|
|
BLAKE2b-256 checksum How to use checksums |
d98900f369882d73259863fdde10c455caae37875859679c01e68bcfff0ffa71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for aiken 0.1.0
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.