pyegeria 5.2__py3-none-any.whl → 5.2.0.1__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.
- pyegeria/__init__.py +0 -2
- pyegeria/_client.py +2 -7
- pyegeria/asset_catalog_omvs.py +0 -34
- pyegeria/classification_manager_omvs.py +3 -2
- pyegeria/collection_manager_omvs.py +45 -92
- pyegeria/commands/README.md +1 -2
- pyegeria/commands/cat/__init__.py +5 -1
- pyegeria/commands/cat/get_collection.py +14 -23
- pyegeria/commands/cat/get_tech_type_elements.py +1 -1
- pyegeria/commands/cat/glossary_actions.py +8 -28
- pyegeria/commands/cat/list_assets.py +17 -8
- pyegeria/commands/cat/list_collections.py +5 -10
- pyegeria/commands/cat/list_deployed_catalogs.py +2 -4
- pyegeria/commands/cat/list_deployed_database_schemas.py +14 -8
- pyegeria/commands/cat/list_deployed_databases.py +3 -2
- pyegeria/commands/cat/list_tech_types.py +24 -36
- pyegeria/commands/cat/list_terms.py +2 -4
- pyegeria/commands/cli/egeria.py +117 -106
- pyegeria/commands/cli/egeria_cat.py +54 -53
- pyegeria/commands/cli/egeria_my.py +33 -25
- pyegeria/commands/cli/egeria_ops.py +40 -38
- pyegeria/commands/cli/egeria_tech.py +41 -55
- pyegeria/commands/cli/ops_config.py +1 -3
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-20 at 16.17.43@2x.png +0 -0
- pyegeria/commands/doc/{README.md → command-overview.md} +5 -50
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/{README.md → hey_egeria: overview.md } +1 -1
- pyegeria/commands/my/monitor_my_todos.py +5 -17
- pyegeria/commands/my/monitor_open_todos.py +1 -1
- pyegeria/commands/ops/monitor_asset_events.py +22 -27
- pyegeria/commands/ops/monitor_engine_activity_c.py +1 -1
- pyegeria/commands/ops/monitor_gov_eng_status.py +4 -31
- pyegeria/commands/ops/monitor_integ_daemon_status.py +14 -17
- pyegeria/commands/ops/monitor_platform_status.py +1 -1
- pyegeria/commands/ops/orig_monitor_server_status.py +21 -36
- pyegeria/commands/ops/refresh_integration_daemon.py +1 -1
- pyegeria/commands/ops/restart_integration_daemon.py +1 -1
- pyegeria/commands/tech/get_tech_details.py +42 -79
- pyegeria/commands/tech/get_tech_type_template.py +53 -69
- pyegeria/commands/tech/list_anchored_elements.py +15 -18
- pyegeria/commands/tech/list_elements_x.py +4 -7
- pyegeria/commands/tech/list_registered_services.py +1 -1
- pyegeria/commands/tech/list_relationship_types.py +21 -19
- pyegeria/commands/tech/list_relationships.py +3 -7
- pyegeria/commands/tech/table_tech_templates.py +1 -3
- pyegeria/create_tech_guid_lists.py +2 -2
- pyegeria/egeria_client.py +0 -2
- pyegeria/egeria_tech_client.py +0 -5
- pyegeria/glossary_manager_omvs.py +7 -101
- pyegeria/server_operations.py +4 -4
- pyegeria/template_manager_omvs.py +3 -1
- pyegeria/valid_metadata_omvs.py +1 -1
- {pyegeria-5.2.dist-info → pyegeria-5.2.0.1.dist-info}/METADATA +5 -3
- pyegeria-5.2.0.1.dist-info/RECORD +176 -0
- {pyegeria-5.2.dist-info → pyegeria-5.2.0.1.dist-info}/entry_points.txt +0 -2
- pyegeria/commands/cat/list_tech_type_elements.py +0 -190
- pyegeria/commands/cli/egeria_login_tui.py +0 -313
- pyegeria/commands/cli/txt_custom_v2.tcss +0 -19
- pyegeria/commands/doc/Visual Command Reference/README.md +0 -511
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs 2024-12-17 at 15.43.27@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-11-25 at 20.14.50@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-12-17 at 15.48.38@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-11-25 at 20.21.25@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-12-17 at 15.52.16@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed_databases 2024-12-16 at 16.40.31@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-glossaries 2024-11-25 at 20.30.02.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-terms 2024-11-25 at 20.32.11.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/asset-types 2024-11-25 at 20.34.19@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/certification-types 2024-11-25 at 20.37.07.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/collection-graph 2024-12-12 at 11.33.18@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-collections 2024-12-10 at 14.25.51@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-todos 2024-12-12 at 11.46.30@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-user-ids 2024-12-12 at 11.51.09@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/tech-types 2024-12-12 at 11.37.20@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_dependencies 2024-12-14 at 16.24.39@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_structure 2024-12-14 at 16.21.35@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/projects/projects 2024-12-14 at 16.18.10@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/hey_egeria tui 2024-12-16 at 16.58.22@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/my_profile 2024-12-14 at 16.29.27@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/my_roles 2024-12-14 at 16.32.10@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/my_todos 2024-12-15 at 16.24.13@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/open_todos 2024-12-14 at 16.36.12@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/list_engine_activity compressed 2024-12-15 at 16.48.48@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity 2024-12-15 at 16.32.55@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity compressed 2024-12-15 at 16.38.29@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_status 2024-12-15 at 16.51.26.jpeg +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_daemon_status 2024-12-15 at 16.57.12@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_targets 2024-12-15 at 17.02.19@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/platforms/monitor_platform_status 2024-12-15 at 19.53.18@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status 2024-12-15 at 19.59.39@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status full 2024-12-15 at 20.01.57@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_startup_servers 2024-12-15 at 19.56.07@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_anchored_elements 2024-12-15 at 21.25.41@2x.png +0 -0
- 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
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/info_for_guid 2024-12-16 at 11.35.29@2x.png +0 -0
- 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
- 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
- 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
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/related_elements 2024-12-16 at 14.55.01@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/show_related_specifications 2024-12-16 at 15.04.55@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/asset_types 2024-12-16 at 15.10.16@2x.png +0 -0
- 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
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/governance_action_processes 2024-12-16 at 15.13.01@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/registered_services 2024-12-16 at 16.44.54@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-16 at 16.20.34@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-19 at 10.51.54@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/valid_metadata_values 2024-12-16 at 15.31.56@2x.png +0 -0
- 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
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_technology_types 2024-12-16 at 15.39.20@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_details 2024-12-16 at 15.37.21@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_templates 2024-12-16 at 16.11.48@2x.png +0 -0
- pyegeria/metadata_explorer_omvs.py +0 -2371
- pyegeria-5.2.dist-info/RECORD +0 -232
- /pyegeria/commands/doc/Visual Command Reference/cat/show/assets/{asset-graph 2024-11-20 at 15.56.42.png → Asset-graph 2024-11-20 at 15.56.42.png} +0 -0
- /pyegeria/commands/doc/Visual Command Reference/cat/show/assets/{assets-in-domain 2024-11-20 at 15.49.55@2x.png → Assets-in-domain 2024-11-20 at 15.49.55@2x.png} +0 -0
- /pyegeria/commands/doc/Visual Command Reference/cat/show/{deployed-data/deployed-data-catalogs-2024-11-20 at 16.17.43@2x.png → assets/deployed-catalogs 2024-11-20 at 16.17.43@2x.png} +0 -0
- {pyegeria-5.2.dist-info → pyegeria-5.2.0.1.dist-info}/LICENSE +0 -0
- {pyegeria-5.2.dist-info → pyegeria-5.2.0.1.dist-info}/WHEEL +0 -0
pyegeria/commands/cli/egeria.py
CHANGED
@@ -9,19 +9,14 @@ 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
|
-
|
15
12
|
import click
|
16
13
|
from trogon import tui
|
17
14
|
|
18
|
-
from pyegeria.commands.cli.egeria_login_tui import login
|
19
15
|
from pyegeria.commands.cat.get_asset_graph import asset_viewer
|
20
16
|
from pyegeria.commands.cat.get_collection import collection_viewer
|
21
17
|
from pyegeria.commands.cat.get_project_dependencies import project_dependency_viewer
|
22
18
|
from pyegeria.commands.cat.get_project_structure import project_structure_viewer
|
23
19
|
from pyegeria.commands.cat.get_tech_type_elements import tech_viewer
|
24
|
-
from pyegeria.commands.cat.list_tech_type_elements import list_tech_elements
|
25
20
|
from pyegeria.commands.cli.egeria_ops import show_server
|
26
21
|
from pyegeria.commands.tech.get_tech_type_template import template_viewer
|
27
22
|
from pyegeria.commands.cat.list_assets import display_assets
|
@@ -114,87 +109,98 @@ from pyegeria.commands.tech.list_gov_action_processes import display_gov_process
|
|
114
109
|
|
115
110
|
@tui()
|
116
111
|
# @tui('menu', 'menu', 'A textual command line interface')
|
117
|
-
@click.version_option("0.
|
112
|
+
@click.version_option("0.0.1", prog_name="egeria_ops")
|
118
113
|
@click.group()
|
119
114
|
@click.option(
|
120
115
|
"--server",
|
121
|
-
default=
|
116
|
+
default="active-metadata-store",
|
117
|
+
envvar="EGERIA_METADATA_STORE",
|
122
118
|
help="Egeria metadata store to work with",
|
123
119
|
)
|
124
120
|
@click.option(
|
125
121
|
"--url",
|
126
|
-
default=
|
122
|
+
default="https://localhost:9443",
|
123
|
+
envvar="EGERIA_PLATFORM_URL",
|
127
124
|
help="URL of Egeria metadata store platform to connect to",
|
128
125
|
)
|
129
126
|
@click.option(
|
130
|
-
"--
|
131
|
-
default=
|
127
|
+
"--integration-daemon",
|
128
|
+
default="integration-daemon",
|
129
|
+
envvar="EGERIA_INTEGRATION_DAEMON",
|
132
130
|
help="Egeria integration daemon to work with",
|
133
131
|
)
|
134
132
|
@click.option(
|
135
133
|
"--integration_daemon_url",
|
136
|
-
default=
|
134
|
+
default="https://localhost:9443",
|
135
|
+
envvar="EGERIA_INTEGRATION_DAEMON_URL",
|
137
136
|
help="URL of Egeria integration daemon platform to connect to",
|
138
137
|
)
|
139
138
|
@click.option(
|
140
139
|
"--view_server",
|
141
|
-
default=
|
140
|
+
default="view-server",
|
141
|
+
envvar="EGERIA_VIEW_SERVER",
|
142
142
|
help="Egeria view server to work with",
|
143
143
|
)
|
144
144
|
@click.option(
|
145
145
|
"--view_server_url",
|
146
|
-
default=
|
146
|
+
default="https://localhost:9443",
|
147
|
+
envvar="EGERIA_VIEW_SERVER_URL",
|
147
148
|
help="URL of Egeria view server platform to connect to",
|
148
149
|
)
|
149
150
|
@click.option(
|
150
151
|
"--engine_host",
|
151
|
-
default=
|
152
|
+
default="engine-host",
|
153
|
+
envvar="EGERIA_ENGINE_HOST",
|
152
154
|
help="Egeria engine host to work with",
|
153
155
|
)
|
154
156
|
@click.option(
|
155
157
|
"--engine_host_url",
|
156
|
-
default=
|
158
|
+
default="https://localhost:9443",
|
159
|
+
envvar="EGERIA_ENGINE_HOST_URL",
|
157
160
|
help="URL of Egeria engine host platform to connect to",
|
158
161
|
)
|
159
162
|
@click.option(
|
160
163
|
"--admin_user",
|
161
|
-
default=
|
164
|
+
default="garygeeke",
|
165
|
+
envvar="EGERIA_ADMIN_USER",
|
162
166
|
help="Egeria admin user",
|
163
167
|
)
|
164
168
|
@click.option(
|
165
169
|
"--admin_user_password",
|
166
|
-
default=
|
170
|
+
default="secret",
|
171
|
+
envvar="EGERIA_ADMIN_PASSWORD",
|
167
172
|
help="Egeria admin password",
|
168
173
|
)
|
169
174
|
@click.option(
|
170
|
-
"--userid",
|
171
|
-
default=os.environ.get("EGERIA_USER", "erinoverview"),
|
172
|
-
help="Egeria user",
|
175
|
+
"--userid", default="erinoverview", envvar="EGERIA_USER", help="Egeria user"
|
173
176
|
)
|
174
177
|
@click.option(
|
175
178
|
"--password",
|
176
|
-
default=
|
179
|
+
default="secret",
|
180
|
+
envvar="EGERIA_PASSWORD",
|
177
181
|
help="Egeria user password",
|
178
182
|
)
|
179
183
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
184
|
+
# @click.option("--verbose", is_flag=True, default=False, help="Enable verbose mode")
|
185
|
+
# @click.option(
|
186
|
+
# "--paging",
|
187
|
+
# is_flag=True,
|
188
|
+
# default=False,
|
189
|
+
# help="Enable paging snapshots vs live updates",
|
190
|
+
# )
|
180
191
|
@click.option(
|
181
192
|
"--jupyter",
|
182
193
|
is_flag=True,
|
183
|
-
|
184
|
-
|
194
|
+
default=False,
|
195
|
+
envvar="EGERIA_JUPYTER",
|
185
196
|
help="Enable for rendering in a Jupyter terminal",
|
186
197
|
)
|
187
198
|
@click.option(
|
188
199
|
"--width",
|
189
|
-
default=
|
190
|
-
|
200
|
+
default=200,
|
201
|
+
envvar="EGERIA_WIDTH",
|
191
202
|
help="Screen width, in characters, to use",
|
192
203
|
)
|
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
|
-
)
|
198
204
|
@click.pass_context
|
199
205
|
def cli(
|
200
206
|
ctx,
|
@@ -213,7 +219,6 @@ def cli(
|
|
213
219
|
timeout,
|
214
220
|
jupyter,
|
215
221
|
width,
|
216
|
-
home_glossary_guid,
|
217
222
|
):
|
218
223
|
"""An Egeria Command Line interface for Operations"""
|
219
224
|
ctx.obj = Config(
|
@@ -232,9 +237,8 @@ def cli(
|
|
232
237
|
timeout,
|
233
238
|
jupyter,
|
234
239
|
width,
|
235
|
-
home_glossary_guid,
|
236
240
|
)
|
237
|
-
ctx.max_content_width =
|
241
|
+
ctx.max_content_width = 200
|
238
242
|
ctx.ensure_object(Config)
|
239
243
|
|
240
244
|
|
@@ -272,7 +276,11 @@ def show_my_profile(ctx):
|
|
272
276
|
@my_show.command("my-roles")
|
273
277
|
@click.pass_context
|
274
278
|
def show_my_roles(ctx):
|
275
|
-
"""Display my
|
279
|
+
"""Display my profiles
|
280
|
+
|
281
|
+
Usage: show my-profile
|
282
|
+
|
283
|
+
"""
|
276
284
|
c = ctx.obj
|
277
285
|
display_my_roles(
|
278
286
|
c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
|
@@ -362,8 +370,8 @@ def show_elements(ctx):
|
|
362
370
|
@show_elements.command("guid-info")
|
363
371
|
@click.argument("guid", nargs=1)
|
364
372
|
@click.pass_context
|
365
|
-
def
|
366
|
-
"""Display
|
373
|
+
def show_guid_infos(ctx, guid):
|
374
|
+
"""Display a live status view of known platforms
|
367
375
|
|
368
376
|
Usage: show guid-info <a guid>
|
369
377
|
|
@@ -372,37 +380,22 @@ def show_guid_info(ctx, guid):
|
|
372
380
|
display_guid(guid, c.server, c.url, c.userid, c.password, c.jupyter, c.width)
|
373
381
|
|
374
382
|
|
375
|
-
@show_elements.command("
|
383
|
+
@show_elements.command("anchored-elements")
|
376
384
|
@click.pass_context
|
385
|
+
@click.option("--search-string", help="value we are searching for")
|
377
386
|
@click.option(
|
378
|
-
"--
|
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",
|
387
|
+
"--prop-list", default="anchorTypeName", help="List of properties we are searching"
|
386
388
|
)
|
387
|
-
def
|
389
|
+
def list_anchored_elementsh(ctx, search_string: str, prop_list: str):
|
388
390
|
"""List elements with the specified properties"""
|
389
391
|
c = ctx.obj
|
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
392
|
display_anchored_elements(
|
399
393
|
search_string,
|
400
|
-
|
394
|
+
prop_list,
|
401
395
|
c.view_server,
|
402
396
|
c.view_server_url,
|
403
397
|
c.userid,
|
404
398
|
c.password,
|
405
|
-
c.timeout,
|
406
399
|
c.jupyter,
|
407
400
|
c.width,
|
408
401
|
)
|
@@ -484,7 +477,7 @@ def show_tech_type_templates(ctx, tech_type):
|
|
484
477
|
@show_tech_info.command("asset-types")
|
485
478
|
@click.pass_context
|
486
479
|
def show_asset_types(ctx):
|
487
|
-
"""Display
|
480
|
+
"""Display engine-host status information"""
|
488
481
|
c = ctx.obj
|
489
482
|
display_asset_types(
|
490
483
|
c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
|
@@ -526,16 +519,16 @@ def show_registered_services(ctx, services):
|
|
526
519
|
|
527
520
|
@show_tech_info.command("relationship-types")
|
528
521
|
@click.option(
|
529
|
-
"--
|
522
|
+
"--rel-type",
|
530
523
|
default="AssetOwner",
|
531
524
|
help="Relationship type to get information about",
|
532
525
|
)
|
533
526
|
@click.pass_context
|
534
|
-
def show_relationship_types(ctx,
|
535
|
-
"""Show information about the specified relationship
|
527
|
+
def show_relationship_types(ctx, rel_type):
|
528
|
+
"""Show information about the specified relationship type"""
|
536
529
|
c = ctx.obj
|
537
530
|
display_relationship_types(
|
538
|
-
|
531
|
+
rel_type,
|
539
532
|
c.view_server,
|
540
533
|
c.view_server_url,
|
541
534
|
c.userid,
|
@@ -559,7 +552,7 @@ def show_relationship_types(ctx, om_type):
|
|
559
552
|
)
|
560
553
|
@click.pass_context
|
561
554
|
def show_elements_by_classification(ctx, om_type, classification):
|
562
|
-
"""Show
|
555
|
+
"""Show information about the specified relationship type"""
|
563
556
|
c = ctx.obj
|
564
557
|
list_classified_elements(
|
565
558
|
om_type,
|
@@ -589,8 +582,8 @@ def show_elements_by_classification(ctx, om_type, classification):
|
|
589
582
|
help="Relationship type to follow.",
|
590
583
|
)
|
591
584
|
@click.pass_context
|
592
|
-
def
|
593
|
-
"""Show
|
585
|
+
def show_relationship_types(ctx, element_guid, om_type, rel_type):
|
586
|
+
"""Show information about the specified relationship type"""
|
594
587
|
c = ctx.obj
|
595
588
|
list_related_elements(
|
596
589
|
element_guid,
|
@@ -720,7 +713,7 @@ def list_element_info(ctx, om_type, extended):
|
|
720
713
|
@show_tech_info.command("processes")
|
721
714
|
@click.pass_context
|
722
715
|
def list_element_info(ctx):
|
723
|
-
"""Display the
|
716
|
+
"""Display the valid metadata values for a property and type"""
|
724
717
|
c = ctx.obj
|
725
718
|
list_elements(
|
726
719
|
"GovernanceActionProcess",
|
@@ -737,7 +730,7 @@ def list_element_info(ctx):
|
|
737
730
|
@click.pass_context
|
738
731
|
@click.option("--om_type", default="Project", help="Metadata type to query")
|
739
732
|
def get_element_info(ctx, om_type):
|
740
|
-
"""Display a table of elements
|
733
|
+
"""Display a table of elements for an Open Metadata Type"""
|
741
734
|
c = ctx.obj
|
742
735
|
display_elements(
|
743
736
|
om_type,
|
@@ -758,7 +751,7 @@ def get_element_info(ctx, om_type):
|
|
758
751
|
@cli.group("cat")
|
759
752
|
@click.pass_context
|
760
753
|
def cat(ctx):
|
761
|
-
"""Commands for
|
754
|
+
"""Commands for the more tech user"""
|
762
755
|
pass
|
763
756
|
|
764
757
|
|
@@ -790,11 +783,11 @@ def show_tech_types(ctx, tech_type):
|
|
790
783
|
@show_cat_info.command("collections")
|
791
784
|
@click.option("--collection", default="*", help="Collection to search for")
|
792
785
|
@click.pass_context
|
793
|
-
def show_collections(ctx,
|
786
|
+
def show_collections(ctx, collections):
|
794
787
|
"""List Collections"""
|
795
788
|
c = ctx.obj
|
796
789
|
display_collections(
|
797
|
-
|
790
|
+
collections, c.view_server, c.view_server_url, c.userid, c.password
|
798
791
|
)
|
799
792
|
|
800
793
|
|
@@ -805,7 +798,7 @@ def asset_group(ctx):
|
|
805
798
|
pass
|
806
799
|
|
807
800
|
|
808
|
-
@asset_group.command("elements-of-
|
801
|
+
@asset_group.command("elements-of-type")
|
809
802
|
@click.option(
|
810
803
|
"--tech_type",
|
811
804
|
default="PostgreSQL Server",
|
@@ -879,7 +872,7 @@ def glossary_group(ctx):
|
|
879
872
|
)
|
880
873
|
@click.option(
|
881
874
|
"--glossary-guid",
|
882
|
-
default=
|
875
|
+
default=None,
|
883
876
|
help="Optionally restrict search to glossary with the specified guid",
|
884
877
|
)
|
885
878
|
@click.option(
|
@@ -908,7 +901,7 @@ def show_terms(ctx, search_string, glossary_guid, glossary_name):
|
|
908
901
|
@click.option("--search_string", default="*", help="Name to search for glossaries")
|
909
902
|
@click.pass_context
|
910
903
|
def glossaries(ctx, search_string):
|
911
|
-
"""Display a
|
904
|
+
"""Display a tree graph of information about an asset"""
|
912
905
|
c = ctx.obj
|
913
906
|
display_glossaries(
|
914
907
|
search_string,
|
@@ -921,15 +914,15 @@ def glossaries(ctx, search_string):
|
|
921
914
|
)
|
922
915
|
|
923
916
|
|
924
|
-
@show_cat_info.command("collection
|
917
|
+
@show_cat_info.command("collection")
|
925
918
|
@click.option(
|
926
919
|
"--root_collection",
|
927
|
-
default="
|
920
|
+
default="Root Sustainability Collection",
|
928
921
|
help="View of tree of collections from a given root",
|
929
922
|
)
|
930
923
|
@click.pass_context
|
931
|
-
def
|
932
|
-
"""Display
|
924
|
+
def show_asset_graph(ctx, root_collection):
|
925
|
+
"""Display a tree graph of information about an asset"""
|
933
926
|
c = ctx.obj
|
934
927
|
collection_viewer(
|
935
928
|
root_collection,
|
@@ -971,7 +964,9 @@ def show_projects(ctx, search_string):
|
|
971
964
|
@click.option("--search-string", default="CertificationType", help="")
|
972
965
|
@click.pass_context
|
973
966
|
def show_certification_types(ctx, search_string):
|
974
|
-
"""Show certification types
|
967
|
+
"""Show certification types
|
968
|
+
- generally stay with the default.
|
969
|
+
"""
|
975
970
|
c = ctx.obj
|
976
971
|
display_certifications(
|
977
972
|
search_string,
|
@@ -1053,7 +1048,7 @@ def show_project_dependencies(ctx, project):
|
|
1053
1048
|
)
|
1054
1049
|
@click.pass_context
|
1055
1050
|
def show_todos(ctx, search_string, status):
|
1056
|
-
"""Display
|
1051
|
+
"""Display a tree graph of information about an asset"""
|
1057
1052
|
c = ctx.obj
|
1058
1053
|
list_todos(
|
1059
1054
|
search_string,
|
@@ -1070,7 +1065,7 @@ def show_todos(ctx, search_string, status):
|
|
1070
1065
|
@show_cat_info.command("user-ids")
|
1071
1066
|
@click.pass_context
|
1072
1067
|
def show_todos(ctx):
|
1073
|
-
"""Display a list of known user
|
1068
|
+
"""Display a list of known user ids"""
|
1074
1069
|
c = ctx.obj
|
1075
1070
|
list_user_ids(
|
1076
1071
|
c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
|
@@ -1204,7 +1199,9 @@ def show_tech_types(ctx, tech_type):
|
|
1204
1199
|
@click.option("--search-string", default="CertificationType", help="")
|
1205
1200
|
@click.pass_context
|
1206
1201
|
def show_certification_types(ctx, search_string):
|
1207
|
-
"""Show certification types
|
1202
|
+
"""Show certification types
|
1203
|
+
- generally stay with the default..
|
1204
|
+
"""
|
1208
1205
|
c = ctx.obj
|
1209
1206
|
display_certifications(
|
1210
1207
|
search_string,
|
@@ -1325,11 +1322,30 @@ def show_asset_graph(ctx, asset_guid):
|
|
1325
1322
|
help="Specific tech type to get elements for",
|
1326
1323
|
)
|
1327
1324
|
@click.pass_context
|
1328
|
-
def
|
1325
|
+
def show_tech_type_elements(ctx, tech_type):
|
1329
1326
|
"""List technology type elements"""
|
1330
1327
|
c = ctx.obj
|
1331
|
-
|
1332
|
-
|
1328
|
+
tech_viewer(tech_type, c.view_server, c.view_server_url, c.userid, c.password)
|
1329
|
+
|
1330
|
+
|
1331
|
+
@show_cat_info.command("collection")
|
1332
|
+
@click.option(
|
1333
|
+
"--root_collection",
|
1334
|
+
default="Root Sustainability Collection",
|
1335
|
+
help="View of tree of collections from a given root",
|
1336
|
+
)
|
1337
|
+
@click.pass_context
|
1338
|
+
def show_asset_graph(ctx, root_collection):
|
1339
|
+
"""Display information about a collection"""
|
1340
|
+
c = ctx.obj
|
1341
|
+
collection_viewer(
|
1342
|
+
root_collection,
|
1343
|
+
c.view_server,
|
1344
|
+
c.view_server_url,
|
1345
|
+
c.userid,
|
1346
|
+
c.password,
|
1347
|
+
c.jupyter,
|
1348
|
+
c.width,
|
1333
1349
|
)
|
1334
1350
|
|
1335
1351
|
|
@@ -1365,7 +1381,7 @@ def show_projects(ctx, search_string):
|
|
1365
1381
|
)
|
1366
1382
|
@click.pass_context
|
1367
1383
|
def show_todos(ctx, search_string, status):
|
1368
|
-
"""Display a
|
1384
|
+
"""Display a tree graph of information about an asset"""
|
1369
1385
|
c = ctx.obj
|
1370
1386
|
list_todos(
|
1371
1387
|
search_string,
|
@@ -1392,7 +1408,7 @@ def show_user_ids(ctx):
|
|
1392
1408
|
@show_server.command("archives")
|
1393
1409
|
@click.pass_context
|
1394
1410
|
def archives(ctx):
|
1395
|
-
"""Display a
|
1411
|
+
"""Display a tree graph of information about an asset"""
|
1396
1412
|
c = ctx.obj
|
1397
1413
|
display_archive_list(
|
1398
1414
|
c.view_server,
|
@@ -1413,7 +1429,6 @@ def archives(ctx):
|
|
1413
1429
|
)
|
1414
1430
|
@click.pass_context
|
1415
1431
|
def show_deployed_servers(ctx, search_string):
|
1416
|
-
"""Show list of deployed servers"""
|
1417
1432
|
c = ctx.obj
|
1418
1433
|
display_servers_by_dep_imp(
|
1419
1434
|
search_string,
|
@@ -1432,7 +1447,7 @@ def show_deployed_servers(ctx, search_string):
|
|
1432
1447
|
)
|
1433
1448
|
@click.pass_context
|
1434
1449
|
def deployed_schemas(ctx, search_catalog):
|
1435
|
-
"""Display a
|
1450
|
+
"""Display a tree graph of information about an asset"""
|
1436
1451
|
c = ctx.obj
|
1437
1452
|
list_deployed_database_schemas(
|
1438
1453
|
search_catalog,
|
@@ -1449,7 +1464,7 @@ def deployed_schemas(ctx, search_catalog):
|
|
1449
1464
|
@click.option("--search_server", default="*", help="Server to search for catalogs")
|
1450
1465
|
@click.pass_context
|
1451
1466
|
def catalogs(ctx, search_server):
|
1452
|
-
"""Display a
|
1467
|
+
"""Display a tree graph of information about an asset"""
|
1453
1468
|
c = ctx.obj
|
1454
1469
|
list_deployed_catalogs(
|
1455
1470
|
search_server,
|
@@ -1465,7 +1480,7 @@ def catalogs(ctx, search_server):
|
|
1465
1480
|
@deployed_data.command("databases")
|
1466
1481
|
@click.pass_context
|
1467
1482
|
def databases(ctx):
|
1468
|
-
"""Display a
|
1483
|
+
"""Display a tree graph of information about an asset"""
|
1469
1484
|
c = ctx.obj
|
1470
1485
|
list_deployed_databases(
|
1471
1486
|
c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
|
@@ -1476,7 +1491,7 @@ def databases(ctx):
|
|
1476
1491
|
@click.option("--search_string", default="*", help="Name to search for glossaries")
|
1477
1492
|
@click.pass_context
|
1478
1493
|
def glossaries(ctx, search_string):
|
1479
|
-
"""Display a
|
1494
|
+
"""Display a tree graph of information about an asset"""
|
1480
1495
|
c = ctx.obj
|
1481
1496
|
display_glossaries(
|
1482
1497
|
search_string,
|
@@ -1619,14 +1634,14 @@ def gov_eng_status(ctx, engine_list, engine_host, list):
|
|
1619
1634
|
c = ctx.obj
|
1620
1635
|
display_gov_eng_status(
|
1621
1636
|
[engine_list],
|
1622
|
-
engine_host
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1637
|
+
engine_host,
|
1638
|
+
c.view_server,
|
1639
|
+
c.view_server_url,
|
1640
|
+
c.userid,
|
1641
|
+
c.password,
|
1642
|
+
list,
|
1643
|
+
c.jupyter,
|
1644
|
+
c.width,
|
1630
1645
|
)
|
1631
1646
|
|
1632
1647
|
|
@@ -1697,7 +1712,7 @@ def integrations(ctx):
|
|
1697
1712
|
)
|
1698
1713
|
@click.pass_context
|
1699
1714
|
def integrations_status(ctx, connector_list, list, sorted):
|
1700
|
-
"""Display
|
1715
|
+
"""Display integration-daemon status information"""
|
1701
1716
|
c = ctx.obj
|
1702
1717
|
display_integration_daemon_status(
|
1703
1718
|
[connector_list],
|
@@ -1716,7 +1731,7 @@ def integrations_status(ctx, connector_list, list, sorted):
|
|
1716
1731
|
|
1717
1732
|
@integrations.command("targets")
|
1718
1733
|
@click.pass_context
|
1719
|
-
@click.argument("
|
1734
|
+
@click.argument("connector", nargs=1)
|
1720
1735
|
def integrations_status(ctx, connector):
|
1721
1736
|
"""Display Catalog Targets for a connector"""
|
1722
1737
|
c = ctx.obj
|
@@ -1746,7 +1761,7 @@ def tell_ops(ctx):
|
|
1746
1761
|
@tell_ops.group("integration-daemon")
|
1747
1762
|
@click.pass_context
|
1748
1763
|
def tell_integration_daemon(ctx):
|
1749
|
-
"""Group of commands to an
|
1764
|
+
"""Group of commands to an integration-daemon"""
|
1750
1765
|
pass
|
1751
1766
|
|
1752
1767
|
|
@@ -1830,8 +1845,4 @@ def repository(ctx):
|
|
1830
1845
|
repository.add_command(load_archive)
|
1831
1846
|
|
1832
1847
|
if __name__ == "__main__":
|
1833
|
-
|
1834
|
-
try:
|
1835
|
-
cli()
|
1836
|
-
except Exception as e:
|
1837
|
-
click.echo(f"Error: {e}")
|
1848
|
+
cli()
|