This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Converter from latex to edX XML format course content files.

Project Description

Python script to convert moodle course content to edX

This script takes a moodle backup file (.mbz) as input, and produces as output an edX course in XML format (http://data.edx.org).

moodle2edx handles conversion of the following moodle activities:

  • url
  • label
  • resource
  • page
  • quiz (only partial implementation)

Static content is also converted. Relative links also mostly work.

Requirements

lxml, html2text

Installation

pip install -e git+https://github.com/mitocw/moodle2edx.git#egg=moodle2edx

Usage

Usage: moodle2edx [options] [moodle_backup.mbz | moodle_backup_dir]

Options:
--version show program’s version number and exit
-h, --help show this help message and exit
-c, --clean-up-html
 clean up html to be proper xhtml
-v, --verbose verbose error messages
-d OUTPUT_DIR, --output-directory=OUTPUT_DIR
 Directory name for output course XML files
-o ORG, --org=ORG
 organization to use in edX course XML
-s SEMESTER, --semester=SEMESTER
 semester to use for edX course (no spaces)

Examples

As can be seen from these examples, moodle2edx provides a functional way to get pages from moodle into edX. The locations of the content are sub-ideal, but provide a working starting point for editing using edX Studio. Translation of moodle assessments into edX problems is mostly incomplete.

History

  • v1.0: python package; unit tests; modular code

Acknowledgements

The sample moodle backup file used for testing (testdat/intro_to_stats.mbz) is from http://moodleshare.org/course/view.php?id=213

Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
moodle2edx-0.1.0.tar.gz (142.2 kB) Copy SHA256 Checksum SHA256 Source Feb 9, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting