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

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 be covered by moodlepy

Moodle Web Service support

❗️ Not all types and methods are supported, since moodlepy is not yet released. A = Added, W = Work In Progress

Area Functions Types Tests Status
auth_email
block
core_auth
core_backup
core_badge A A A
core_blog A A A
core_calendar A A W
core_cohort
core_comment W
core_competency
core_course W
core_customfield
core_enrol
core_fetch W
core_files W
core_filters
core_form W
core_get W
core_grade W
core_grades
core_grading
core_group
core_h5p
core_message W
core_notes A A W
core_output
core_question W W
core_rating
core_role
core_search W
core_session W
core_tag
core_update
core_user W
core_webservice A A A A
enrol_guest
enrol_manual
enrol_self
gradereport_overview
gradereport_user
gradingform_guide
gradingform_rubric
local_mobile W
message_airnotifier W
message_popup W
mod_assign W
mod_book
mod_chat W
mod_choice
mod_data
mod_feedback
mod_folder
mod_forum W
mod_glossary
mod_imscp
mod_label
mod_lesson W
mod_lti
mod_page W
mod_quiz W
mod_resource
mod_scorm
mod_survey W
mod_url W
mod_wiki
mod_workshop
report_competency
report_insights
tool_analytics
tool_lp
tool_mobile A A W
tool_templatelibrary
tool_usertours
tool_xmldb

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.11.0.tar.gz (48.8 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.11.0-py3-none-any.whl (80.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moodlepy-0.11.0.tar.gz
  • Upload date:
  • Size: 48.8 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.11.0.tar.gz
Algorithm Hash digest
SHA256 7d85d54cc3fac82b2059b3ac2cef9fc5a990c1e64b768464e79879f7a09aa118
MD5 28e84443f8e64a7b2c860599fd3c379b
BLAKE2b-256 7711baad4aa55c071d3a5ecdb524d3aaf1100cf05744ff862e84391e428b3d0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moodlepy-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 80.3 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.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ec27f8ae47c3f5a4b6c1e6c33c3946046d8f594fdf1b4d392580bfdb6d46f75
MD5 a833560485a049851308c9ed2d2f5891
BLAKE2b-256 d0f3d9824d378b7b29259001e59a6a2f5f78777a067bf17f12c19cce1ae773c7

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