canvas 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of canvas might be problematic. Click here for more details.
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: canvas
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: SDK to customize event-driven actions in your Canvas instance
|
|
5
|
+
License: MIT
|
|
6
|
+
Author: Canvas Team
|
|
7
|
+
Author-email: engineering@canvasmedical.com
|
|
8
|
+
Requires-Python: >=3.12,<4.0
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Requires-Dist: canvas-brush (>=1.2.2,<2.0.0)
|
|
13
|
+
Requires-Dist: canvas-core (>=0.84.1,<0.85.0)
|
|
14
|
+
Requires-Dist: typer (>=0.9.0,<0.10.0)
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
### Getting Started
|
|
18
|
+
|
|
19
|
+
`pip install canvas`
|
|
20
|
+
|
|
21
|
+
**Usage**:
|
|
22
|
+
|
|
23
|
+
```console
|
|
24
|
+
$ canvas [OPTIONS] COMMAND [ARGS]...
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Options**:
|
|
28
|
+
|
|
29
|
+
- `--no-ansi`: Disable colorized output
|
|
30
|
+
- `--version`
|
|
31
|
+
- `--verbose`: Show extra output
|
|
32
|
+
- `--install-completion`: Install completion for the current shell.
|
|
33
|
+
- `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
|
|
34
|
+
- `--help`: Show this message and exit.
|
|
35
|
+
|
|
36
|
+
**Commands**:
|
|
37
|
+
|
|
38
|
+
- `auth`: Manage authenticating in Canvas instances
|
|
39
|
+
- `logs`: Listens and prints log streams from the instance
|
|
40
|
+
- `plugin`: Manage plugins in a Canvas instance
|
|
41
|
+
- `print-config`: Print the config and exit
|
|
42
|
+
|
|
43
|
+
## `canvas auth`
|
|
44
|
+
|
|
45
|
+
Manage authenticating in Canvas instances
|
|
46
|
+
|
|
47
|
+
**Usage**:
|
|
48
|
+
|
|
49
|
+
```console
|
|
50
|
+
$ canvas auth [OPTIONS] COMMAND [ARGS]...
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Options**:
|
|
54
|
+
|
|
55
|
+
- `--help`: Show this message and exit.
|
|
56
|
+
|
|
57
|
+
**Commands**:
|
|
58
|
+
|
|
59
|
+
- `add-api-key`: Add a host=api-key pair to the keychain, so it can be used in other requests
|
|
60
|
+
- `get-api-key`: Print the api_key for the given host
|
|
61
|
+
- `remove-api-key`: Removes a host from the keychain, and as the default if it's the one
|
|
62
|
+
- `set-default-host`: Set the host as the default host in the config file
|
|
63
|
+
|
|
64
|
+
### `canvas auth add-api-key`
|
|
65
|
+
|
|
66
|
+
Add a host=api-key pair to the keychain, so it can be used in other requests.
|
|
67
|
+
Optionally set a default so `--host` isn't required everywhere
|
|
68
|
+
|
|
69
|
+
**Usage**:
|
|
70
|
+
|
|
71
|
+
```console
|
|
72
|
+
$ canvas auth add-api-key [OPTIONS]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**Options**:
|
|
76
|
+
|
|
77
|
+
- `--host TEXT`: [required]
|
|
78
|
+
- `--api-key TEXT`: [required]
|
|
79
|
+
- `--is-default / --no-is-default`: [required]
|
|
80
|
+
- `--help`: Show this message and exit.
|
|
81
|
+
|
|
82
|
+
### `canvas auth get-api-key`
|
|
83
|
+
|
|
84
|
+
Print the api_key for the given host.
|
|
85
|
+
|
|
86
|
+
**Usage**:
|
|
87
|
+
|
|
88
|
+
```console
|
|
89
|
+
$ canvas auth get-api-key [OPTIONS] HOST
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Arguments**:
|
|
93
|
+
|
|
94
|
+
- `HOST`: [required]
|
|
95
|
+
|
|
96
|
+
**Options**:
|
|
97
|
+
|
|
98
|
+
- `--help`: Show this message and exit.
|
|
99
|
+
|
|
100
|
+
### `canvas auth remove-api-key`
|
|
101
|
+
|
|
102
|
+
Removes a host from the keychain, and as the default if it's the one.
|
|
103
|
+
This method always succeeds, regardless of username existence.
|
|
104
|
+
|
|
105
|
+
**Usage**:
|
|
106
|
+
|
|
107
|
+
```console
|
|
108
|
+
$ canvas auth remove-api-key [OPTIONS] HOST
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**Arguments**:
|
|
112
|
+
|
|
113
|
+
- `HOST`: [required]
|
|
114
|
+
|
|
115
|
+
**Options**:
|
|
116
|
+
|
|
117
|
+
- `--help`: Show this message and exit.
|
|
118
|
+
|
|
119
|
+
### `canvas auth set-default-host`
|
|
120
|
+
|
|
121
|
+
Set the host as the default host in the config file. Validates it exists in the keychain.
|
|
122
|
+
|
|
123
|
+
**Usage**:
|
|
124
|
+
|
|
125
|
+
```console
|
|
126
|
+
$ canvas auth set-default-host [OPTIONS] HOST
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**Arguments**:
|
|
130
|
+
|
|
131
|
+
- `HOST`: [required]
|
|
132
|
+
|
|
133
|
+
**Options**:
|
|
134
|
+
|
|
135
|
+
- `--help`: Show this message and exit.
|
|
136
|
+
|
|
137
|
+
## `canvas logs`
|
|
138
|
+
|
|
139
|
+
Listens and prints log streams from the instance.
|
|
140
|
+
|
|
141
|
+
**Usage**:
|
|
142
|
+
|
|
143
|
+
```console
|
|
144
|
+
$ canvas logs [OPTIONS]
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Options**:
|
|
148
|
+
|
|
149
|
+
- `--host TEXT`: Canvas instance to connect to
|
|
150
|
+
- `--api-key TEXT`: Canvas api-key for the provided host
|
|
151
|
+
- `--help`: Show this message and exit.
|
|
152
|
+
|
|
153
|
+
## `canvas plugin`
|
|
154
|
+
|
|
155
|
+
Manage plugins in a Canvas instance
|
|
156
|
+
|
|
157
|
+
**Usage**:
|
|
158
|
+
|
|
159
|
+
```console
|
|
160
|
+
$ canvas plugin [OPTIONS] COMMAND [ARGS]...
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Options**:
|
|
164
|
+
|
|
165
|
+
- `--help`: Show this message and exit.
|
|
166
|
+
|
|
167
|
+
**Commands**:
|
|
168
|
+
|
|
169
|
+
- `delete`: Delete a disabled plugin from an instance
|
|
170
|
+
- `init`: Create a plugin from a template using Cookiecutter
|
|
171
|
+
- `install`: Installs a given Python package into a running Canvas instance
|
|
172
|
+
- `list`: Lists all plugins from the instance
|
|
173
|
+
- `update`: Updates a plugin from an instance
|
|
174
|
+
|
|
175
|
+
### `canvas plugin delete`
|
|
176
|
+
|
|
177
|
+
Delete a disabled plugin from an instance.
|
|
178
|
+
|
|
179
|
+
**Usage**:
|
|
180
|
+
|
|
181
|
+
```console
|
|
182
|
+
$ canvas plugin delete [OPTIONS] NAME
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Arguments**:
|
|
186
|
+
|
|
187
|
+
- `NAME`: Plugin name to delete [required]
|
|
188
|
+
|
|
189
|
+
**Options**:
|
|
190
|
+
|
|
191
|
+
- `--host TEXT`: Canvas instance to connect to
|
|
192
|
+
- `--api-key TEXT`: Canvas api-key for the provided host
|
|
193
|
+
- `--help`: Show this message and exit.
|
|
194
|
+
|
|
195
|
+
### `canvas plugin init`
|
|
196
|
+
|
|
197
|
+
Create a plugin from a template using Cookiecutter.
|
|
198
|
+
|
|
199
|
+
**Usage**:
|
|
200
|
+
|
|
201
|
+
```console
|
|
202
|
+
$ canvas plugin init [OPTIONS] [TEMPLATE]
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**Arguments**:
|
|
206
|
+
|
|
207
|
+
- `[TEMPLATE]`: [default: (dynamic)]
|
|
208
|
+
|
|
209
|
+
**Options**:
|
|
210
|
+
|
|
211
|
+
- `--no-input`: Don't prompt the user at command line
|
|
212
|
+
- `--help`: Show this message and exit.
|
|
213
|
+
|
|
214
|
+
### `canvas plugin install`
|
|
215
|
+
|
|
216
|
+
Installs a given Python package into a running Canvas instance.
|
|
217
|
+
|
|
218
|
+
**Usage**:
|
|
219
|
+
|
|
220
|
+
```console
|
|
221
|
+
$ canvas plugin install [OPTIONS] PACKAGE
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
**Arguments**:
|
|
225
|
+
|
|
226
|
+
- `PACKAGE`: Path to either a dir or wheel or sdist file containing the python package to install [required]
|
|
227
|
+
|
|
228
|
+
**Options**:
|
|
229
|
+
|
|
230
|
+
- `--host TEXT`: Canvas instance to connect to
|
|
231
|
+
- `--api-key TEXT`: Canvas api-key for the provided host
|
|
232
|
+
- `--help`: Show this message and exit.
|
|
233
|
+
|
|
234
|
+
### `canvas plugin list`
|
|
235
|
+
|
|
236
|
+
Lists all plugins from the instance.
|
|
237
|
+
|
|
238
|
+
**Usage**:
|
|
239
|
+
|
|
240
|
+
```console
|
|
241
|
+
$ canvas plugin list [OPTIONS]
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
**Options**:
|
|
245
|
+
|
|
246
|
+
- `--host TEXT`: Canvas instance to connect to
|
|
247
|
+
- `--api-key TEXT`: Canvas api-key for the provided host
|
|
248
|
+
- `--help`: Show this message and exit.
|
|
249
|
+
|
|
250
|
+
### `canvas plugin update`
|
|
251
|
+
|
|
252
|
+
Updates a plugin from an instance.
|
|
253
|
+
|
|
254
|
+
**Usage**:
|
|
255
|
+
|
|
256
|
+
```console
|
|
257
|
+
$ canvas plugin update [OPTIONS] NAME
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
**Arguments**:
|
|
261
|
+
|
|
262
|
+
- `NAME`: Plugin name to update [required]
|
|
263
|
+
|
|
264
|
+
**Options**:
|
|
265
|
+
|
|
266
|
+
- `--package PATH`: Path to a wheel or sdist file containing the python package to install
|
|
267
|
+
- `--enable / --disable`: Enable/disable the plugin
|
|
268
|
+
- `--host TEXT`: Canvas instance to connect to
|
|
269
|
+
- `--api-key TEXT`: Canvas api-key for the provided host
|
|
270
|
+
- `--help`: Show this message and exit.
|
|
271
|
+
|
|
272
|
+
## `canvas print-config`
|
|
273
|
+
|
|
274
|
+
Simple command to print the config and exit.
|
|
275
|
+
|
|
276
|
+
**Usage**:
|
|
277
|
+
|
|
278
|
+
```console
|
|
279
|
+
$ canvas print-config [OPTIONS]
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
**Options**:
|
|
283
|
+
|
|
284
|
+
- `--help`: Show this message and exit.
|
|
285
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
canvas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
canvas/main.py,sha256=UPjM6iDT_aI30Ur0LHIt3tTiHlalVRn6OEquJhoZVc0,635
|
|
3
|
+
canvas-0.1.3.dist-info/METADATA,sha256=ZEX0jOi9Rh66XblLuj1gNYKY7Vb0SeiCoSN2cTDD7ys,5801
|
|
4
|
+
canvas-0.1.3.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
5
|
+
canvas-0.1.3.dist-info/entry_points.txt,sha256=hsTDoLuwUTBak71S0KIxgSq-SVzf89Gh56UpbNwz5V8,42
|
|
6
|
+
canvas-0.1.3.dist-info/RECORD,,
|
canvas-0.1.1.dist-info/METADATA
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: canvas
|
|
3
|
-
Version: 0.1.1
|
|
4
|
-
Summary: SDK to customize event-driven actions in your Canvas instance
|
|
5
|
-
License: MIT
|
|
6
|
-
Author: Canvas Team
|
|
7
|
-
Author-email: engineering@canvasmedical.com
|
|
8
|
-
Requires-Python: >=3.12,<4.0
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
-
Requires-Dist: canvas-core (>=0.84.1,<0.85.0)
|
|
13
|
-
Requires-Dist: typer (>=0.9.0,<0.10.0)
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
|
|
16
|
-
### Getting Started
|
|
17
|
-
|
|
18
|
-
Here's how to set up `canvas-sdk` for local development:
|
|
19
|
-
|
|
20
|
-
1. Fork the `canvas-sdk` repo on GitHub.
|
|
21
|
-
2. Clone your fork locally: `git clone git@github.com:canvas-medical/canvas-sdk.git`
|
|
22
|
-
3. Navigate to your clone: `cd canvas-sdk`
|
|
23
|
-
4. Install the dependencies: `poetry install`
|
|
24
|
-
5. Activate the virtualenv: `poetry shell`
|
|
25
|
-
6. Install the pre-commit hooks: `pre-commit install --install-hooks`
|
|
26
|
-
|
canvas-0.1.1.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
canvas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
canvas/main.py,sha256=UPjM6iDT_aI30Ur0LHIt3tTiHlalVRn6OEquJhoZVc0,635
|
|
3
|
-
canvas-0.1.1.dist-info/METADATA,sha256=oyJvwycDo13bYN0ieGCCbi_gCm6MY6TKGiNDfA0v41Y,911
|
|
4
|
-
canvas-0.1.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
5
|
-
canvas-0.1.1.dist-info/entry_points.txt,sha256=hsTDoLuwUTBak71S0KIxgSq-SVzf89Gh56UpbNwz5V8,42
|
|
6
|
-
canvas-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|