moodle2edx
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
Metadata
Release files for moodle2edx 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 |
|---|---|---|---|---|
| moodle2edx-0.1.0.tar.gz | 142.2 kB | Without provenance | Details for moodle2edx-0.1.0.tar.gz |
Release files / moodle2edx-0.1.0.tar.gz
| Download URL | moodle2edx-0.1.0.tar.gz |
|---|---|
| Size | 142.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afe94d27382050b51c0a6899b8e3126ae6baf17ac5c872a5730c9cfd85a80624
|
|
BLAKE2b-256 checksum How to use checksums |
7b69ca49442bfa202da4a809f09795ff06a94525fc41e9d58deb85e974adccd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for moodle2edx 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.