Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/GideonWolfe/canvas-tui

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/GideonWolfe/canvas-tui

  • v0.0.0-20210829212035-919f2a7f8d40
  • Source
  • Go
  • Socket score

Version published
Created
Source

canvas-tui

canvas-tui is a terminal interface that allows you to view statistics scraped from the Canvas API.

Some details obscured for privacy

The goal of this project is to not only allow easy viewing of upcoming assignments and due dates, but to provide new metrics and data visualizations that are not included in the default canvas interface.

grades

Usage

The top bar is called the tab bar, and there should be one tab per enrolled course, plus a dashboard. You can use the h and l keys to navigate left and right respectively, and Enter to make a selection.

On a course page, you can use j and k to scroll down and up the list of pages provided by the canvas course. press Space to select a page. Currently only a few generic page types are supported for native viewing. To open any page in the browser, simply press o while viewing that page.

Configuration

TO generate a new canvas token, head to your Canvas Settings -> Approved Integrations -> Generate New Token.

Name it whatever you want, but save the generated token. The config.yaml file should be in $HOME/.config/canvas-tui, with the following contents:

canvasdomain: "https://your.schools.canvas.com"
canvastoken: "token from earlier"

Yes, it is quite slow to start up for a TUI application. This is because the vast majority of API calls and data processing are happening at startup, so it is limited to the speed of the API. However once loaded, it should be quite snappy.

Installation

Run the following commands to install the dependencies:

  • GO111MODULE=on go get github.com/spf13/viper
  • go get github.com/gizak/termui
  • go get github.com/gizak/termui/widgets
  • go get github.com/grokify/html-strip-tags-go

TODO list

  • Fix score line chart (waiting on PR in termui)
  • Scrollable widgets (syllabus, grades, etc, waiting on PR in termui)
  • Fix old classes (mostly labs) sticking around in courses
  • Fix grade table formatting bug
  • Open pages in browser
  • Add labels to grade plot (waiting on PR in termui)

FAQs

Package last updated on 29 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc