Skip to main content

Utilities for interacting with Canvas using Python and the canvasapi.

Project description

CanvasUtils

Utilities for interacting with Canvas using Python and the canvasapi.

Installation

pip install canvasutils

canvasutils depends on the ipywidgets packages. To make sure widgets render correctly in notebooks, you may need to enable the widgets extension in Jupyter following these instructions in the ipywidgets docs, in particular, follow these instructions if using Jupyter Lab.

Features

  • Submit files to Canvas from within a Jupyter notebook.
  • Convert files to formats like .html from with canvas.
  • Create assignments (coming)
  • Create assignment rubrics (coming)

Dependencies

See the file pyproject.toml, [tool.poetry.dependencies].

Usage

Assignment Submission in Jupyter

The submit module is made to be used within a Jupyter notebook (.ipynb file):

api_url = "https://canvas.instructure.com/"
course_code = 123456

from canvasutils.submit import submit
submit(course_code, api_url=api_url, token_present=False)  # token present false allows you to enter token interactively.

Notebook Conversion in Jupyter

from canvasutils.submit import convert_notebook
convert_notebook('example.ipynb', to_format="html")

Notebook successfully converted!

Contributors

Contributions are welcomed and recognized. You can see a list of contributors in the contributors tab.

Credits

This package was originally based on this repository created by Emily Gubski and Steven Wolfram.

Lecture Notebook Recordings Practice Exercises
1 ✔️
2 ✔️
3
4
5
6
7
8
Lab Draft Complete
1 ✔️
2 ✔️
3 ✔️
4

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

canvasutils-0.2.1.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

canvasutils-0.2.1-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

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