pyegeria 0.7.45__py3-none-any.whl → 0.8.0__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.
Files changed (51) hide show
  1. examples/widgets/cat/list_cert_types.py +61 -43
  2. examples/widgets/cat/list_projects.py +1 -1
  3. examples/widgets/cli/egeria.py +18 -2
  4. examples/widgets/cli/egeria_tech.py +299 -98
  5. examples/widgets/my/my_profile_actions.py +51 -32
  6. examples/widgets/ops/engine_actions.py +35 -23
  7. examples/widgets/ops/integration_daemon_actions.py +51 -32
  8. examples/widgets/tech/get_element_info.py +63 -38
  9. examples/widgets/tech/get_guid_info.py +50 -27
  10. examples/widgets/tech/list_asset_types.py +33 -23
  11. examples/widgets/tech/list_elements.py +44 -34
  12. examples/widgets/tech/list_elements_x.py +69 -49
  13. examples/widgets/tech/list_registered_services.py +44 -24
  14. examples/widgets/tech/list_related_specification.py +70 -45
  15. examples/widgets/tech/list_relationship_types.py +50 -31
  16. examples/widgets/tech/list_valid_metadata_values.py +57 -28
  17. examples/widgets/tech/x_list_related_elements.py +54 -34
  18. pyegeria/Xloaded_resources_omvs.py +43 -41
  19. pyegeria/__init__.py +5 -1
  20. pyegeria/_client.py +142 -102
  21. pyegeria/_deprecated_gov_engine.py +218 -167
  22. pyegeria/action_author_omvs.py +107 -88
  23. pyegeria/asset_catalog_omvs.py +467 -395
  24. pyegeria/automated_curation_omvs.py +2 -2
  25. pyegeria/classification_manager_omvs.py +1920 -868
  26. pyegeria/collection_manager_omvs.py +1957 -1519
  27. pyegeria/core_omag_server_config.py +310 -192
  28. pyegeria/egeria_cat_client.py +88 -0
  29. pyegeria/egeria_config_client.py +37 -0
  30. pyegeria/egeria_my_client.py +47 -0
  31. pyegeria/egeria_ops_client.py +67 -0
  32. pyegeria/egeria_tech_client.py +77 -0
  33. pyegeria/feedback_manager_omvs.py +633 -631
  34. pyegeria/full_omag_server_config.py +330 -158
  35. pyegeria/glossary_browser_omvs.py +927 -474
  36. pyegeria/glossary_manager_omvs.py +1033 -543
  37. pyegeria/mermaid_utilities.py +1 -1
  38. pyegeria/my_profile_omvs.py +714 -574
  39. pyegeria/platform_services.py +228 -176
  40. pyegeria/project_manager_omvs.py +1158 -903
  41. pyegeria/registered_info.py +76 -74
  42. pyegeria/runtime_manager_omvs.py +749 -670
  43. pyegeria/server_operations.py +123 -85
  44. pyegeria/valid_metadata_omvs.py +268 -168
  45. {pyegeria-0.7.45.dist-info → pyegeria-0.8.0.dist-info}/METADATA +1 -1
  46. {pyegeria-0.7.45.dist-info → pyegeria-0.8.0.dist-info}/RECORD +49 -46
  47. examples/widgets/tech/list_gov_processes.py +0 -162
  48. pyegeria/tech_guids_31-08-2024 14:33.py +0 -79
  49. {pyegeria-0.7.45.dist-info → pyegeria-0.8.0.dist-info}/LICENSE +0 -0
  50. {pyegeria-0.7.45.dist-info → pyegeria-0.8.0.dist-info}/WHEEL +0 -0
  51. {pyegeria-0.7.45.dist-info → pyegeria-0.8.0.dist-info}/entry_points.txt +0 -0
@@ -24,8 +24,9 @@ from examples.widgets.tech.list_valid_metadata_values import display_metadata_va
24
24
  from examples.widgets.cat.get_tech_type_template import template_viewer
25
25
  from examples.widgets.tech.list_elements import list_elements
26
26
  from examples.widgets.tech.get_element_info import display_elements
27
- from examples.widgets.tech.list_related_specification import display_related_specification
28
-
27
+ from examples.widgets.tech.list_related_specification import (
28
+ display_related_specification,
29
+ )
29
30
 
30
31
 
31
32
  # from pyegeria import ServerOps
@@ -44,48 +45,143 @@ from examples.widgets.tech.list_related_specification import display_related_spe
44
45
  #
45
46
  # pass_config = click.make_pass_decorator(Config)
46
47
 
48
+
47
49
  # @tui
48
50
  # @tui('menu', 'menu', 'A textual command line interface')
49
51
  @tui()
50
52
  @click.version_option("0.0.1", prog_name="egeria_ops")
51
53
  @click.group()
52
- @click.option('--server', default='active-metadata-store', envvar='EGERIA_METADATA_STORE',
53
- help='Egeria metadata store to work with')
54
- @click.option('--url', default='https://localhost:9443', envvar='EGERIA_PLATFORM_URL',
55
- help='URL of Egeria metadata store platform to connect to')
56
- @click.option('--integration-daemon', default='integration-daemon', envvar='EGERIA_INTEGRATION_DAEMON',
57
- help='Egeria integration daemon to work with')
58
- @click.option('--integration_daemon_url', default='https://localhost:9443', envvar='EGERIA_INTEGRATION_DAEMON_URL',
59
- help='URL of Egeria integration daemon platform to connect to')
60
- @click.option('--view_server', default='view-server', envvar='EGERIA_VIEW_SERVER',
61
- help='Egeria view server to work with')
62
- @click.option('--view_server_url', default='https://localhost:9443', envvar='EGERIA_VIEW_SERVER_URL',
63
- help='URL of Egeria view server platform to connect to')
64
- @click.option('--engine_host', default='engine-host', envvar='EGERIA_ENGINE_HOST',
65
- help='Egeria engine host to work with')
66
- @click.option('--engine_host_url', default='https://localhost:9443', envvar='EGERIA_ENGINE_HOST_URL',
67
- help='URL of Egeria engine host platform to connect to')
68
- @click.option('--admin_user', default='garygeeke', envvar='EGERIA_ADMIN_USER', help='Egeria admin user')
69
- @click.option('--admin_user_password', default='secret', envvar='EGERIA_ADMIN_PASSWORD',
70
- help='Egeria admin password')
71
- @click.option('--userid', default='erinoverview', envvar='EGERIA_USER', help='Egeria user')
72
- @click.option('--password', default='secret', envvar='EGERIA_PASSWORD',
73
- help='Egeria user password')
74
- @click.option('--timeout', default=60, help='Number of seconds to wait')
75
- @click.option('--verbose', is_flag=True, default=False, help='Enable verbose mode')
76
- @click.option('--paging', is_flag=True, default=False, help='Enable paging snapshots vs live updates')
77
- @click.option('--jupyter', is_flag=True, default=False, envvar='EGERIA_JUPYTER',
78
- help='Enable for rendering in a Jupyter terminal')
79
- @click.option('--width', default=200, envvar='EGERIA_WIDTH', help='Screen width, in characters, to use')
80
- @click.pass_context
81
- def cli(ctx, server, url, view_server, view_server_url, integration_daemon, integration_daemon_url,
82
- engine_host, engine_host_url, admin_user, admin_user_password, userid, password, timeout, paging,
83
- verbose, jupyter, width):
84
- """An Egeria Command Line interface for Operations """
85
- ctx.obj = Config(server, url, view_server, view_server_url, integration_daemon,
86
- integration_daemon_url, engine_host, engine_host_url,
87
- admin_user, admin_user_password, userid, password,
88
- timeout, paging, verbose, jupyter, width)
54
+ @click.option(
55
+ "--server",
56
+ default="active-metadata-store",
57
+ envvar="EGERIA_METADATA_STORE",
58
+ help="Egeria metadata store to work with",
59
+ )
60
+ @click.option(
61
+ "--url",
62
+ default="https://localhost:9443",
63
+ envvar="EGERIA_PLATFORM_URL",
64
+ help="URL of Egeria metadata store platform to connect to",
65
+ )
66
+ @click.option(
67
+ "--integration-daemon",
68
+ default="integration-daemon",
69
+ envvar="EGERIA_INTEGRATION_DAEMON",
70
+ help="Egeria integration daemon to work with",
71
+ )
72
+ @click.option(
73
+ "--integration_daemon_url",
74
+ default="https://localhost:9443",
75
+ envvar="EGERIA_INTEGRATION_DAEMON_URL",
76
+ help="URL of Egeria integration daemon platform to connect to",
77
+ )
78
+ @click.option(
79
+ "--view_server",
80
+ default="view-server",
81
+ envvar="EGERIA_VIEW_SERVER",
82
+ help="Egeria view server to work with",
83
+ )
84
+ @click.option(
85
+ "--view_server_url",
86
+ default="https://localhost:9443",
87
+ envvar="EGERIA_VIEW_SERVER_URL",
88
+ help="URL of Egeria view server platform to connect to",
89
+ )
90
+ @click.option(
91
+ "--engine_host",
92
+ default="engine-host",
93
+ envvar="EGERIA_ENGINE_HOST",
94
+ help="Egeria engine host to work with",
95
+ )
96
+ @click.option(
97
+ "--engine_host_url",
98
+ default="https://localhost:9443",
99
+ envvar="EGERIA_ENGINE_HOST_URL",
100
+ help="URL of Egeria engine host platform to connect to",
101
+ )
102
+ @click.option(
103
+ "--admin_user",
104
+ default="garygeeke",
105
+ envvar="EGERIA_ADMIN_USER",
106
+ help="Egeria admin user",
107
+ )
108
+ @click.option(
109
+ "--admin_user_password",
110
+ default="secret",
111
+ envvar="EGERIA_ADMIN_PASSWORD",
112
+ help="Egeria admin password",
113
+ )
114
+ @click.option(
115
+ "--userid", default="erinoverview", envvar="EGERIA_USER", help="Egeria user"
116
+ )
117
+ @click.option(
118
+ "--password",
119
+ default="secret",
120
+ envvar="EGERIA_PASSWORD",
121
+ help="Egeria user password",
122
+ )
123
+ @click.option("--timeout", default=60, help="Number of seconds to wait")
124
+ @click.option("--verbose", is_flag=True, default=False, help="Enable verbose mode")
125
+ @click.option(
126
+ "--paging",
127
+ is_flag=True,
128
+ default=False,
129
+ help="Enable paging snapshots vs live updates",
130
+ )
131
+ @click.option(
132
+ "--jupyter",
133
+ is_flag=True,
134
+ default=False,
135
+ envvar="EGERIA_JUPYTER",
136
+ help="Enable for rendering in a Jupyter terminal",
137
+ )
138
+ @click.option(
139
+ "--width",
140
+ default=200,
141
+ envvar="EGERIA_WIDTH",
142
+ help="Screen width, in characters, to use",
143
+ )
144
+ @click.pass_context
145
+ def cli(
146
+ ctx,
147
+ server,
148
+ url,
149
+ view_server,
150
+ view_server_url,
151
+ integration_daemon,
152
+ integration_daemon_url,
153
+ engine_host,
154
+ engine_host_url,
155
+ admin_user,
156
+ admin_user_password,
157
+ userid,
158
+ password,
159
+ timeout,
160
+ paging,
161
+ verbose,
162
+ jupyter,
163
+ width,
164
+ ):
165
+ """An Egeria Command Line interface for Operations"""
166
+ ctx.obj = Config(
167
+ server,
168
+ url,
169
+ view_server,
170
+ view_server_url,
171
+ integration_daemon,
172
+ integration_daemon_url,
173
+ engine_host,
174
+ engine_host_url,
175
+ admin_user,
176
+ admin_user_password,
177
+ userid,
178
+ password,
179
+ timeout,
180
+ paging,
181
+ verbose,
182
+ jupyter,
183
+ width,
184
+ )
89
185
  ctx.max_content_width = 200
