Skip to main content

A short description for your project.

Project description

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 ( 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!

And this:

Which LMS has the most quiz import formats?
A) Moodle
B) ATutor
C) Claroline
D) Blackboard
E) WebCT
F) Ilias


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
... """)
>>> 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?

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aiken, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size aiken-0.1.0.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page