pyegeria 1.5.1.1.60__py3-none-any.whl → 5.2__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 (126) hide show
  1. pyegeria/__init__.py +2 -0
  2. pyegeria/_client.py +7 -2
  3. pyegeria/asset_catalog_omvs.py +34 -0
  4. pyegeria/classification_manager_omvs.py +2 -3
  5. pyegeria/collection_manager_omvs.py +92 -45
  6. pyegeria/commands/README.md +2 -1
  7. pyegeria/commands/cat/__init__.py +1 -5
  8. pyegeria/commands/cat/exp_list_glossaries.py +156 -0
  9. pyegeria/commands/cat/get_collection.py +23 -14
  10. pyegeria/commands/cat/get_tech_type_elements.py +1 -1
  11. pyegeria/commands/cat/glossary_actions.py +28 -8
  12. pyegeria/commands/cat/list_assets.py +8 -17
  13. pyegeria/commands/cat/list_cert_types.py +1 -1
  14. pyegeria/commands/cat/list_collections.py +162 -0
  15. pyegeria/commands/cat/list_deployed_catalogs.py +6 -3
  16. pyegeria/commands/cat/list_deployed_database_schemas.py +8 -13
  17. pyegeria/commands/cat/list_deployed_databases.py +3 -3
  18. pyegeria/commands/cat/list_tech_type_elements.py +190 -0
  19. pyegeria/commands/cat/list_tech_types.py +36 -24
  20. pyegeria/commands/cat/list_terms.py +7 -2
  21. pyegeria/commands/cli/egeria.py +120 -129
  22. pyegeria/commands/cli/egeria_cat.py +63 -52
  23. pyegeria/commands/cli/egeria_login_tui.py +313 -0
  24. pyegeria/commands/cli/egeria_my.py +25 -33
  25. pyegeria/commands/cli/egeria_ops.py +38 -40
  26. pyegeria/commands/cli/egeria_tech.py +55 -41
  27. pyegeria/commands/cli/ops_config.py +3 -1
  28. pyegeria/commands/cli/txt_custom_v2.tcss +19 -0
  29. pyegeria/commands/doc/README.md +145 -0
  30. pyegeria/commands/doc/Visual Command Reference/README.md +511 -0
  31. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/asset-graph 2024-11-20 at 15.56.42.png +0 -0
  32. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/assets-in-domain 2024-11-20 at 15.49.55@2x.png +0 -0
  33. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/elements-of-type 2024-11-20 at 16.01.35.png +0 -0
  34. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/tech-type-elements 2024-11-20 at 16.05.05.png +0 -0
  35. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs 2024-12-17 at 15.43.27@2x.png +0 -0
  36. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs-2024-11-20 at 16.17.43@2x.png +0 -0
  37. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-11-25 at 20.14.50@2x.png +0 -0
  38. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-12-17 at 15.48.38@2x.png +0 -0
  39. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-11-25 at 20.21.25@2x.png +0 -0
  40. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-12-17 at 15.52.16@2x.png +0 -0
  41. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed_databases 2024-12-16 at 16.40.31@2x.png +0 -0
  42. pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-glossaries 2024-11-25 at 20.30.02.png +0 -0
  43. pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-terms 2024-11-25 at 20.32.11.png +0 -0
  44. pyegeria/commands/doc/Visual Command Reference/cat/show/info/asset-types 2024-11-25 at 20.34.19@2x.png +0 -0
  45. pyegeria/commands/doc/Visual Command Reference/cat/show/info/certification-types 2024-11-25 at 20.37.07.png +0 -0
  46. pyegeria/commands/doc/Visual Command Reference/cat/show/info/collection-graph 2024-12-12 at 11.33.18@2x.png +0 -0
  47. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-collections 2024-12-10 at 14.25.51@2x.png +0 -0
  48. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-todos 2024-12-12 at 11.46.30@2x.png +0 -0
  49. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-user-ids 2024-12-12 at 11.51.09@2x.png +0 -0
  50. pyegeria/commands/doc/Visual Command Reference/cat/show/info/tech-types 2024-12-12 at 11.37.20@2x.png +0 -0
  51. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_dependencies 2024-12-14 at 16.24.39@2x.png +0 -0
  52. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_structure 2024-12-14 at 16.21.35@2x.png +0 -0
  53. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/projects 2024-12-14 at 16.18.10@2x.png +0 -0
  54. pyegeria/commands/doc/Visual Command Reference/hey_egeria tui 2024-12-16 at 16.58.22@2x.png +0 -0
  55. pyegeria/commands/doc/Visual Command Reference/my/show/my_profile 2024-12-14 at 16.29.27@2x.png +0 -0
  56. pyegeria/commands/doc/Visual Command Reference/my/show/my_roles 2024-12-14 at 16.32.10@2x.png +0 -0
  57. pyegeria/commands/doc/Visual Command Reference/my/show/my_todos 2024-12-15 at 16.24.13@2x.png +0 -0
  58. pyegeria/commands/doc/Visual Command Reference/my/show/open_todos 2024-12-14 at 16.36.12@2x.png +0 -0
  59. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/list_engine_activity compressed 2024-12-15 at 16.48.48@2x.png +0 -0
  60. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity 2024-12-15 at 16.32.55@2x.png +0 -0
  61. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity compressed 2024-12-15 at 16.38.29@2x.png +0 -0
  62. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_status 2024-12-15 at 16.51.26.jpeg +0 -0
  63. pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_daemon_status 2024-12-15 at 16.57.12@2x.png +0 -0
  64. pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_targets 2024-12-15 at 17.02.19@2x.png +0 -0
  65. pyegeria/commands/doc/Visual Command Reference/ops/show/platforms/monitor_platform_status 2024-12-15 at 19.53.18@2x.png +0 -0
  66. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status 2024-12-15 at 19.59.39@2x.png +0 -0
  67. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status full 2024-12-15 at 20.01.57@2x.png +0 -0
  68. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_startup_servers 2024-12-15 at 19.56.07@2x.png +0 -0
  69. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_anchored_elements 2024-12-15 at 21.25.41@2x.png +0 -0
  70. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_elements_of_om_type 2024-12-16 at 14.39.59@2x.png +0 -0
  71. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/info_for_guid 2024-12-16 at 11.35.29@2x.png +0 -0
  72. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_by_om-type 2024-12-16 at 14.24.18@2x.png +0 -0
  73. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_by_om-type extended 2024-12-16 at 14.28.46@2x.png +0 -0
  74. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_of_om_type_by_classification 2024-12-16 at 14.35.26@2x.png +0 -0
  75. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/related_elements 2024-12-16 at 14.55.01@2x.png +0 -0
  76. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/show_related_specifications 2024-12-16 at 15.04.55@2x.png +0 -0
  77. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/asset_types 2024-12-16 at 15.10.16@2x.png +0 -0
  78. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/detailed_governance_action_processes 2024-12-16 at 15.16.26@2x.png +0 -0
  79. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/governance_action_processes 2024-12-16 at 15.13.01@2x.png +0 -0
  80. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/registered_services 2024-12-16 at 16.44.54@2x.png +0 -0
  81. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-16 at 16.20.34@2x.png +0 -0
  82. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-19 at 10.51.54@2x.png +0 -0
  83. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/valid_metadata_values 2024-12-16 at 15.31.56@2x.png +0 -0
  84. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_tech_type_template_specs 2024-12-16 at 16.03.22@2x.png +0 -0
  85. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_technology_types 2024-12-16 at 15.39.20@2x.png +0 -0
  86. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_details 2024-12-16 at 15.37.21@2x.png +0 -0
  87. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_templates 2024-12-16 at 16.11.48@2x.png +0 -0
  88. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/{hey_egeria: overview.md → README.md } +9 -1
  89. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/CleanShot 2024-11-18 at 21.32.03@2x.png +0 -0
  90. pyegeria/commands/my/monitor_my_todos.py +17 -5
  91. pyegeria/commands/my/monitor_open_todos.py +1 -1
  92. pyegeria/commands/my/todo_actions.py +7 -14
  93. pyegeria/commands/ops/monitor_asset_events.py +27 -22
  94. pyegeria/commands/ops/monitor_engine_activity_c.py +1 -1
  95. pyegeria/commands/ops/monitor_gov_eng_status.py +31 -4
  96. pyegeria/commands/ops/monitor_integ_daemon_status.py +17 -14
  97. pyegeria/commands/ops/monitor_platform_status.py +15 -3
  98. pyegeria/commands/ops/monitor_server_status.py +1 -1
  99. pyegeria/commands/ops/orig_monitor_server_status.py +36 -21
  100. pyegeria/commands/ops/refresh_integration_daemon.py +1 -1
  101. pyegeria/commands/ops/restart_integration_daemon.py +1 -1
  102. pyegeria/commands/ops/x_engine_actions.py +2 -59
  103. pyegeria/commands/tech/get_tech_details.py +79 -42
  104. pyegeria/commands/tech/get_tech_type_template.py +69 -53
  105. pyegeria/commands/tech/{list_element_graph.py → list_anchored_elements.py} +20 -17
  106. pyegeria/commands/tech/list_elements_x.py +7 -4
  107. pyegeria/commands/tech/list_registered_services.py +1 -1
  108. pyegeria/commands/tech/list_relationship_types.py +19 -21
  109. pyegeria/commands/tech/list_relationships.py +7 -3
  110. pyegeria/commands/tech/table_tech_templates.py +3 -1
  111. pyegeria/core_omag_server_config.py +36 -0
  112. pyegeria/create_tech_guid_lists.py +2 -2
  113. pyegeria/egeria_client.py +2 -0
  114. pyegeria/egeria_tech_client.py +5 -0
  115. pyegeria/glossary_manager_omvs.py +101 -7
  116. pyegeria/metadata_explorer_omvs.py +2371 -0
  117. pyegeria/server_operations.py +4 -4
  118. pyegeria/template_manager_omvs.py +1 -3
  119. pyegeria/valid_metadata_omvs.py +1 -1
  120. {pyegeria-1.5.1.1.60.dist-info → pyegeria-5.2.dist-info}/METADATA +7 -9
  121. pyegeria-5.2.dist-info/RECORD +232 -0
  122. {pyegeria-1.5.1.1.60.dist-info → pyegeria-5.2.dist-info}/entry_points.txt +4 -1
  123. pyegeria/commands/doc/command-overview.md +0 -99
  124. pyegeria-1.5.1.1.60.dist-info/RECORD +0 -167
  125. {pyegeria-1.5.1.1.60.dist-info → pyegeria-5.2.dist-info}/LICENSE +0 -0
  126. {pyegeria-1.5.1.1.60.dist-info → pyegeria-5.2.dist-info}/WHEEL +0 -0
@@ -9,21 +9,26 @@ A command line interface for Egeria Users - all commands
9
9
  This is an emerging capability based on the **click** package. Feedback welcome!
10
10
 
11
11
  """
12
+ import os
13
+ import sys
14
+
12
15
  import click
13
16
  from trogon import tui
14
17
 
18
+ from pyegeria.commands.cli.egeria_login_tui import login
15
19
  from pyegeria.commands.cat.get_asset_graph import asset_viewer
16
20
  from pyegeria.commands.cat.get_collection import collection_viewer
17
21
  from pyegeria.commands.cat.get_project_dependencies import project_dependency_viewer
18
22
  from pyegeria.commands.cat.get_project_structure import project_structure_viewer
19
23
  from pyegeria.commands.cat.get_tech_type_elements import tech_viewer
24
+ from pyegeria.commands.cat.list_tech_type_elements import list_tech_elements
20
25
  from pyegeria.commands.cli.egeria_ops import show_server
21
26
  from pyegeria.commands.tech.get_tech_type_template import template_viewer
22
27
  from pyegeria.commands.cat.list_assets import display_assets
23
28
  from pyegeria.commands.cat.list_cert_types import display_certifications
24
29
  from pyegeria.commands.cat.list_terms import display_glossary_terms
25
30
  from pyegeria.commands.cat.list_projects import display_project_list
26
- from pyegeria.commands.tech.list_element_graph import display_element_graph
31
+ from pyegeria.commands.tech.list_anchored_elements import display_anchored_elements
27
32
  from pyegeria.commands.tech.list_elements_x import list_elements_x
28
33
  from pyegeria.commands.tech.list_relationships import list_relationships
29
34
  from pyegeria.commands.cat.list_tech_types import display_tech_types
@@ -39,6 +44,7 @@ from pyegeria.commands.my.monitor_open_todos import display_todos
39
44
  from pyegeria.commands.cat.list_deployed_database_schemas import (
40
45
  list_deployed_database_schemas,
41
46
  )
47
+ from pyegeria.commands.cat.list_collections import display_collections
42
48
  from pyegeria.commands.cat.list_deployed_catalogs import list_deployed_catalogs
43
49
  from pyegeria.commands.cat.list_deployed_databases import list_deployed_databases
44
50
  from pyegeria.commands.cat.glossary_actions import (
@@ -108,98 +114,87 @@ from pyegeria.commands.tech.list_gov_action_processes import display_gov_process
108
114
 
109
115
  @tui()
110
116
  # @tui('menu', 'menu', 'A textual command line interface')
111
- @click.version_option("0.0.1", prog_name="egeria_ops")
117
+ @click.version_option("0.5.2 ", prog_name="hey_egeria")
112
118
  @click.group()
113
119
  @click.option(
114
120
  "--server",
115
- default="active-metadata-store",
116
- envvar="EGERIA_METADATA_STORE",
121
+ default=os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store"),
117
122
  help="Egeria metadata store to work with",
118
123
  )
119
124
  @click.option(
120
125
  "--url",
121
- default="https://localhost:9443",
122
- envvar="EGERIA_PLATFORM_URL",
126
+ default=os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443"),
123
127
  help="URL of Egeria metadata store platform to connect to",
124
128
  )
125
129
  @click.option(
126
- "--integration-daemon",
127
- default="integration-daemon",
128
- envvar="EGERIA_INTEGRATION_DAEMON",
130
+ "--integration_daemon",
131
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
129
132
  help="Egeria integration daemon to work with",
130
133
  )
131
134
  @click.option(
132
135
  "--integration_daemon_url",
133
- default="https://localhost:9443",
134
- envvar="EGERIA_INTEGRATION_DAEMON_URL",
136
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"),
135
137
  help="URL of Egeria integration daemon platform to connect to",
136
138
  )
137
139
  @click.option(
138
140
  "--view_server",
139
- default="view-server",
140
- envvar="EGERIA_VIEW_SERVER",
141
+ default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
141
142
  help="Egeria view server to work with",
142
143
  )
143
144
  @click.option(
144
145
  "--view_server_url",
145
- default="https://localhost:9443",
146
- envvar="EGERIA_VIEW_SERVER_URL",
146
+ default=os.environ.get("EGERIA_VIEW_SERVER_URL", "https://localhost:9443"),
147
147
  help="URL of Egeria view server platform to connect to",
148
148
  )
149
149
  @click.option(
150
150
  "--engine_host",
151
- default="engine-host",
152
- envvar="EGERIA_ENGINE_HOST",
151
+ default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
153
152
  help="Egeria engine host to work with",
154
153
  )
155
154
  @click.option(
156
155
  "--engine_host_url",
157
- default="https://localhost:9443",
158
- envvar="EGERIA_ENGINE_HOST_URL",
156
+ default=os.environ.get("EGERIA_ENGINE_HOST_URL", "https://localhost:9443"),
159
157
  help="URL of Egeria engine host platform to connect to",
160
158
  )
161
159
  @click.option(
162
160
  "--admin_user",
163
- default="garygeeke",
164
- envvar="EGERIA_ADMIN_USER",
161
+ default=os.environ.get("EGERIA_ADMIN_USER", "garygeeke"),
165
162
  help="Egeria admin user",
166
163
  )
167
164
  @click.option(
168
165
  "--admin_user_password",
169
- default="secret",
170
- envvar="EGERIA_ADMIN_PASSWORD",
166
+ default=os.environ.get("EGERIA_ADMIN_PASSWORD", "secret"),
171
167
  help="Egeria admin password",
172
168
  )
173
169
  @click.option(
174
- "--userid", default="erinoverview", envvar="EGERIA_USER", help="Egeria user"
170
+ "--userid",
171
+ default=os.environ.get("EGERIA_USER", "erinoverview"),
172
+ help="Egeria user",
175
173
  )
176
174
  @click.option(
177
175
  "--password",
178
- default="secret",
179
- envvar="EGERIA_PASSWORD",
176
+ default=os.environ.get("EGERIA_USER_PASSWORD", "secret"),
180
177
  help="Egeria user password",
181
178
  )
182
179
  @click.option("--timeout", default=60, help="Number of seconds to wait")
183
- # @click.option("--verbose", is_flag=True, default=False, help="Enable verbose mode")
184
- # @click.option(
185
- # "--paging",
186
- # is_flag=True,
187
- # default=False,
188
- # help="Enable paging snapshots vs live updates",
189
- # )
190
180
  @click.option(
191
181
  "--jupyter",
192
182
  is_flag=True,
193
- default=False,
194
- envvar="EGERIA_JUPYTER",
183
+ type=bool,
184
+ default=os.environ.get("EGERIA_JUPYTER", False),
195
185
  help="Enable for rendering in a Jupyter terminal",
196
186
  )
197
187
  @click.option(
198
188
  "--width",
199
- default=200,
200
- envvar="EGERIA_WIDTH",
189
+ default=os.environ.get("EGERIA_WIDTH", 200),
190
+ type=int,
201
191
  help="Screen width, in characters, to use",
202
192
  )
193
+ @click.option(
194
+ "--home_glossary_guid",
195
+ default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
196
+ help="Glossary guid to use as the home glossary",
197
+ )
203
198
  @click.pass_context
204
199
  def cli(
205
200
  ctx,
@@ -218,6 +213,7 @@ def cli(
218
213
  timeout,
219
214
  jupyter,
220
215
  width,
216
+ home_glossary_guid,
221
217
  ):
222
218
  """An Egeria Command Line interface for Operations"""
223
219
  ctx.obj = Config(
@@ -236,8 +232,9 @@ def cli(
236
232
  timeout,
237
233
  jupyter,
238
234
  width,
235
+ home_glossary_guid,
239
236
  )
240
- ctx.max_content_width = 200
237
+ ctx.max_content_width = 250
241
238
  ctx.ensure_object(Config)
242
239
 
243
240
 
@@ -275,11 +272,7 @@ def show_my_profile(ctx):
275
272
  @my_show.command("my-roles")
276
273
  @click.pass_context
277
274
  def show_my_roles(ctx):
278
- """Display my profiles
279
-
280
- Usage: show my-profile
281
-
282
- """
275
+ """Display my roles"""
283
276
  c = ctx.obj
284
277
  display_my_roles(
285
278
  c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
@@ -303,12 +296,7 @@ def show_my_todos(ctx):
303
296
  @my_show.command("open-to-dos")
304
297
  @click.pass_context
305
298
  def show_open_todos(ctx):
306
- """Display a live status view of Egeria servers for the specified Egeria platform
307
-
308
- Usage: show tech-details <tech-name>
309
-
310
- tech-name is a valid technology name (see 'show tech-types')
311
- """
299
+ """Display Open Todo items"""
312
300
  c = ctx.obj
313
301
  display_todos(
314
302
  c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
@@ -374,8 +362,8 @@ def show_elements(ctx):
374
362
  @show_elements.command("guid-info")
375
363
  @click.argument("guid", nargs=1)
376
364
  @click.pass_context
377
- def show_guid_infos(ctx, guid):
378
- """Display a live status view of known platforms
365
+ def show_guid_info(ctx, guid):
366
+ """Display guid information
379
367
 
380
368
  Usage: show guid-info <a guid>
381
369
 
@@ -384,22 +372,37 @@ def show_guid_infos(ctx, guid):
384
372
  display_guid(guid, c.server, c.url, c.userid, c.password, c.jupyter, c.width)
385
373
 
386
374
 
387
- @show_elements.command("element-graph")
375
+ @show_elements.command("anchored_elements")
388
376
  @click.pass_context
389
- @click.option("--search-string", help="value we are searching for")
390
377
  @click.option(
391
- "--prop-list", default="anchorTypeName", help="List of properties we are searching"
378
+ "--search-string",
379
+ default="DeployedDatabaseSchema",
380
+ help="value we are searching for",
381
+ )
382
+ @click.option(
383
+ "--prop-list",
384
+ default="anchorTypeName",
385
+ help="List of properties we are searching",
392
386
  )
393
- def list_element_graph(ctx, search_string: str, prop_list: str):
387
+ def list_anchored_elements(ctx, search_string: str, prop_list: str):
394
388
  """List elements with the specified properties"""
395
389
  c = ctx.obj
396
- display_element_graph(
390
+ if type(prop_list) is str:
391
+ property_names = prop_list.split(",")
392
+ elif type(prop_list) is list:
393
+ property_names = prop_list
394
+ else:
395
+ property_names = []
396
+ print(f"\nError --> Invalid property list - must be a string or list")
397
+ sys.exit(4)
398
+ display_anchored_elements(
397
399
  search_string,
398
- prop_list,
400
+ [prop_list],
399
401
  c.view_server,
400
402
  c.view_server_url,
401
403
  c.userid,
402
404
  c.password,
405
+ c.timeout,
403
406
  c.jupyter,
404
407
  c.width,
405
408
  )
@@ -444,12 +447,7 @@ def show_tech_types(ctx, search_string):
444
447
  @click.argument("tech-name")
445
448
  @click.pass_context
446
449
  def show_tech_details(ctx, tech_name):
447
- """Display a live status view of Egeria servers for the specified Egeria platform
448
-
449
- Usage: show tech-details <tech-name>
450
-
451
- tech-name is a valid technology name (see 'show tech-types')
452
- """
450
+ """Show technology type details"""
453
451
  c = ctx.obj
454
452
  tech_details_viewer(
455
453
  tech_name,
@@ -486,7 +484,7 @@ def show_tech_type_templates(ctx, tech_type):
486
484
  @show_tech_info.command("asset-types")
487
485
  @click.pass_context
488
486
  def show_asset_types(ctx):
489
- """Display engine-host status information"""
487
+ """Display asset types"""
490
488
  c = ctx.obj
491
489
  display_asset_types(
492
490
  c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
@@ -528,16 +526,16 @@ def show_registered_services(ctx, services):
528
526
 
529
527
  @show_tech_info.command("relationship-types")
530
528
  @click.option(
531
- "--rel-type",
529
+ "--om-type",
532
530
  default="AssetOwner",
533
531
  help="Relationship type to get information about",
534
532
  )
535
533
  @click.pass_context
536
- def show_relationship_types(ctx, rel_type):
537
- """Show information about the specified relationship type"""
534
+ def show_relationship_types(ctx, om_type):
535
+ """Show information about the specified relationship types"""
538
536
  c = ctx.obj
539
537
  display_relationship_types(
540
- rel_type,
538
+ om_type,
541
539
  c.view_server,
542
540
  c.view_server_url,
543
541
  c.userid,
@@ -561,7 +559,7 @@ def show_relationship_types(ctx, rel_type):
561
559
  )
562
560
  @click.pass_context
563
561
  def show_elements_by_classification(ctx, om_type, classification):
564
- """Show information about the specified relationship type"""
562
+ """Show elements by classification"""
565
563
  c = ctx.obj
566
564
  list_classified_elements(
567
565
  om_type,
@@ -591,8 +589,8 @@ def show_elements_by_classification(ctx, om_type, classification):
591
589
  help="Relationship type to follow.",
592
590
  )
593
591
  @click.pass_context
594
- def show_relationship_types(ctx, element_guid, om_type, rel_type):
595
- """Show information about the specified relationship type"""
592
+ def show_related_elements(ctx, element_guid, om_type, rel_type):
593
+ """Show elements related to specified guid"""
596
594
  c = ctx.obj
597
595
  list_related_elements(
598
596
  element_guid,
@@ -722,7 +720,7 @@ def list_element_info(ctx, om_type, extended):
722
720
  @show_tech_info.command("processes")
723
721
  @click.pass_context
724
722
  def list_element_info(ctx):
725
- """Display the valid metadata values for a property and type"""
723
+ """Display the governance action processes"""
726
724
  c = ctx.obj
727
725
  list_elements(
728
726
  "GovernanceActionProcess",
@@ -739,7 +737,7 @@ def list_element_info(ctx):
739
737
  @click.pass_context
740
738
  @click.option("--om_type", default="Project", help="Metadata type to query")
741
739
  def get_element_info(ctx, om_type):
742
- """Display a table of elements for an Open Metadata Type"""
740
+ """Display a table of elements of an Open Metadata Type"""
743
741
  c = ctx.obj
744
742
  display_elements(
745
743
  om_type,
@@ -760,7 +758,7 @@ def get_element_info(ctx, om_type):
760
758
  @cli.group("cat")
761
759
  @click.pass_context
762
760
  def cat(ctx):
763
- """Commands for the more tech user"""
761
+ """Commands for all users"""
764
762
  pass
765
763
 
766
764
 
@@ -789,6 +787,17 @@ def show_tech_types(ctx, tech_type):
789
787
  )
790
788
 
791
789
 
790
+ @show_cat_info.command("collections")
791
+ @click.option("--collection", default="*", help="Collection to search for")
792
+ @click.pass_context
793
+ def show_collections(ctx, collection):
794
+ """List Collections"""
795
+ c = ctx.obj
796
+ display_collections(
797
+ collection, c.view_server, c.view_server_url, c.userid, c.password
798
+ )
799
+
800
+
792
801
  @show_cat.group("assets")
793
802
  @click.pass_context
794
803
  def asset_group(ctx):
@@ -796,7 +805,7 @@ def asset_group(ctx):
796
805
  pass
797
806
 
798
807
 
799
- @asset_group.command("elements-of-type")
808
+ @asset_group.command("elements-of-tech-type")
800
809
  @click.option(
801
810
  "--tech_type",
802
811
  default="PostgreSQL Server",
@@ -870,7 +879,7 @@ def glossary_group(ctx):
870
879
  )
871
880
  @click.option(
872
881
  "--glossary-guid",
873
- default=None,
882
+ default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
874
883
  help="Optionally restrict search to glossary with the specified guid",
875
884
  )
876
885
  @click.option(
@@ -899,7 +908,7 @@ def show_terms(ctx, search_string, glossary_guid, glossary_name):
899
908
  @click.option("--search_string", default="*", help="Name to search for glossaries")
900
909
  @click.pass_context
901
910
  def glossaries(ctx, search_string):
902
- """Display a tree graph of information about an asset"""
911
+ """Display a list of glossaries"""
903
912
  c = ctx.obj
904
913
  display_glossaries(
905
914
  search_string,
@@ -912,15 +921,15 @@ def glossaries(ctx, search_string):
912
921
  )
913
922
 
914
923
 
915
- @show_cat_info.command("collection")
924
+ @show_cat_info.command("collection-graph")
916
925
  @click.option(
917
926
  "--root_collection",
918
- default="Root Sustainability Collection",
927
+ default="Coco Pharmaceuticals Governance Domains",
919
928
  help="View of tree of collections from a given root",
920
929
  )
921
930
  @click.pass_context
922
- def show_asset_graph(ctx, root_collection):
923
- """Display a tree graph of information about an asset"""
931
+ def show_collection(ctx, root_collection):
932
+ """Display collection graph"""
924
933
  c = ctx.obj
925
934
  collection_viewer(
926
935
  root_collection,
@@ -962,9 +971,7 @@ def show_projects(ctx, search_string):
962
971
  @click.option("--search-string", default="CertificationType", help="")
963
972
  @click.pass_context
964
973
  def show_certification_types(ctx, search_string):
965
- """Show certification types
966
- - generally stay with the default.
967
- """
974
+ """Show certification types"""
968
975
  c = ctx.obj
969
976
  display_certifications(
970
977
  search_string,
@@ -1046,7 +1053,7 @@ def show_project_dependencies(ctx, project):
1046
1053
  )
1047
1054
  @click.pass_context
1048
1055
  def show_todos(ctx, search_string, status):
1049
- """Display a tree graph of information about an asset"""
1056
+ """Display list of To Dost"""
1050
1057
  c = ctx.obj
1051
1058
  list_todos(
1052
1059
  search_string,
@@ -1063,7 +1070,7 @@ def show_todos(ctx, search_string, status):
1063
1070
  @show_cat_info.command("user-ids")
1064
1071
  @click.pass_context
1065
1072
  def show_todos(ctx):
1066
- """Display a list of known user ids"""
1073
+ """Display a list of known user-ids"""
1067
1074
  c = ctx.obj
1068
1075
  list_user_ids(
1069
1076
  c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
@@ -1197,9 +1204,7 @@ def show_tech_types(ctx, tech_type):
1197
1204
  @click.option("--search-string", default="CertificationType", help="")
1198
1205
  @click.pass_context
1199
1206
  def show_certification_types(ctx, search_string):
1200
- """Show certification types
1201
- - generally stay with the default..
1202
- """
1207
+ """Show certification types"""
1203
1208
  c = ctx.obj
1204
1209
  display_certifications(
1205
1210
  search_string,
@@ -1320,30 +1325,11 @@ def show_asset_graph(ctx, asset_guid):
1320
1325
  help="Specific tech type to get elements for",
1321
1326
  )
1322
1327
  @click.pass_context
1323
- def show_tech_type_elements(ctx, tech_type):
1328
+ def list_tech_type_elements(ctx, tech_type):
1324
1329
  """List technology type elements"""
1325
1330
  c = ctx.obj
1326
- tech_viewer(tech_type, c.view_server, c.view_server_url, c.userid, c.password)
1327
-
1328
-
1329
- @show_cat_info.command("collection")
1330
- @click.option(
1331
- "--root_collection",
1332
- default="Root Sustainability Collection",
1333
- help="View of tree of collections from a given root",
1334
- )
1335
- @click.pass_context
1336
- def show_asset_graph(ctx, root_collection):
1337
- """Display information about a collection"""
1338
- c = ctx.obj
1339
- collection_viewer(
1340
- root_collection,
1341
- c.view_server,
1342
- c.view_server_url,
1343
- c.userid,
1344
- c.password,
1345
- c.jupyter,
1346
- c.width,
1331
+ list_tech_elements(
1332
+ tech_type, c.view_server, c.view_server_url, c.userid, c.password
1347
1333
  )
1348
1334
 
1349
1335
 
@@ -1379,7 +1365,7 @@ def show_projects(ctx, search_string):
1379
1365
  )
1380
1366
  @click.pass_context
1381
1367
  def show_todos(ctx, search_string, status):
1382
- """Display a tree graph of information about an asset"""
1368
+ """Display a list of To Dos"""
1383
1369
  c = ctx.obj
1384
1370
  list_todos(
1385
1371
  search_string,
@@ -1406,7 +1392,7 @@ def show_user_ids(ctx):
1406
1392
  @show_server.command("archives")
1407
1393
  @click.pass_context
1408
1394
  def archives(ctx):
1409
- """Display a tree graph of information about an asset"""
1395
+ """Display a list of archivest"""
1410
1396
  c = ctx.obj
1411
1397
  display_archive_list(
1412
1398
  c.view_server,
@@ -1427,6 +1413,7 @@ def archives(ctx):
1427
1413
  )
1428
1414
  @click.pass_context
1429
1415
  def show_deployed_servers(ctx, search_string):
1416
+ """Show list of deployed servers"""
1430
1417
  c = ctx.obj
1431
1418
  display_servers_by_dep_imp(
1432
1419
  search_string,
@@ -1445,7 +1432,7 @@ def show_deployed_servers(ctx, search_string):
1445
1432
  )
1446
1433
  @click.pass_context
1447
1434
  def deployed_schemas(ctx, search_catalog):
1448
- """Display a tree graph of information about an asset"""
1435
+ """Display a list of deployed schemas"""
1449
1436
  c = ctx.obj
1450
1437
  list_deployed_database_schemas(
1451
1438
  search_catalog,
@@ -1462,7 +1449,7 @@ def deployed_schemas(ctx, search_catalog):
1462
1449
  @click.option("--search_server", default="*", help="Server to search for catalogs")
1463
1450
  @click.pass_context
1464
1451
  def catalogs(ctx, search_server):
1465
- """Display a tree graph of information about an asset"""
1452
+ """Display a list of deployed catalogs"""
1466
1453
  c = ctx.obj
1467
1454
  list_deployed_catalogs(
1468
1455
  search_server,
@@ -1478,7 +1465,7 @@ def catalogs(ctx, search_server):
1478
1465
  @deployed_data.command("databases")
1479
1466
  @click.pass_context
1480
1467
  def databases(ctx):
1481
- """Display a tree graph of information about an asset"""
1468
+ """Display a list of deployed databases"""
1482
1469
  c = ctx.obj
1483
1470
  list_deployed_databases(
1484
1471
  c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
@@ -1489,7 +1476,7 @@ def databases(ctx):
1489
1476
  @click.option("--search_string", default="*", help="Name to search for glossaries")
1490
1477
  @click.pass_context
1491
1478
  def glossaries(ctx, search_string):
1492
- """Display a tree graph of information about an asset"""
1479
+ """Display a list of glossaries"""
1493
1480
  c = ctx.obj
1494
1481
  display_glossaries(
1495
1482
  search_string,
@@ -1632,14 +1619,14 @@ def gov_eng_status(ctx, engine_list, engine_host, list):
1632
1619
  c = ctx.obj
1633
1620
  display_gov_eng_status(
1634
1621
  [engine_list],
1635
- engine_host,
1636
- c.view_server,
1637
- c.view_server_url,
1638
- c.userid,
1639
- c.password,
1640
- list,
1641
- c.jupyter,
1642
- c.width,
1622
+ engine_host=engine_host,
1623
+ view_server=c.view_server,
1624
+ url=c.view_server_url,
1625
+ username=c.userid,
1626
+ user_pass=c.password,
1627
+ paging=list,
1628
+ jupyter=c.jupyter,
1629
+ width=c.width,
1643
1630
  )
1644
1631
 
1645
1632
 
@@ -1710,7 +1697,7 @@ def integrations(ctx):
1710
1697
  )
1711
1698
  @click.pass_context
1712
1699
  def integrations_status(ctx, connector_list, list, sorted):
1713
- """Display integration-daemon status information"""
1700
+ """Display integration_daemon status information"""
1714
1701
  c = ctx.obj
1715
1702
  display_integration_daemon_status(
1716
1703
  [connector_list],
@@ -1729,7 +1716,7 @@ def integrations_status(ctx, connector_list, list, sorted):
1729
1716
 
1730
1717
  @integrations.command("targets")
1731
1718
  @click.pass_context
1732
- @click.argument("connector", nargs=1)
1719
+ @click.argument("--connector", nargs=1)
1733
1720
  def integrations_status(ctx, connector):
1734
1721
  """Display Catalog Targets for a connector"""
1735
1722
  c = ctx.obj
@@ -1759,7 +1746,7 @@ def tell_ops(ctx):
1759
1746
  @tell_ops.group("integration-daemon")
1760
1747
  @click.pass_context
1761
1748
  def tell_integration_daemon(ctx):
1762
- """Group of commands to an integration-daemon"""
1749
+ """Group of commands to an integration_daemon"""
1763
1750
  pass
1764
1751
 
1765
1752
 
@@ -1843,4 +1830,8 @@ def repository(ctx):
1843
1830
  repository.add_command(load_archive)
1844
1831
 
1845
1832
  if __name__ == "__main__":
1846
- cli()
1833
+ while True:
1834
+ try:
1835
+ cli()
1836
+ except Exception as e:
1837
+ click.echo(f"Error: {e}")