Code Monkey home page Code Monkey logo

xbundle's Introduction

xbundle

https://travis-ci.org/mitodl/xbundle.svg?branch=travis https://coveralls.io/repos/mitodl/xbundle/badge.svg?branch=master&service=github

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

xbundle's People

Contributors

shawnmilo avatar carsongee avatar pdpinch avatar ichuang avatar jamiefolsom avatar noisecapella avatar bdero avatar justinabrahms avatar

Watchers

Ferdi Alimadhi avatar  avatar Brandon Muramatsu avatar James Cloos avatar Jeff Merriman 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.