https://github.com/open-risk/moodleutils
Various Python scripts to help with moodle tasks
https://github.com/open-risk/moodleutils
elearning moodle python
Last synced: about 1 year ago
JSON representation
Various Python scripts to help with moodle tasks
- Host: GitHub
- URL: https://github.com/open-risk/moodleutils
- Owner: open-risk
- License: gpl-3.0
- Created: 2022-02-01T13:01:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T16:33:42.000Z (over 1 year ago)
- Last Synced: 2025-01-22T14:26:15.141Z (about 1 year ago)
- Topics: elearning, moodle, python
- Language: Python
- Homepage: https://www.openriskacademy.com
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# moodleUtils
Various python scripts to help with moodle tasks
## xlsx2glossary.py
Create a Moodle XML glossary from a xlsx document
### Usage:
1. Clone the repository to your local system and set it as the working directory
2. Edit the GlossaryTemplate.xml to provide the glossary *metadata* (Name and Description of the glossary)
3. Edit the entry template in the [script](xlsx2glossary.py) to provide the desired entry metadata
4. Prepare an [xlsx sheet](terms.xlsx) with the terms and definitions arranged in columns as follows: a header element
indicating which one contains *terms* and which one contains *definitions*
5. Run the script, e.g., python3 xlsx2glossary.py to produce the glossary as output.xml
6. Import the xml file into your moodle instance
### Dependencies
1. lxml
2. openpyxl