Python scripts to interact with the CakeCMS API.
Project description
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):
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cakecmsutils-0.0.1.tar.gz
.
File metadata
- Download URL: cakecmsutils-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaf6b878bdb4185a82837613828d8e3eb22ae839696bd2523fa9ebcab16d9cc2 |
|
MD5 | b2e9e2430380a8bf05a6db4d60983ff2 |
|
BLAKE2b-256 | 90b7121b18c1af62d3f7481cb19984b21cf4dbe4e3cb9f24f2bde7a437247065 |
File details
Details for the file cakecmsutils-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: cakecmsutils-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e28930ede92f67712390a1a6f1d58af6971918ca28dcbb907c85c7c8147ebd4c |
|
MD5 | be1509483ba6e2b0e9132436f6c413a5 |
|
BLAKE2b-256 | ee366bdef50eafb9dd1342f9a5dfa878df823838a8e429257952150f83f85b6d |