90
186
  ctx.ensure_object(Config)
91
187
  if verbose:
@@ -99,8 +195,8 @@ def show(ctx):
99
195
  pass
100
196
 
101
197
 
102
- @show.command('guid-info')
103
- @click.argument('guid', nargs=1)
198
+ @show.command("guid-info")
199
+ @click.argument("guid", nargs=1)
104
200
  @click.pass_context
105
201
  def show_guid_infos(ctx, guid):
106
202
  """Display a live status view of known platforms
@@ -109,22 +205,28 @@ def show_guid_infos(ctx, guid):
109
205
 
110
206
  """
111
207
  c = ctx.obj
112
- display_guid(guid, c.server, c.url,
113
- c.userid, c.password, c.jupyter, c.width)
208
+ display_guid(guid, c.server, c.url, c.userid, c.password, c.jupyter, c.width)
114
209
 
115
- @show.command('related-specifications')
210
+
211
+ @show.command("related-specifications")
116
212
  @click.pass_context
117
- @click.argument('element-guid')
213
+ @click.argument("element-guid")
118
214
  def show_related_specifications(ctx, element_guid):
119
215
  """List specifications related to the given Element"""
120
216
  c = ctx.obj
121
- display_related_specification(element_guid,c.view_server, c.view_server_url,
122
- c.userid, c.password, c.jupyter, c.width)
123
-
124
-
125
-
126
- @show.command('tech-types')
127
- @click.option('--search-string', default='*', help='Tech type to search for')
217
+ display_related_specification(
218
+ element_guid,
219
+ c.view_server,
220
+ c.view_server_url,
221
+ c.userid,
222
+ c.password,
223
+ c.jupyter,
224
+ c.width,
225
+ )
226
+
227
+
228
+ @show.command("tech-types")
229
+ @click.option("--search-string", default="*", help="Tech type to search for")
128
230
  @click.pass_context
129
231
  def show_tech_types(ctx, search_string):
130
232
  """List deployed technology types
@@ -135,14 +237,14 @@ def show_tech_types(ctx, search_string):
135
237
 
136
238
  """
137
239
 
138
-
139
240
  c = ctx.obj
140
- display_tech_types(search_string, c.view_server, c.view_server_url,
141
- c.userid, c.password)
241
+ display_tech_types(
242
+ search_string, c.view_server, c.view_server_url, c.userid, c.password
243
+ )
142
244
 
143
245
 
144
- @show.command('tech-details')
145
- @click.argument('tech-name')
246
+ @show.command("tech-details")
247
+ @click.argument("tech-name")
146
248
  @click.pass_context
147
249
  def show_tech_details(ctx, tech_name):
148
250
  """Display a live status view of Egeria servers for the specified Egeria platform
@@ -152,7 +254,15 @@ def show_tech_details(ctx, tech_name):
152
254
  tech-name is a valid technology name (see 'show tech-types')
153
255
  """
154
256
  c = ctx.obj
155
- tech_details_viewer(tech_name, c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width)
257
+ tech_details_viewer(
258
+ tech_name,
259
+ c.view_server,
260
+ c.view_server_url,
261
+ c.userid,
262
+ c.password,
263
+ c.jupyter,
264
+ c.width,
265
+ )
156
266
 
157
267
 
158
268
  @show.command("asset-types")
@@ -160,94 +270,185 @@ def show_tech_details(ctx, tech_name):
160
270
  def show_asset_types(ctx):
161
271
  """Display engine-host status information"""
162
272
  c = ctx.obj
163
- display_asset_types(c.view_server, c.view_server_url,
164
- c.userid, c.password,
165
- c.jupyter, c.width)
166
-
167
-
168
- @show.command('registered-services')
169
- @click.option('--services',
170
- type=click.Choice(['all', 'access-services', 'common-services', 'engine-services',
171
- 'governance-services', 'integration-services', 'view-services'],
172
- case_sensitive=False), default='all', help='Which service group to display')
273
+ display_asset_types(
274
+ c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
275
+ )
276
+
277
+
278
+ @show.command("registered-services")
279
+ @click.option(
280
+ "--services",
281
+ type=click.Choice(
282
+ [
283
+ "all",
284
+ "access-services",
285
+ "common-services",
286
+ "engine-services",
287
+ "governance-services",
288
+ "integration-services",
289
+ "view-services",
290
+ ],
291
+ case_sensitive=False,
292
+ ),
293
+ default="all",
294
+ help="Which service group to display",
295
+ )
173
296
  @click.pass_context
174
297
  def show_registered_services(ctx, services):
175
298
  """Show information about a registered services"""
176
299
  c = ctx.obj
