Skip to main content

Convert simple JSON quizzes to QTI format for LMS import

Project description

json2qti

Build LMS quizzes from simple json.

Format

The JSON representation is as minimal as possible to allow for token-efficient generation and processing by LLMs. All questions are multiple choice. Questions are keys in an object. Answers are provided as a list of values. The first answer is always the correct choice. Generated quizzes will have answer shuffling enabled.

Here's an example:

{
  "Basic Math Quiz": {
    "What is 1+1?": ["2", "3", "4", "5"],
    "What is 1+2?": ["3", "4", "5", "6"]
  }
}

Usage

python3 json2qti.py quiz.json # Produces quiz.zip QTI file

Dependencies

This project has no dependencies beyond the Python standard library. The entire package is in a single file json2qti.py.

Project details


Download files

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

Source Distribution

json2qti-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json2qti-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file json2qti-0.1.0.tar.gz.

File metadata

  • Download URL: json2qti-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for json2qti-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d0054be1a4df9d13f3b7ae6f47076f3c310b818e544a5895bea8303004c50aa1
MD5 8f51710ddef21b96ade40e733c723919
BLAKE2b-256 a9618e743b3d2700f1c3506b153f21561f5ef4ddbf741fb3c5593c77c89bbc7b

See more details on using hashes here.

File details

Details for the file json2qti-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: json2qti-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for json2qti-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be880a671e1d3fb044c28902620ac6519866347c4f480b1e8bf62bb7b6120e1f
MD5 2df83d6f56b9236ed651c87def251f3b
BLAKE2b-256 829cc631d85cd561b5dee8b7767c7c7458bd27e09031fa902a32deb02406ca8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page