Skip to main content

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

Release files for xbundle 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xbundle 0.3.1
File Size Uploaded
xbundle-0.3.1.tar.gz 10.9 kB Details

Release files / xbundle-0.3.1.tar.gz

Download URL xbundle-0.3.1.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0b287dce313c22736c340330c433e5103e4169ba2cbd4284ae49fbf07286bbf3
BLAKE2b-256 checksum
How to use checksums
7204b00a6526153e625ff296c3c22e8e9a827e7bf6d096b9394dca1ef2653041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page