Code Monkey home page Code Monkey logo

cmimapper's Introduction

cmimapper

Python module to convert scorm.com JSON interaction to CMI format

What this modules does ?

This module takes i/p a JSON file and gives o/p as a JSON with key replaced by cmi prefix according to SCORM standards. Currently with scorm.com API, interactions reports are generated in XML format. By using xmltodict (another python mod.) reports can be converted to JSON but the generated JSON is a nested dictionary which doesn't have any cmi prefix. Hence this module takes care of this problem. It generates a simple python dictionary with cmi prefix which can be used to compare reports.

Sample XML from Scorm Cloud

TrueFalse 2013-07-11T13:55:16 10.0 t correct 0000:00:06.58

Sample JSON

{ "@id": "4160_Type_the_question_here", "correct_responses": { "response": { "@id": "t" } },

CMI JSON

"cmi.interactions.1.correct_responses.0.pattern": "t", "cmi.interactions.1.description": null, "cmi.interactions.1.id": "4160_Type_the_question_here", "cmi.interactions.1.learner_response": "t", "cmi.interactions.1.objectives.0.id": "Quiz_20137812216", "cmi.interactions.1.result": "correct", "cmi.interactions.1.type": "TrueFalse", "cmi.interactions.1.weighting:": "10.0",

How to use this module

For windows: c:> python setup.py install

cmimapper's People

Contributors

avinash8526 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.