Skip to main content

Client for moodle webservice

Project description

moodlepy

moodlepy - PyPi codecov BUILD LICENSE

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 moodlepy 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


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.2.1.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

moodlepy-0.2.1-py3-none-any.whl (19.2 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