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

Uploaded Source

Built Distribution

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

moodlepy-0.2.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moodlepy-0.2.1.tar.gz
  • Upload date:
  • Size: 9.0 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.2.1.tar.gz
Algorithm Hash digest
SHA256 f391c2f06b7800ee04c34d846c755aa0cfd9b6b3eda633bd35aeeeb4d393285f
MD5 7eb466b90a2ab2a073d6162aeda7aad7
BLAKE2b-256 e2b75f76981cdc890f4f13f3277f9ab314cc8d862d745f04509454a9167b969e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moodlepy-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.2 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4960b1e59aa03effb5e386c708856eadc7c641894c526b35aaabb4a5cc5196b4
MD5 33697e21730f18373c4c2e9ab424c8d5
BLAKE2b-256 429e4116c67ddaf7b68fcbd887bb6743a39d3d4b5c636a7d96b794635d32ae4f

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