177
- display_registered_svcs(services, c.view_server, c.view_server_url,
178
- c.userid, c.password, c.jupyter, c.width)
179
-
180
-
181
- @show.command('relationship-types')
182
- @click.option('--rel-type', default='AssetOwner', help='Relationship type to get information about')
300
+ display_registered_svcs(
301
+ services,
302
+ c.view_server,
303
+ c.view_server_url,
304
+ c.userid,
305
+ c.password,
306
+ c.jupyter,
307
+ c.width,
308
+ )
309
+
310
+
311
+ @show.command("relationship-types")
312
+ @click.option(
313
+ "--rel-type",
314
+ default="AssetOwner",
315
+ help="Relationship type to get information about",
316
+ )
183
317
  @click.pass_context
184
318
  def show_relationship_types(ctx, rel_type):
185
319
  """Show information about the specified relationship type"""
186
320
  c = ctx.obj
187
- display_relationship_types(rel_type, c.view_server, c.view_server_url,
188
-
189
- c.userid, c.password, False, c.jupyter, c.width)
321
+ display_relationship_types(
322
+ rel_type,
323
+ c.view_server,
324
+ c.view_server_url,
325
+ c.userid,
326
+ c.password,
327
+ False,
328
+ c.jupyter,
329
+ c.width,
330
+ )
190
331
 
191
332
 
192
333
  @show.command("tech-templates")
193
334
  @click.pass_context
194
- @click.option('--search-string', default='*', help='Technology type to get information about')
335
+ @click.option(
336
+ "--search-string", default="*", help="Technology type to get information about"
337
+ )
195
338
  def tech_templates(ctx, search_string):
196
339
  """Display template information about the specified technology."""
197
340
  c = ctx.obj
198
- template_viewer(search_string, c.view_server, c.view_server_url,
199
- c.userid, c.password, c.jupyter, c.width)
341
+ template_viewer(
342
+ search_string,
343
+ c.view_server,
344
+ c.view_server_url,
345
+ c.userid,
346
+ c.password,
347
+ c.jupyter,
348
+ c.width,
349
+ )
350
+
200
351
 
201
352
  @show.command("tech-template-spec")
202
353
  @click.pass_context
203
- @click.option('--search-string', default='*', help='Technology type to get information about')
354
+ @click.option(
355
+ "--search-string", default="*", help="Technology type to get information about"
356
+ )
204
357
  def tech_template_spec(ctx, search_string):
205
358
  """Display template specification information about the specified technology."""
206
359
  c = ctx.obj
207
- display_templates_spec(search_string, c.view_server, c.view_server_url,
208
- c.userid, c.password, c.jupyter, c.width)
360
+ display_templates_spec(
361
+ search_string,
362
+ c.view_server,
363
+ c.view_server_url,
364
+ c.userid,
365
+ c.password,
366
+ c.jupyter,
367
+ c.width,
368
+ )
209
369
 
210
370
 
211
371
  @show.command("valid-metadata-values")
212
372
  @click.pass_context
213
- @click.option('--property', default='projectHealth', help='Metadata property to query')
214
- @click.option('--type-name', default='Project', help='Metadata type to query')
373
+ @click.option("--property", default="projectHealth", help="Metadata property to query")
374
+ @click.option("--type-name", default="Project", help="Metadata type to query")
215
375
  def valid_metadata_values(ctx, property, type_name):
216
376
  """Display the valid metadata values for a property and type"""
217
377
  c = ctx.obj
218
- display_metadata_values(property, type_name, c.view_server, c.view_server_url,
219
- c.userid, c.password, False, c.jupyter, c.width)
220
-
221
-
222
- @show.command('list-elements')
378
+ display_metadata_values(
379
+ property,
380
+ type_name,
381
+ c.view_server,
382
+ c.view_server_url,
383
+ c.userid,
384
+ c.password,
385
+ False,
386
+ c.jupyter,
387
+ c.width,
388
+ )
389
+
390
+
391
+ @show.command("list-elements")
223
392
  @click.pass_context
224
- @click.option('--om_type', default='Organization', help='Metadata type to query')
393
+ @click.option("--om_type", default="Organization", help="Metadata type to query")
225
394
  def list_element_info(ctx, om_type):
226
395
  """Display the valid metadata values for a property and type"""
