Skip to main content

A command-line tool for managing Canvas courses, fetching assignments, and grades.

Project description

Canvas Pilot

PyPI - Python Version

A command-line tool for managing your Canvas courses, fetching assignments, and grades.

Installation

To install the Canvas CLI, run the following command:

pip install canvas-pilot

Configuration

Before using the Canvas CLI, you'll need to configure it with your Canvas API key and domain.

Retrieving your Canvas API Key

To retrieve your Canvas API key, follow these steps:

  1. Log in to your Canvas account.
  2. Click on "Account" in the left-hand side menu.
  3. Click on "Settings" from the dropdown.
  4. Scroll down to the "Approved Integrations" section and click on "+ New Access Token".
  5. In the pop-up window, optionally enter a purpose for the token and set its expiry date.
  6. Click on "Generate Token".
  7. Copy the token displayed in the "Token" field. This is your Canvas API key.

Important: Keep your API key safe and secure, like you would with a password. Don't share it with anyone.

Getting your Canvas Domain

Your Canvas domain is the URL you use to access Canvas. For example, if you access Canvas by navigating to https://canvas.<yourinstitution>.com, then your Canvas domain is canvas.<yourinstitution>.com.

Once you have your API key and domain, run the following command and follow the prompts to configure the Canvas CLI:

canvas configure

You can reconfigure the Canvas API key and domain at any time by running:

canvas reconfigure

Usage

Fetch Courses

To fetch the list of your Canvas courses, run:

canvas fetch courses

Fetch Assignments

To fetch assignments for all your Canvas courses, run:

canvas fetch assignments

To fetch assignments for a specific course, provide the course ID:

canvas fetch assignments <course_id>

To export the assignments/exams deadlines to an .ics file, add the -e or --export flag:

canvas fetch assignments --export

Fetch Grades

To fetch grades for all your Canvas courses, run:

canvas fetch grades

To fetch grades for a specific course, provide the course ID:

canvas fetch grades <course_id>

To export the grades to a .csv file, add the -e or --export flag:

canvas fetch grades --export

Help

To display help information for the command-line interface and its subcommands, run:

canvas --help

Contributing

Contributions are welcome! If you find a bug, have a feature request, or want to improve the Canvas CLI, please open an issue or submit a pull request.

License

This project is licensed under the GPLv3+ License. See the LICENSE file for details.

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-pilot-0.1.2.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

canvas_pilot-0.1.2-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file canvas-pilot-0.1.2.tar.gz.

File metadata

  • Download URL: canvas-pilot-0.1.2.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for canvas-pilot-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fce9bf2d72538281345416b1636b1c236b9d12499a51cb34864d4c1d9549be18
MD5 daf1ba32d697d8a6b4f04ef20932dea9
BLAKE2b-256 7137ea07c7b3d06c02a45f74172d11daa6d2c749605662214c95403c59412b49

See more details on using hashes here.

File details

Details for the file canvas_pilot-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: canvas_pilot-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for canvas_pilot-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c08bd3a04f20e3fe17a6b4ba9fb70746073edcf334a5f7501b4077243970bbf5
MD5 a8f655661b8e551dad23ff4360f11d5a
BLAKE2b-256 c128f7e21a8daab1bc77cd5a7b044d6091efafaa2f08c20c92c7a7ec471ceb57

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