Skip to main content

A Python Wrapper for the Moodle Mobile API

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moodle-mobile-py-1.0.3.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

moodle_mobile_py-1.0.3-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page