Skip to content

🌐 A Python Wrapper for the Moodle Mobile API πŸ“²

License

Notifications You must be signed in to change notification settings

xImAnton/moodle.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MoodleCrawler

A Python Wrapper for the Moodle Mobile API

Installation

Install using pip:

pip install moodle-mobile-py

First Steps

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.

About

🌐 A Python Wrapper for the Moodle Mobile API πŸ“²

Topics

Resources

License

Stars

Watchers

Forks

Languages