Skip to main content

Canvas LMS client: Download submissions, upload grades and comments from excel

Project description

Canvas client

A python client for grading canvas submissions.

Install

  1. Make sure you have installed pip and python3

  2. Install the client: pip install canvas_client

Setup

  1. Create and open a folder where you want to download the submissions

  2. Create a config.json file by running canvas_client in terminal (the config will be saved in the current folder)

  3. Fill the config properly (see the notes below):

    • e.g:

        {
            "url": "canvas.university.edu",
            "access_token": "1234abcdef",
            "course_id": 157,
            "labs": {
                "L1": {
                    "assignment_id": 1024
                },
                "L2": {
                    "assignment_id": 1025
                }
            }
        }
      

      Note$^1$: you can find the course id and assingment id by opening the approriate assingment in canvas: alt text

      Note$^2$: to get an access token: open canvas, go to Your profile -> Settings -> New access token -> Generate Token -> copy the value

Usage

  1. Download the submissions:

    canvas_client <assingment name> -d

    e.g.:

    canvas_client L1 -d

    This command downloads the submissions into the assigments folder and creates an L1.xls file with the student names, comments, etc. Write the grades and comments into this file.

  2. To upload the grades and comments:

    canvas_client <assingment_name> -u e.g.: canvas_client L1 -u

    This command uploads the content of the L1.xls

    Note: the grades will appear on canvas after 10-15 seconds (refresh the page if necessary)

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

canvas_client-0.2.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

canvas_client-0.2.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: canvas_client-0.2.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for canvas_client-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c1db685e0af129cc48be4d0b49044f75df0512c9948038503d7145b396893139
MD5 da15c0444fc2a233a955849fab9c698e
BLAKE2b-256 e4a9b3811d4da6be332656140951e3892b34987ff12f58da613f09963572e59a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: canvas_client-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for canvas_client-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b00e015aff0648626e86e3be3154f2a2559fb19ff76db8414826f6c8643038b8
MD5 088d031f05d663305a6893fa79e6d3e5
BLAKE2b-256 fb5c50269297881a0be593c0691766cb2e96482775a5a8a6c26871f2c9420c3b

See more details on using hashes here.

Supported by

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