GitXplorerGitXplorer
f

cakecmsutils

public
4 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
18ff92156a2b2ca10e39e3d18b3aaa55a070ddbd

add readme

ffabian-thomas committed 3 years ago
Verified
5c0ab9725be3dc4b792b57c32b9829202144d9f9

fix import

ffabian-thomas committed 3 years ago
Verified
a3143cbed5f95c741adb7a8c7df26b53e920a07e

update example

ffabian-thomas committed 3 years ago
Verified
7232704b97a4c1b8fcb29ab4901193666fa64685

rename package and class

ffabian-thomas committed 3 years ago
Verified
5edcd2605b2f99bda679d27099a3d19a9cb9a33b

init

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.