Git Product home page Git Product logo

canvas-learning-mastery-grader's Introduction

Canvas-Learning-Mastery-Grader

Automatically grade learning mastery in Canvas

How it Works

  1. It gets all courses the authenticated user has access to
  2. Then it searches for an assignment equal to the GRADING_ASSIGNMENT_NAME environment variable
  3. For each course that contains this, it iterates over every student in the course geting their outcome grades and generating percentages for each outcome
  4. It averages those percentages and sets the grading assignments grade based on the scale of its maximum points

Setup

  1. Clone/Download this repo
  2. Go to Canvas and generate an Oauth Api Token
    • Enter in http://127.0.0.1:5005/oauth/callback as a URI Redirect
    • If you choose to enforce scopes, enable the following:
      • Assignments Api
        • url:GET|/api/v1/courses/:course_id/assignments
      • Courses
        • url:GET|/api/v1/courses
        • url:GET|/api/v1/courses/:course_id/students
      • Grading Periods
        • url:GET|/api/v1/courses/:course_id/grading_periods
      • Outcome Groups Api
        • url:GET|/api/v1/courses/:courses/outcome_groups/:id/outcomes
        • url:GET|/api/v1/courses/:courses/outcome_groups/:id/subgroups
        • url:GET|/api/v1/courses/:course_id/outcome_groups
      • Outcome Results
        • url:GET|/api/v1/courses/:course_id/outcome_results
        • url:GET|/api/v1/courses/:course_id/outcome_rollups
      • Submissions Api
        • url:PUT|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id
        • url:GET|/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id
  3. Copy .env.example to .env and adjust it accordingly
    • CANVAS_API_URL is the base url of your canvas instance (ie. https://example.instructure.com)
    • CLIENT_ID is the non-hidden api number on Canvas (ie. 10000000000001)
    • CLIENT_SECRET is the hidden api alphanumeric code on Canvas
    • For the default Oauth Signin, leave REFRESH_TOKEN and API_TOKEN as is. However, if you plan to run this headless, you may want to fill them in with values generated elsewhere
    • GRADING_ASSIGNMENT_NAME is the name of the assignment you want to give weight to for learning mastery (NOTE: This assignment must already exist)
  4. That's it! You are all set to run main.py

canvas-learning-mastery-grader's People

Contributors

mcrich23 avatar

Stargazers

 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.