Git Product home page Git Product logo

moodletools's Introduction

Python modules for automating Moodle tasks

This module offers a rather ad hoc collection of tools for automating various tasks within the Moodle LMS. If you're not an instructor or educational developer who spends a lot of time working in Moodle then there is probably little of interest for you here.

If your installation of Moodle uses a simple username/password authentication form then this module can help with that. Otherwise, you can create your own authentication object that performs the login and creates the necessary requests.Session object. For testing purposes, a factory method that creates a login session on the demo.moodle.net server is provided.

See the examples directory for tools that are able to:

  • list all activities in a course, optionally filtering by type
  • hide or unhide all activities in a course, optionally filtering by type
  • download the file that is in a resource activity

Availability

Usage of these tools is governed by the terms of service of the web services you may connect to and institutional policies.

The code itself is available under the MIT licence.

Installation

The code is written for Python 3.

The following Python modules are required (Debian/Ubuntu packages):

  • bs4 (python3-bs4)
  • numpy (python3-numpy)
  • pandas (python3-pandas)
  • requests (python3-requests)
  • xlrd (python3-xlrd)

moodletools's People

Contributors

llimeht avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.