Skip to content

cca/moodle_scripts

Repository files navigation

Moodle Scripts

External scripts run outside Moodle to interact with its data, whether through REST APIs or other means. See also: CCA moodle_cli which is for internal scripts run on the Moodle server, such as our enrollment sync.

Contents

These used to be separate repositories but the enroll scripts were converted into this one and the others were archived.

  1. combine_feedbacks - Combine multiple Moodle feedback activities into a single CSV file for easier analysis.
  2. enroll - create bulk enrollment CSVs for internships and NSO courses.
  3. rest_apis - examples of interacting with Moodle REST APIs.

Setup

General prerequisites are uv and a modern python 3. Individual scripts may have additional data or authentication requirements; see their readme files.

uv sync
uv run pytest # only enroll has tests at this time

Scripts that interact with Moodle's REST API use an .env file in the project root for authentication and configuration. Create a .env file based on the provided example.env:

cp example.env .env
# Edit .env with your actual values

LICENSE

ECL Version 2.0

About

External Moodle scripts

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •