Skip to main content

SDK to customize event-driven actions in your Canvas instance

Project description

Getting Started

Create a file ~/.canvas/credentials.ini and add the client_id and client_secret credentials for each of your Canvas instances. You can define your default host with is_default=true. If no default is explicitly defined, the Canvas CLI will use the first instance in the file as the default for each of the CLI commands.

Example:

[my-canvas-instance]
client_id=myclientid
client_secret=myclientsecret

[my-dev-canvas-instance]
client_id=devclientid
client_secret=devclientsecret
is_default=true

[localhost]
client_id=localclientid
client_secret=localclientsecret

Next, you're ready to install canvas.

pip install canvas

Usage:

$ canvas [OPTIONS] COMMAND [ARGS]...

Options:

  • --no-ansi: Disable colorized output
  • --version
  • --verbose: Show extra output
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • init: Create a new plugin
  • install: Install a plugin into a Canvas instance
  • uninstall: Uninstall a plugin from a Canvas instance
  • list: List all plugins from a Canvas instance
  • validate-manifest: Validate the Canvas Manifest json file
  • logs: Listen and print log streams from a Canvas instance

canvas init

Create a new plugin.

Usage:

$ canvas init [OPTIONS]

Options:

  • --help: Show this message and exit.

canvas install

Install a plugin into a Canvas instance.

Usage:

$ canvas install [OPTIONS] PLUGIN_NAME

Arguments:

  • PLUGIN_NAME: Path to plugin to install [required]

Options:

  • --host TEXT: Canvas instance to connect to
  • --help: Show this message and exit.

canvas uninstall

Uninstall a plugin from a Canvas instance..

Usage:

$ canvas uninstall [OPTIONS] NAME

Arguments:

  • NAME: Plugin name to delete [required]

Options:

  • --host TEXT: Canvas instance to connect to
  • --help: Show this message and exit.

canvas list

List all plugins from a Canvas instance.

Usage:

$ canvas list [OPTIONS]

Options:

  • --host TEXT: Canvas instance to connect to
  • --help: Show this message and exit.

canvas validate-manifest

Validate the Canvas Manifest json file.

Usage:

$ canvas validate-manifest [OPTIONS] PACKAGE

Arguments:

  • PLUGIN_NAME: Path to plugin to install [required]

Options:

  • --help: Show this message and exit.

canvas logs

Listens and prints log streams from the instance.

Usage:

$ canvas logs [OPTIONS]

Options:

  • --host TEXT: Canvas instance to connect to
  • --help: Show this message and exit.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

canvas-0.1.5.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

canvas-0.1.5-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

Details for the file canvas-0.1.5.tar.gz.

File metadata

  • Download URL: canvas-0.1.5.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.9 Darwin/23.4.0

File hashes

Hashes for canvas-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f6ead00eda77fbfe0fc7c7feb53210ded43eede77daa2963709480d5262c4ead
MD5 0bfcc9cf811d7e3f1cc89ddefcaeafda
BLAKE2b-256 e61c1aef66fca881fe88d7bf5f243ae4913cda8feb8a4477b03045bf4ca7a80c

See more details on using hashes here.

File details

Details for the file canvas-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: canvas-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 43.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.9 Darwin/23.4.0

File hashes

Hashes for canvas-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 31750e330040bc6a732f5139cedc0f14271dfbef2307236071d74003a9f8d7c8
MD5 692a3a8aba0528e76939a1f56a1f0fe1
BLAKE2b-256 930fc17b547989b2eed5ffc7df46874e5b57bb07c2f285834342bc81d7a1b4da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page