Skip to content

ubccapico/course-reset-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canvas Course Reset Script

This script will delete the contents of a course without deleting the course shell. This updated script also features a graphical user interface that will make it easier for users to interact with the script.

User Interface Design

Start Window Progress Window Summary Window

Getting Started

Requirements:

  • Python 3.9 or later - can be downloaded from here

Please ensure that the Add Python 3.X to PATH checkbox is checked

Ex. For https://canvas.ubc.ca/courses/1326, 1326 is the Course ID

How to get a Canvas API token

  1. Log in to Canvas.
  2. Click on Account on the Global Navigation menu.
  3. Select Settings.

Steps 2 and 3 on how to get a Canvas API token

  1. Under the Approved Integrations section, click on the + New Access Token button.

New Access Token button

  1. In the pop-up window, fill in the Purpose field.
  2. Click on the Generate Token button.

Steps 5 and 6 on how to get a Canvas API token

  1. Copy and paste the token provided to you onto a secure text file on your local machine.

Access Token Details

Note: Once you close this window, you will not be able to access this token again. Therefore, a new token will need to be generated if you lose your current one.

Setting up the environment:

  1. Clone the repository into your local computer.
  2. Install the libraries needed by running a pip install in the terminal.
pip install -r requirements.txt

Running the Python Script:

  1. Open the accesstoken.py file using Notepad or Visual Studio Code.
  2. Copy and paste your Canvas API Token in the access_token field. Then, save the file.
  3. Right-click on the main.py script and select Edit with IDLE > Edit with IDLE 3.10.

Step 3 on how to Run the Python Script

  1. Click Run > Run Module.

Step 4 on how to Run the Python Script

  1. Fill in the prompts in the application window and click Submit to proceed with the course reset.
  2. Once the script has finished running, a pop-up window will show a summary of what has been deleted. There is also a Go to Course button that will redirect you to the Canvas course page so that you may review the course.

About

From Arts LC - developed by Jon Guarin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages