Canvas Pilot
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:
- Log in to your Canvas account.
- Click on "Account" in the left-hand side menu.
- Click on "Settings" from the dropdown.
- Scroll down to the "Approved Integrations" section and click on "+ New Access Token".
- In the pop-up window, optionally enter a purpose for the token and set its expiry date.
- Click on "Generate Token".
- 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 configure again. You will be prompted to update your keys.
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.
Release files for canvas-pilot 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| canvas-pilot-0.1.3.tar.gz | 17.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| canvas_pilot-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.7 kB
Release files / canvas-pilot-0.1.3.tar.gz
| Download URL | canvas-pilot-0.1.3.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4d2c09fc9ab28af0c222d63b44ae6a7b58300fd7c20642a73b723d7906540dc
|
|
BLAKE2b-256 checksum How to use checksums |
5ce7f143b134b37e1e809afa203d2490e849f225bc1e449b4cdbb7a5e69e4777
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Release files / canvas_pilot-0.1.3-py3-none-any.whl
| Download URL | canvas_pilot-0.1.3-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c6686b03c05f46a437643b18754ef40e667e77405af16564ee5869de67f59ed
|
|
BLAKE2b-256 checksum How to use checksums |
01819c763891125514ff3d1e3889f49c22cbe11d8adb2b7ca5598fe7056aecd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|