xls2moodle
Script to convert multiple choice questions from xls to moodle's xml format. The xml format can then be used to import the questions into moodle quizes. Please note, that this repository and the code was intended to be used for german tables / quizes. Adaptions are possible, but some columns (in the input) are hard-coded at the moment.
To install the package and make use of the tkinter GUI (thanks @euvbonk), you can use
pip install xls2moodle
input
The script requires two arguments as commandline options (see MoodleXML usage):
- course name
- location of tabular excel file with questions
output
- xml format, ready for import in moodle
question format
Please refer to the template_advanced.xlsx to get an ideao on the file format. Mandatory columns:
- Aussage1 - possible answer 1
- Aussage2 - possible answer 2
- Aussage3 - possible answer 3
- Aussage4 - possible answer 4
- WAHR - contains index of correct answer(s), 1-based
- FALSCH - contains index of wrong answer(s), 1-based
- Themenblock - contains a topic name (this should be the same for similar questions)
- Hauptfrage - Question text
Optional columns:
- Anwendung - boolean, filter to include (1) or exclude (0) questions
Further columns are ignored.
templates
The script reads templates (xml_templates-folder) that were previously exported from moodle. If the format changes in the future, this process needs to be repeated. In the meantime, do not touch any of the xml templates.
known issues
- latex equation code supported (?)
- reading of data with special encoding (utf-8) currently not possible with the latest pandas version
Contributors
- Benjamin Furtwängler
- Sven Giese
- euvbonk
Metadata
Release files for xls2moodle 1.12
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 | |
|---|---|---|---|---|
| xls2moodle-1.12.tar.gz | 25.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xls2moodle-1.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.7 kB
Release files / xls2moodle-1.12.tar.gz
| Download URL | xls2moodle-1.12.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d40e2157f4fda5e91acb2995160eeb3b3e1e82b6fdb3b7f83c900928c9dd3d49
|
|
BLAKE2b-256 checksum How to use checksums |
c1891121817c500ed6eb90989948d82589673e6303b8cc87a651615707426ded
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.3
|
Release files / xls2moodle-1.12-py3-none-any.whl
| Download URL | xls2moodle-1.12-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bad0caf93dcb89126b8087de1340d7f410cf124241170c478fc45f747729f74a
|
|
BLAKE2b-256 checksum How to use checksums |
7dc015662c047aa3659faa7a3e8272914078e751487837e3c97200a17d2fcc33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.3
|
Security for xls2moodle 1.12
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.