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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moodlepy-0.6.0-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

Details for the file moodlepy-0.6.0.tar.gz.

File metadata

  • Download URL: moodlepy-0.6.0.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.8 Windows/10

File hashes

Hashes for moodlepy-0.6.0.tar.gz
Algorithm Hash digest
SHA256 67ab2a2525d7a27114a4acd9ca460628685e25fc1cbdd7e0e4c04e5c06ed4c64
MD5 1fcd73f036da4fe5ddacce16a95e475d
BLAKE2b-256 251270006cdddfaf04e6b2400d4f57ed5682f29093686edf141aac011a65f900

See more details on using hashes here.

File details

Details for the file moodlepy-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: moodlepy-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 42.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.8 Windows/10

File hashes

Hashes for moodlepy-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76d94da533320d3b1d043a7f6e145425ba4e9f9fe750e6e5f1379b9565084d5d
MD5 cd72335b430335690d7f412a40107f3a
BLAKE2b-256 bd30a6fd38e942bc163edb10de36634ae7a8af25e31dd437a0a0d78914cd92d9

See more details on using hashes here.

Supported by

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