GitXplorerGitXplorer
f

cakecmsutils

public
4 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
cb5d72e903cce28ee174a87e6880f3dcd5e3a329

add option to pad digits in file names

ffabian-thomas committed 2 years ago
Verified
891d038c9e3177141d70c67bbf4fd058a3251627

add handling for files that are links

ffabian-thomas committed 2 years ago
Verified
6c03f3715dbd55321a21785fd1bffea0c2a4429d

fix off by one

ffabian-thomas committed 2 years ago
Verified
dbd878fb462b893ba00a83809b8d68e315b9a597

add wrong category handling

ffabian-thomas committed 2 years ago
Verified
dc765022005b214687104da3a635b7dfaa22ddbd

update readme

ffabian-thomas committed 3 years ago
Verified
f179d265ee075e4c23e908b52789b91c402a783e

add setuptools building

ffabian-thomas committed 3 years ago

README

The README file for this repository.

Python scripts to interact with the CakeCMS API.

Installation of the python module

Prerequisites (in both below cases)

The cakecms module has to be installed first.

From PyPi

pip install cakecmsutils

From source

Install the PyPI package build:

pip install build

Then (from the root of the repo):

python -m build
pip install dist/*.whl

Example scripts

For obtaining the right values for HOST, TOKEN and COURSE refer to CakeCMS API.

Download course materials (examples/download_course_materials.py)

This script may be used to download course materials by category. The example script also shows how a negative filter may be used to skip some of the files. Note that ExtendedCakeCMS writes data to a hidden cache file in your PWD. This cache file makes sure that no files need to be redownloaded.

This script should probably be copied to a separate directory for each of your courses and then adjusted to match the categories. The category titles are the ones visible in the headers on the webpage.