Client for moodle webservice
Project description
moodlepy
Python client for moodle webservice
Introduction
This library provide a pure Python interface for Moodle Web Service. It's compatible with Python versions 3.6+
Moodle Web Service support
Not all types and methods are supported, since moodlepy is not yet released.
Installing
You can install or upgrade moodlepy with:
pip install moodlepy --upgrade
Or you can install from source with:
git clone https://github.com/hexatester/moodlepy
cd moodlepy
python setup.py install
Usage
Example usage
from moodle import Moodle
url = 'https://my.domain/webservice/rest/server.php'
token = 'super secret token'
moodle = Moodle(url, token)
raw_site_info = moodle('core_webservice_get_site_info')
site_info = moodle.core.webservice.get_site_info() # return typed site_info
print(raw_site_info)
print(site_info)
In the future all Web service functions will covered by moodlepy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moodlepy-0.6.0.tar.gz
(23.9 kB
view hashes)
Built Distribution
moodlepy-0.6.0-py3-none-any.whl
(42.7 kB
view hashes)