227
396
  c = ctx.obj
228
- list_elements(om_type, c.view_server, c.view_server_url,
229
- c.userid, c.password, c.jupyter, c.width)
397
+ list_elements(
398
+ om_type,
399
+ c.view_server,
400
+ c.view_server_url,
401
+ c.userid,
402
+ c.password,
403
+ c.jupyter,
404
+ c.width,
405
+ )
406
+
407
+
408
+ @show.command("list-processes")
409
+ @click.pass_context
410
+ def list_element_info(ctx):
411
+ """Display the valid metadata values for a property and type"""
412
+ c = ctx.obj
413
+ list_elements(
414
+ "GovernanceActionProcess",
415
+ c.view_server,
416
+ c.view_server_url,
417
+ c.userid,
418
+ c.password,
419
+ c.jupyter,
420
+ c.width,
421
+ )
422
+
230
423
 
231
424
  @show.command("get-elements")
232
425
  @click.pass_context
233
- @click.option('--om_type', default='Project', help='Metadata type to query')
426
+ @click.option("--om_type", default="Project", help="Metadata type to query")
234
427
  def get_element_info(ctx, om_type):
235
428
  """Display the elements for an Open Metadata Type"""
236
429
  c = ctx.obj
237
- display_elements(om_type, c.view_server, c.view_server_url,
238
- c.userid, c.password, c.jupyter, c.width)
430
+ display_elements(
431
+ om_type,
432
+ c.view_server,
433
+ c.view_server_url,
434
+ c.userid,
435
+ c.password,
436
+ c.jupyter,
437
+ c.width,
438
+ )
239
439
 
240
440
 
241
441
  #
242
442
  # Tell
243
443
  #
244
444
 
245
- @cli.group('tell')
445
+
446
+ @cli.group("tell")
246
447
  @click.pass_context
247
448
  def tell(ctx):
248
449
  """Perform actions an Egeria Objects"""
249
450
  pass
250
451
 
251
452
 
252
- if __name__ == '__main__':
453
+ if __name__ == "__main__":
253
454
  cli()
@@ -22,79 +22,97 @@ from pyegeria._exceptions import (
22
22
  )
23
23
 
24
24
 
25
- @click.command('add-todo')
26
- @click.argument('integration-connector')
27
- @click.argument('metadata-element-guid')
28
- @click.argument('catalog-target-name')
25
+ @click.command("add-todo")
26
+ @click.argument("integration-connector")
27
+ @click.argument("metadata-element-guid")
28
+ @click.argument("catalog-target-name")
29
29
  @click.pass_context
30
- def add_catalog_target(ctx, integration_connector: str, metadata_element_guid:str, catalog_target_name:str)-> str:
30
+ def add_catalog_target(
31
+ ctx,
32
+ integration_connector: str,
33
+ metadata_element_guid: str,
34
+ catalog_target_name: str,
35
+ ) -> str:
31
36
  """Add catalog targets to the specified integration connector"""
32
37
  try:
33
38
  if integration_connector not in INTEGRATION_GUIDS.keys():
34
- click.echo('Integration connector is not known')
39
+ click.echo("Integration connector is not known")
35
40
 
36
41
  c = ctx.obj
37
- a_client = AutomatedCuration(c.view_server, c.view_server_url, c.userid, c.password)
42
+ a_client = AutomatedCuration(
43
+ c.view_server, c.view_server_url, c.userid, c.password
44
+ )
38
45
  token = a_client.create_egeria_bearer_token()
39
46
 
40
- guid = a_client.add_catalog_target(INTEGRATION_GUIDS[integration_connector], metadata_element_guid,
41
- catalog_target_name)
42
-
43
- click.echo(f"Added catalog target to {integration_connector} with a return guid of {guid}")
47
+ guid = a_client.add_catalog_target(
48
+ INTEGRATION_GUIDS[integration_connector],
49
+ metadata_element_guid,
50
+ catalog_target_name,
51
+ )
44
52
 
53
+ click.echo(
54
+ f"Added catalog target to {integration_connector} with a return guid of {guid}"
55
+ )
45
56
 
46
57
  except (InvalidParameterException, PropertyServerException) as e:
47
58
  print_exception_response(e)
48
59
 
49
60
 
