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:
--version
--help
: Show this message and exit.
Commands:
init
: Create a new plugininstall
: Install a plugin into a Canvas instanceuninstall
: Uninstall a plugin from a Canvas instancedisable
: Disable a plugin from a Canvas instanceenable
: Enable a plugin from a Canvas instancelist
: List all plugins from a Canvas instancevalidate-manifest
: Validate the Canvas Manifest json filelogs
: 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 enable
Enable a plugin from a Canvas instance..
Usage:
$ canvas enable [OPTIONS] NAME
Arguments:
NAME
: Plugin name to enable [required]
Options:
--host TEXT
: Canvas instance to connect to--help
: Show this message and exit.
canvas disable
Disable a plugin from a Canvas instance..
Usage:
$ canvas disable [OPTIONS] NAME
Arguments:
NAME
: Plugin name to disable [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
Built Distribution
File details
Details for the file canvas-0.3.1.tar.gz
.
File metadata
- Download URL: canvas-0.3.1.tar.gz
- Upload date:
- Size: 678.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9048764c71fb2e58257a5b330daa45b0b02cd0d46e3ec025b4f657a204ef2c42 |
|
MD5 | da6b8b1f9368ec9e68448392d4d4b9b9 |
|
BLAKE2b-256 | 5a3be348e664c81107298b24474e6207bb6c3e7ebcc51053233e10652ac449ce |
Provenance
The following attestation bundles were made for canvas-0.3.1.tar.gz
:
Publisher:
publish-and-release.yml
on canvas-medical/canvas-plugins
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
canvas-0.3.1.tar.gz
- Subject digest:
9048764c71fb2e58257a5b330daa45b0b02cd0d46e3ec025b4f657a204ef2c42
- Sigstore transparency entry: 145610047
- Sigstore integration time:
- Predicate type:
File details
Details for the file canvas-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: canvas-0.3.1-py3-none-any.whl
- Upload date:
- Size: 762.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72cc0212dd6339028e11e82374b1bcfffb7e27c0d4bdcff0b80e045c9f054bc5 |
|
MD5 | b060be9142b739f55bf2bb5fd0fd209c |
|
BLAKE2b-256 | 8aa32e2521b4b05d2a94c284ac8815734bc15de6ed25b70e9e9edb95fd4a32da |
Provenance
The following attestation bundles were made for canvas-0.3.1-py3-none-any.whl
:
Publisher:
publish-and-release.yml
on canvas-medical/canvas-plugins
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
canvas-0.3.1-py3-none-any.whl
- Subject digest:
72cc0212dd6339028e11e82374b1bcfffb7e27c0d4bdcff0b80e045c9f054bc5
- Sigstore transparency entry: 145610050
- Sigstore integration time:
- Predicate type: