GitXplorerGitXplorer
f

cakecmsutils

public
4 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
01749741a147e71136d04e9248aeaeb5319938e9

update readme

ffabian-thomas committed 3 years ago
Verified
7919951f0acbf2fc02ec48d3b8a8a7da167c506f

update readme

ffabian-thomas committed 3 years ago
Verified
6fdba0b0e98dbe3ce616ffba5f0ed2c851350173

update readme

ffabian-thomas committed 3 years ago
Verified
46639032985220a0bf4108feeca47f97e7681d29

update readme

ffabian-thomas committed 3 years ago
Verified
684598ada42f0e7dec4ee2b0aef55a06f106a96e

update readme

ffabian-thomas committed 3 years ago
Verified
ea4a17abd6711f6cf76b14792dd4c5b64c26da9c

add license

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.