50
-
51
- @click.command('remove-target')
52
- @click.argument('relationship-guid')
61
+ @click.command("remove-target")
62
+ @click.argument("relationship-guid")
53
63
  @click.pass_context
54
64
  def remove_catalog_target(ctx, relationship_guid: str):
55
65
  """Remove the catalog target specified by the relationship guidr"""
56
66
  try:
57
67
  c = ctx.obj
58
- a_client = AutomatedCuration(c.view_server, c.view_server_url, c.userid, c.password)
68
+ a_client = AutomatedCuration(
69
+ c.view_server, c.view_server_url, c.userid, c.password
70
+ )
59
71
  token = a_client.create_egeria_bearer_token()
60
72
 
61
73
  a_client.remove_catalog_target(relationship_guid)
62
74
 
63
- click.echo(f"Removed catalog target with relationship guid of {relationship_guid}")
64
-
75
+ click.echo(
76
+ f"Removed catalog target with relationship guid of {relationship_guid}"
77
+ )
65
78
 
66
79
  except (InvalidParameterException, PropertyServerException) as e:
67
80
  print_exception_response(e)
68
81
 
69
82
 
70
- @click.command('update-target')
71
- @click.argument('relationship-guid')
72
- @click.argument('catalog-target-name')
83
+ @click.command("update-target")
84
+ @click.argument("relationship-guid")
85
+ @click.argument("catalog-target-name")
73
86
  @click.pass_context
74
- def update_catalog_target(ctx, relationship_guid: str, catalog_target_name:str):
75
- """Update the catalog target specified by the relationship guid """
87
+ def update_catalog_target(ctx, relationship_guid: str, catalog_target_name: str):
88
+ """Update the catalog target specified by the relationship guid"""
76
89
  try:
77
90
  c = ctx.obj
78
- a_client = AutomatedCuration(c.view_server, c.view_server_url, c.userid, c.password)
91
+ a_client = AutomatedCuration(
92
+ c.view_server, c.view_server_url, c.userid, c.password
93
+ )
79
94
  token = a_client.create_egeria_bearer_token()
80
95
 
81
96
  guid = a_client.update_catalog_target(relationship_guid, catalog_target_name)
82
97
 
83
- click.echo(f"Update catalog target with relationship guid of {relationship_guid} to a catalog target name of "
84
- f"{catalog_target_name} with a return guid of {guid}")
85
-
98
+ click.echo(
99
+ f"Update catalog target with relationship guid of {relationship_guid} to a catalog target name of "
100
+ f"{catalog_target_name} with a return guid of {guid}"
101
+ )
86
102
 
87
103
  except (InvalidParameterException, PropertyServerException) as e:
88
104
  print_exception_response(e)
89
105
 
90
106
 
91
- @click.command('stop')
107
+ @click.command("stop")
92
108
  @click.pass_context
93
109
  def stop_server(ctx):
94
110
  """Stop an integration daemon"""
95
111
  try:
96
112
  c = ctx.obj
97
- p_client = Platform(c.integration_daemon, c.integration_daemon_url, c.userid, c.password)
113
+ p_client = Platform(
114
+ c.integration_daemon, c.integration_daemon_url, c.userid, c.password
115
+ )
98
116
 
99
117
  p_client.shutdown_server()
100
118
 
@@ -103,13 +121,15 @@ def stop_server(ctx):
103
121
  print_exception_response(e)
104
122
 
105
123
 
106
- @click.command('start')
124
+ @click.command("start")
107
125
  @click.pass_context
108
126
  def start_server(ctx):
109
- """Start or restart an integration daemon from its known configuration """
127
+ """Start or restart an integration daemon from its known configuration"""
110
128
  try:
111
129
  c = ctx.obj
112
- p_client = Platform(c.integration_daemon, c.integration_daemon_url, c.userid, c.password)
130
+ p_client = Platform(
131
+ c.integration_daemon, c.integration_daemon_url, c.userid, c.password
132
+ )
113
133
 
114
134
  p_client.activate_server_stored_config()
115
135
 
@@ -117,4 +137,3 @@ def start_server(ctx):
117
137
 
118
138
  except (InvalidParameterException, PropertyServerException) as e:
119
139
  print_exception_response(e)
120
-