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.1.3.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

canvas_client-0.1.3-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: canvas_client-0.1.3.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 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.1.3.tar.gz
Algorithm Hash digest
SHA256 c1b7c7cf11542db60057c73ecc886858a9c9fd7ca99d01fdf08f53db9fd9d7f3
MD5 fefbe4b1727c3dba2bd7f321b59cf2d6
BLAKE2b-256 c0013d05f5b2917cb96051b6d60bdb36602dba293bb753b98932d1ea986bd973

See more details on using hashes here.

File details

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

File metadata

  • Download URL: canvas_client-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 20386651b832fbfe8a9a12d4c14d80a011eeb56ce990fcdf7bac936489b9e596
MD5 5319cc65e34ba248b5aa2cec490e652a
BLAKE2b-256 c2d78c38cdcdbc9b1d646ec13ee7d6fd9b65d39b91ff496448ca00471f7729f3

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