{"id":23205256,"url":"https://github.com/marcocrowe/my-moodle-template","last_synced_at":"2025-08-19T02:32:13.977Z","repository":{"id":227195084,"uuid":"770490701","full_name":"marcocrowe/my-moodle-template","owner":"marcocrowe","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-24T10:24:29.000Z","size":87,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-24T11:35:52.889Z","etag":null,"topics":["cms","college","content-management","content-management-system","file-management","jupyter-notebook","lecture-notes","moodle","moodle-downloader","my-moodle","python","python-3","school","university"],"latest_commit_sha":null,"homepage":"https://github.com/marcocrowe/my-moodle-template","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcocrowe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-11T16:36:58.000Z","updated_at":"2024-08-24T10:24:32.000Z","dependencies_parsed_at":"2024-03-12T05:23:45.239Z","dependency_job_id":"f34a6f27-9f42-4acc-b58f-3b6951c51e95","html_url":"https://github.com/marcocrowe/my-moodle-template","commit_stats":null,"previous_names":["marcocrowe/my-moodle-template"],"tags_count":2,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcocrowe%2Fmy-moodle-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcocrowe%2Fmy-moodle-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcocrowe%2Fmy-moodle-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcocrowe%2Fmy-moodle-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcocrowe","download_url":"https://codeload.github.com/marcocrowe/my-moodle-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230306273,"owners_count":18205878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cms","college","content-management","content-management-system","file-management","jupyter-notebook","lecture-notes","moodle","moodle-downloader","my-moodle","python","python-3","school","university"],"created_at":"2024-12-18T16:34:36.927Z","updated_at":"2024-12-18T16:34:37.469Z","avatar_url":"https://github.com/marcocrowe.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# [My Moodle](https://github.com/marcocrowe/my-moodle-template \"My Moodle\")\n\nThis repository is a template for a Python package to download data from Moodle. Press the button below to use this template to create a new repository:\n\nClone the repository to your local machine:\n\nReplace `USERNAME` with your GitHub username and `COLLEGE-MOODLE` with the name of the repository, i.e. `my-moodle` for mu for 'Maynooth University':\n\n```bash\ngit clone https://wwww.github.com/USERNAME/COLLEGE-MOODLE.git\n```\n\n## Installation\n\nTo install the package, run the following command:\n\n```bash\npip install my-moodle\n```\n\nYou can then open [main.py](main.py) or [notebook-main.ipynb](notebook-main.ipynb) to start the program.\n\n## Description\n\nThis package is a Python program to download data from Moodle. The program uses the Moodle API to download data from a Moodle server. The program is designed to download data from a specific course on a Moodle server. The program requires a token to access the Moodle server. The token is a secret key that is generated by the Moodle server.\n\n## Sample Usage\n\nThe following is a sample usage of the package:\n\n```python\n\n%pip install my-moodle\n\nfrom os import getcwd\nfrom my_moodle import ConfigUtility, MoodleDataDownloader\n\ndef main() -\u003e None:\n    \"\"\"Main function\"\"\"\n\n    MoodleDataDownloader.display_version()\n    program, server, token = ConfigUtility.check_and_read_config()\n    moodle_data_downloader = MoodleDataDownloader(program, server, token, getcwd())\n    moodle_data_downloader.download_my_data()\n\n# Call the main function\nif __name__ == \"__main__\":\n    main()\n```\n\n## Get Moodle Token\n\nUsing \u003chttps://moodle.midwest.tus.ie/\u003e as an example:\n\n1. Open \u003chttps://moodle.midwest.tus.ie/user/managetoken.php\u003e\n2. Copy the key for 'Moodle mobile web service'.\n3. The key is saved to a file [config.ini](config.ini)\n\n```ini\n[User]\nprogram = Content Management Systems\nserver = https://moodle.midwest.tus.ie/\ntoken = INSERT_YOUR_TOKEN\n```\n\n*Note: The token is a secret key, do not share it with anyone. Usually it is GUID like e.g. **63c1774a3eaf47db816c57ba1abafd40***\n\n---\nCopyright \u0026copy; 2024 Mark Crowe \u003chttps://github.com/marcocrowe\u003e. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcocrowe%2Fmy-moodle-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcocrowe%2Fmy-moodle-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcocrowe%2Fmy-moodle-template/lists"}