Skip to main content

A suite of CLI tools and Python library interfacing with Learning Management Systems (LMSs).

Project description

LMS Tools

A suite of tools and a Python interface for interacting with different Learning Management Systems (LMSs).

This project is not affiliated with any LMS developer/provider.

Links:

Installation

The project (tools and API) can be installed from PyPi with:

pip install edq-lms-toolkit

Standard Python requirements are listed in pyproject.toml. The project and Python dependencies can be installed from source with:

pip3 install .

Cloning

This repository includes submodules. To fetch these submodules on clone, add the --recurse-submodules flag. For example:

git clone --recurse-submodules git@github.com:edulinq/lms-toolkit.git

To fetch the submodules after cloning, you can use:

git submodule update --init --recursive

Usage Notes

Object Queries

LMS's typically require that you refer to objects using their specified identifier. Because this may be difficult, the LMS Toolkit provides a way for users to instead refer to object by other identifying fields. Fields with this behavior are referred to as "queries". Unless specified, all inputs into the CLI can be assumed to be queries.

A query can be the LMS identifier, another identifying field, or a combination of the two (referred to as a "label"). The allowed identifying fields varies depending on the object you are referring to, but is generally straightforward. For example, a user can also be identified by their email or full name, while an assignment can be identified by its full name. Labels combine the identifying field with the LMS id, and are most commonly used by the LMS Toolkit when outputting information. For example, a user may be identified by any of the following:

Query Type Query
Email sslug@test.edulinq.org
Name Sammy Slug
ID 123
Label (Email) sslug@test.edulinq.org (123)
Label (Name) Sammy Slug (123)

Output Formats

Many commands can output data in three different formats:

  • Text (--format text) -- A human-readable format (usually the default).
  • Table (--format table) -- A tab-separated table.
  • JSON (--format json) -- A JSON object/list.

Retrieval Operations

When retrieving data from the LMS, this project tends to use two different types of operations:

  • list -- List out all the available entries, e.g., list all the users in a course.
  • get -- Get a collection of entries by query, e.g., get several users by their email.

CLI Tools

All CLI tools can be invoked with -h / --help to see the full usage and all options.

List Course Users

Course users can be listed using the lms.cli.courses.users.list tool. For example:

python3 -m lms.cli.courses.users.list

Get Course Users

To get information about course users, use the lms.cli.courses.users.get tool. For example:

python3 -m lms.cli.courses.users.get sslug@test.edulinq.org

Any number of user queries may be specified.

List Assignments

Course assignments can be listed using the lms.cli.courses.assignments.list tool. For example:

python3 -m lms.cli.courses.assignments.list

Get Assignments

To get information about course assignments, use the lms.cli.courses.assignments.get tool. For example:

python3 -m lms.cli.courses.assignments.get 'Homework 1'

Any number of assignment queries may be specified.

LMS Coverage

The LMS Toolkit is constantly expanding its support with hopes for supporting all major LMSs.

Legend:

  • + -- Supported
  • - -- Not Yet Supported
  • x -- Support Impossible (See Notes)
Feature Canvas Moodle
lms.cli.courses.get + -
lms.cli.courses.list + -
lms.cli.courses.assignments.get + -
lms.cli.courses.assignments.list + -
lms.cli.courses.assignments.scores.get + -
lms.cli.courses.assignments.scores.list + -
lms.cli.courses.users.get + -
lms.cli.courses.users.list + -
lms.cli.courses.users.scores.get + -
lms.cli.courses.users.scores.list + -
lms.cli.server.identify + +

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

edq_lms_toolkit-1.0.7.tar.gz (76.7 kB view details)

Uploaded Source

Built Distribution

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

edq_lms_toolkit-1.0.7-py3-none-any.whl (119.8 kB view details)

Uploaded Python 3

File details

Details for the file edq_lms_toolkit-1.0.7.tar.gz.

File metadata

  • Download URL: edq_lms_toolkit-1.0.7.tar.gz
  • Upload date:
  • Size: 76.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for edq_lms_toolkit-1.0.7.tar.gz
Algorithm Hash digest
SHA256 0c5f6cfc503a8e04d4afdbf18cb5e0d44252e5d9142150ee463526d03ac0cc23
MD5 fca6263b0aca2372ca8dfad269183f1c
BLAKE2b-256 fdb7d07d1bc866b05c2cc626d2b60f10f158cff613bdbeb62ea06db348eef1af

See more details on using hashes here.

File details

Details for the file edq_lms_toolkit-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: edq_lms_toolkit-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 119.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for edq_lms_toolkit-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 09cce4bc7d2ed043de5235f2409f5a74139d5d4a5d3bf3c29132e393e353a212
MD5 a180c0ed5e882c21027ffa3535621a74
BLAKE2b-256 5b44882eab71c8a64169ab586815445d22729b44cad8bfa3baff99a87d282904

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