Canvas Connector
A Python package for easily connecting to the Canvas LMS API.
Features
- Easy authentication with Canvas API
- Fetch courses, assignments, and grades
- Get peer information
- Track upcoming assignments
- Discussion board interactions
- Submit assignments and post comments
- Built with Polars for fast data processing
Installation
Using uv (recommended)
uv pip install git+https://github.com/byuirpytooling/canvasconnector.git
Using pip
pip install git+https://github.com/byuirpytooling/canvasconnector.git
For development (contributing)
git clone https://github.com/YOUR-USERNAME/canvasconnector.git
cd canvasconnector
uv venv
uv sync
Setup
1. Get Your Canvas API Token
- Log into Canvas
- Go to Account → Settings
- Scroll to "Approved Integrations"
- Click "+ New Access Token"
- Copy the token (you won't see it again!)
2. Create a .env file
CANVAS_API_TOKEN=your_canvas_api_token_here
CANVAS_URL=https://byui.instructure.com
TIMEZONE=America/Denver
Important: Add .env to your .gitignore to keep your token private!
Quick Start
from canvasconnector import CanvasClient, get_courses_polars
from dotenv import load_dotenv
import os
load_dotenv()
client = CanvasClient(
api_key=os.getenv("CANVAS_API_TOKEN"),
canvas_url=os.getenv("CANVAS_URL"),
timezone=os.getenv("TIMEZONE")
)
courses = get_courses_polars(client, current_only=True)
print(courses)
Documentation
For detailed usage examples, see the Code Examples guide.
Metadata
Release files for canvasconnector 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| canvasconnector-0.0.2.tar.gz | 11.2 kB | With provenance | Details for canvasconnector-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| canvasconnector-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for canvasconnector-0.0.2-py3-none-any.whl |
Total release size: 27.0 kB
Release files / canvasconnector-0.0.2.tar.gz
| Download URL | canvasconnector-0.0.2.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61a5d3af966c37acd77b41124d930a10856d56abe843919af60a3c0a51c4a974
|
|
BLAKE2b-256 checksum How to use checksums |
f38ae9b5a4b5cf6d492d1d5f2af8542eacfe7e9c440d4390377f682c872d6da6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 23, 2026.
Transparency logRelease files / canvasconnector-0.0.2-py3-none-any.whl
| Download URL | canvasconnector-0.0.2-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21f1cec6fb46180dfc632c3ef59d01ba54e866736136ab4809eac0e403f636e2
|
|
BLAKE2b-256 checksum How to use checksums |
c5e82379b4168c474c84f31495401ec10a3ff28f5f5617651fbbc8065a0f8f0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 23, 2026.
Transparency logSecurity for canvasconnector 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for canvasconnector-0.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.