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.
Metadata
Release files for my-moodle 0.4.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| my_moodle-0.4.6.tar.gz | 9.7 kB | Without provenance | Details for my_moodle-0.4.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| my_moodle-0.4.6-py3-none-any.whl | Python 3 | none | any | Details for my_moodle-0.4.6-py3-none-any.whl |
Total release size: 26.0 kB
Release files / my_moodle-0.4.6.tar.gz
| Download URL | my_moodle-0.4.6.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0217622671f8b3f9a9529557acefd1eac7aa94d024010fb1a88cdf8e53c62602
|
|
BLAKE2b-256 checksum How to use checksums |
d83ff406ba787e6b2bbe3cb3bd7381a10dac9c691f99c6b29cc9594398cfcc7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Release files / my_moodle-0.4.6-py3-none-any.whl
| Download URL | my_moodle-0.4.6-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fae7ccaf73ebc49916ed9a0c1385850f246d52b6be435c402d3baeee07172761
|
|
BLAKE2b-256 checksum How to use checksums |
3ffe2270992c77267f7c44815eb780c25bb41a87b2862af1db1ec4212dc87b23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|
Security for my-moodle 0.4.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.