Download Moodle Course content.
Project description
My Moodle
A Python package to download data from Moodle.
Sample Usage
The following is a sample usage of the package:
%pip install my-moodle
from my_moodle import (ConfigUtility, MoodleDataDownloader)
def main() -> None:
"""Main function"""
program, server, token = ConfigUtility.check_and_read_config()
moodle_data_downloader: MoodleDataDownloader = MoodleDataDownloader(
program, server, token, data_dir=""
)
moodle_data_downloader.download_my_data()
# Call the main function
if __name__ == "__main__":
main()
Get Moodle Token
Using https://moodle.maynoothuniversity.ie as an example:
- Open https://moodle.maynoothuniversity.ie/user/managetoken.php
- Copy the key for Moodle mobile web service.
- Place it in file config.ini
[App]
program = Content Management Systems
server = https://moodle.maynoothuniversity.ie
token = INSERT_YOUR_TOKEN # e.g. 63c1774a3eaf47db816c57ba1abafd40
Note: The token is a secret key, do not share it with anyone.
Copyright © 2024 Mark Crowe https://github.com/marcocrowe. All rights reserved.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file my_moodle-0.4.6.tar.gz.
File metadata
- Download URL: my_moodle-0.4.6.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0217622671f8b3f9a9529557acefd1eac7aa94d024010fb1a88cdf8e53c62602
|
|
| MD5 |
441dd442dedfd5bcff56760c4be23423
|
|
| BLAKE2b-256 |
d83ff406ba787e6b2bbe3cb3bd7381a10dac9c691f99c6b29cc9594398cfcc7f
|
File details
Details for the file my_moodle-0.4.6-py3-none-any.whl.
File metadata
- Download URL: my_moodle-0.4.6-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fae7ccaf73ebc49916ed9a0c1385850f246d52b6be435c402d3baeee07172761
|
|
| MD5 |
892732d6bdff99934f323134f0893b80
|
|
| BLAKE2b-256 |
3ffe2270992c77267f7c44815eb780c25bb41a87b2862af1db1ec4212dc87b23
|