Skip to main content

Converts edX courses between OLX and single-XML formats.

Project description

xbundle converts back and forth between OLX and “xbundle” style XML formats. The xbundle format is a single XML file.

The OLX format is defined in this documentation.

Installation

python setup.py install

This will install xbundle and the xbundle_convert command-line tool.


Using xbundle in your code

To convert from xbundle to OLX

from xbundle import XBundle

bundle = XBundle()
# get input_path and output_path from user input
bundle.load(input_path)
bundle.export_to_directory(output_path)

To convert from OLX to xbundle

from xbundle import XBundle

bundle = XBundle()
# get input_path and output_path from user input
bundle.import_from_directory(input_path)
bundle.save(output_path)

Using the command-line tool

xbundle_convert convert /path/to/course /path/to/output.xml

or

xbundle_convert convert /path/to/output.xml /path/to/course


Run tests

xbundle_convert test

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

xbundle-0.2.0.tar.gz (10.2 kB view details)

Uploaded Source

File details

Details for the file xbundle-0.2.0.tar.gz.

File metadata

  • Download URL: xbundle-0.2.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xbundle-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9109c8fb16175414771d608d492cd136e1e0f1e0f8532f51c9e11da64125942b
MD5 de53a952e02c3e3a279de981347e63c7
BLAKE2b-256 7db5b844addca2b8a11a7251f74a498ac1303221fd496e7b9e1fbe99ad4047d0

See more details on using hashes here.

Supported by

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