Some scripts that are useful to manage Moodle.
Runs on python3.9+, which is part of the mac command line developer tools that can be installed without being sudoer
If you don't have direnv installed on your computer you can manually create the virtual environment :
To create the virtualenv (you need to do this only once):
python3 -m venv .venv
To enter the virtualenv:
source .venv/bin/activate
Once inside the virtualenv you should install the requirements like this:
pip install -r requirements.txt
pip install -r dev-requirements.txt
ruff check
ruff format
mypy .
Set the schoolyear in lib/schoolyear.py
All scripts are marked as executable, so you can just run them like this:
./name-of-script.py