A Python Wrapper for the Moodle Mobile API
Install using pip:
pip install moodle-mobile-py
Start by creating an instance of the moodle crawler and logging in:
import moodle
# initialise moodle crawler object
m = moodle.MoodleCrawler("<username>", "<password>", "https://moodle.example.com")
await m.login()
# print whether the current user an an admin of the moodle page
print(m.site_info.is_admin)
Note that the wrapper is written in an async/await style, and you have to call specific functions from coroutines.