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
@@ -9,8 +9,6 @@ A command line interface for Egeria Catalog User functions
|
|
9
9
|
This is an emerging capability based on the **click** package. Feedback welcome!
|
10
10
|
|
11
11
|
"""
|
12
|
-
import os
|
13
|
-
|
14
12
|
import click
|
15
13
|
from trogon import tui
|
16
14
|
|
@@ -19,7 +17,6 @@ from pyegeria.commands.cat.get_collection import collection_viewer
|
|
19
17
|
from pyegeria.commands.cat.get_project_dependencies import project_dependency_viewer
|
20
18
|
from pyegeria.commands.cat.get_project_structure import project_structure_viewer
|
21
19
|
from pyegeria.commands.cat.get_tech_type_elements import tech_viewer
|
22
|
-
from pyegeria.commands.cat.list_tech_type_elements import list_tech_elements
|
23
20
|
from pyegeria.commands.cat.glossary_actions import (
|
24
21
|
create_glossary,
|
25
22
|
delete_glossary,
|
@@ -44,7 +41,7 @@ from pyegeria.commands.cat.list_todos import display_to_dos as list_todos
|
|
44
41
|
from pyegeria.commands.cat.list_user_ids import list_user_ids
|
45
42
|
from pyegeria.commands.cat.list_collections import display_collections
|
46
43
|
|
47
|
-
|
44
|
+
# from pyegeria import ServerOps
|
48
45
|
from pyegeria.commands.cli.ops_config import Config
|
49
46
|
from pyegeria.commands.my.todo_actions import (
|
50
47
|
mark_todo_complete,
|
@@ -55,6 +52,20 @@ from pyegeria.commands.my.todo_actions import (
|
|
55
52
|
from pyegeria.commands.tech.list_asset_types import display_asset_types
|
56
53
|
|
57
54
|
|
55
|
+
# class Config(object):
|
56
|
+
# def __init__(self, server: str = None, url: str = None, userid:str = None, password:str = None,
|
57
|
+
# timeout:int = 30, paging: bool = False):
|
58
|
+
# self.server = server
|
59
|
+
# self.url = url
|
60
|
+
# self.userid = userid
|
61
|
+
# self.password = password
|
62
|
+
# self.timeout = timeout
|
63
|
+
# self.paging = paging
|
64
|
+
#
|
65
|
+
#
|
66
|
+
# pass_config = click.make_pass_decorator(Config)
|
67
|
+
|
68
|
+
|
58
69
|
# @tui
|
59
70
|
# @tui('menu','menu','A textual command line interface')
|
60
71
|
@tui()
|
@@ -62,82 +73,87 @@ from pyegeria.commands.tech.list_asset_types import display_asset_types
|
|
62
73
|
@click.group()
|
63
74
|
@click.option(
|
64
75
|
"--server",
|
65
|
-
default=
|
76
|
+
default="active-metadata-store",
|
77
|
+
envvar="EGERIA_METADATA_STORE",
|
66
78
|
help="Egeria metadata store to work with",
|
67
79
|
)
|
68
80
|
@click.option(
|
69
81
|
"--url",
|
70
|
-
default=
|
82
|
+
default="https://localhost:9443",
|
83
|
+
envvar="EGERIA_PLATFORM_URL",
|
71
84
|
help="URL of Egeria metadata store platform to connect to",
|
72
85
|
)
|
73
86
|
@click.option(
|
74
87
|
"--integration_daemon",
|
75
|
-
default=
|
88
|
+
default="integration-daemon",
|
89
|
+
envvar="EGERIA_INTEGRATION_DAEMON",
|
76
90
|
help="Egeria integration daemon to work with",
|
77
91
|
)
|
78
92
|
@click.option(
|
79
93
|
"--integration_daemon_url",
|
80
|
-
default=
|
94
|
+
default="https://localhost:9443",
|
95
|
+
envvar="EGERIA_INTEGRATION_DAEMON_URL",
|
81
96
|
help="URL of Egeria integration daemon platform to connect to",
|
82
97
|
)
|
83
98
|
@click.option(
|
84
99
|
"--view_server",
|
85
|
-
default=
|
100
|
+
default="view-server",
|
101
|
+
envvar="EGERIA_VIEW_SERVER",
|
86
102
|
help="Egeria view server to work with",
|
87
103
|
)
|
88
104
|
@click.option(
|
89
105
|
"--view_server_url",
|
90
|
-
default=
|
106
|
+
default="https://localhost:9443",
|
107
|
+
envvar="EGERIA_VIEW_SERVER_URL",
|
91
108
|
help="URL of Egeria view server platform to connect to",
|
92
109
|
)
|
93
110
|
@click.option(
|
94
111
|
"--engine_host",
|
95
|
-
default=
|
112
|
+
default="engine-host",
|
113
|
+
envvar="EGERIA_ENGINE_HOST",
|
96
114
|
help="Egeria engine host to work with",
|
97
115
|
)
|
98
116
|
@click.option(
|
99
117
|
"--engine_host_url",
|
100
|
-
default=
|
118
|
+
default="https://localhost:9443",
|
119
|
+
envvar="EGERIA_ENGINE_HOST_URL",
|
101
120
|
help="URL of Egeria engine host platform to connect to",
|
102
121
|
)
|
103
122
|
@click.option(
|
104
123
|
"--admin_user",
|
105
|
-
default=
|
124
|
+
default="garygeeke",
|
125
|
+
envvar="EGERIA_ADMIN_USER",
|
106
126
|
help="Egeria admin user",
|
107
127
|
)
|
108
128
|
@click.option(
|
109
129
|
"--admin_user_password",
|
110
|
-
default=
|
130
|
+
default="secret",
|
131
|
+
envvar="EGERIA_ADMIN_PASSWORD",
|
111
132
|
help="Egeria admin password",
|
112
133
|
)
|
113
134
|
@click.option(
|
114
|
-
"--userid",
|
115
|
-
default=os.environ.get("EGERIA_USER", "peterprofile"),
|
116
|
-
help="Egeria user",
|
135
|
+
"--userid", default="erinoverview", envvar="EGERIA_USER", help="Egeria user"
|
117
136
|
)
|
118
137
|
@click.option(
|
119
138
|
"--password",
|
120
|
-
default=
|
139
|
+
default="secret",
|
140
|
+
envvar="EGERIA_PASSWORD",
|
121
141
|
help="Egeria user password",
|
122
142
|
)
|
123
143
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
124
144
|
@click.option(
|
125
145
|
"--jupyter",
|
126
146
|
is_flag=True,
|
127
|
-
default=
|
147
|
+
default=False,
|
148
|
+
envvar="EGERIA_JUPYTER",
|
128
149
|
help="Enable for rendering in a Jupyter terminal",
|
129
150
|
)
|
130
151
|
@click.option(
|
131
152
|
"--width",
|
132
|
-
default=
|
133
|
-
|
153
|
+
default=200,
|
154
|
+
envvar="EGERIA_WIDTH",
|
134
155
|
help="Screen width, in characters, to use",
|
135
156
|
)
|
136
|
-
@click.option(
|
137
|
-
"--home_glossary_guid",
|
138
|
-
default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
|
139
|
-
help="Glossary guid to use as the home glossary",
|
140
|
-
)
|
141
157
|
@click.pass_context
|
142
158
|
def cli(
|
143
159
|
ctx,
|
@@ -156,7 +172,6 @@ def cli(
|
|
156
172
|
timeout,
|
157
173
|
jupyter,
|
158
174
|
width,
|
159
|
-
home_glossary_guid,
|
160
175
|
):
|
161
176
|
"""An Egeria Command Line interface for Operations"""
|
162
177
|
ctx.obj = Config(
|
@@ -175,9 +190,8 @@ def cli(
|
|
175
190
|
timeout,
|
176
191
|
jupyter,
|
177
192
|
width,
|
178
|
-
home_glossary_guid,
|
179
193
|
)
|
180
|
-
ctx.max_content_width =
|
194
|
+
ctx.max_content_width = 200
|
181
195
|
ctx.ensure_object(Config)
|
182
196
|
|
183
197
|
|
@@ -208,11 +222,11 @@ def show_tech_types(ctx, tech_type):
|
|
208
222
|
@info.command("collections")
|
209
223
|
@click.option("--collection", default="*", help="Collection to search for")
|
210
224
|
@click.pass_context
|
211
|
-
def show_collections(ctx,
|
225
|
+
def show_collections(ctx, collections):
|
212
226
|
"""List Collections"""
|
213
227
|
c = ctx.obj
|
214
228
|
display_collections(
|
215
|
-
|
229
|
+
collections, c.view_server, c.view_server_url, c.userid, c.password
|
216
230
|
)
|
217
231
|
|
218
232
|
|
@@ -230,21 +244,6 @@ def asset_group(ctx):
|
|
230
244
|
help="Specific tech type to get elements for",
|
231
245
|
)
|
232
246
|
@click.pass_context
|
233
|
-
def list_tech_type_elements(ctx, tech_type):
|
234
|
-
"""List technology type elements"""
|
235
|
-
c = ctx.obj
|
236
|
-
list_tech_elements(
|
237
|
-
tech_type, c.view_server, c.view_server_url, c.userid, c.password
|
238
|
-
)
|
239
|
-
|
240
|
-
|
241
|
-
@asset_group.command("elements-of-tech-type")
|
242
|
-
@click.option(
|
243
|
-
"--tech_type",
|
244
|
-
default="PostgreSQL Server",
|
245
|
-
help="Specific tech type to get elements for",
|
246
|
-
)
|
247
|
-
@click.pass_context
|
248
247
|
def show_tech_type_elements(ctx, tech_type):
|
249
248
|
"""List technology type elements"""
|
250
249
|
c = ctx.obj
|
@@ -312,7 +311,7 @@ def glossary_group(ctx):
|
|
312
311
|
)
|
313
312
|
@click.option(
|
314
313
|
"--glossary-guid",
|
315
|
-
default=
|
314
|
+
default=None,
|
316
315
|
help="Optionally restrict search to glossary with the specified guid",
|
317
316
|
)
|
318
317
|
@click.option(
|
@@ -341,7 +340,7 @@ def show_terms(ctx, search_string, glossary_guid, glossary_name):
|
|
341
340
|
@click.option("--search_string", default="*", help="Name to search for glossaries")
|
342
341
|
@click.pass_context
|
343
342
|
def glossaries(ctx, search_string):
|
344
|
-
"""Display
|
343
|
+
"""Display information about a collection"""
|
345
344
|
c = ctx.obj
|
346
345
|
display_glossaries(
|
347
346
|
search_string,
|
@@ -357,12 +356,12 @@ def glossaries(ctx, search_string):
|
|
357
356
|
@info.command("collection")
|
358
357
|
@click.option(
|
359
358
|
"--root_collection",
|
360
|
-
default="
|
359
|
+
default="Root Sustainability Collection",
|
361
360
|
help="View of tree of collections from a given root",
|
362
361
|
)
|
363
362
|
@click.pass_context
|
364
|
-
def
|
365
|
-
"""Display a
|
363
|
+
def show_asset_graph(ctx, root_collection):
|
364
|
+
"""Display a tree graph of information about an asset"""
|
366
365
|
c = ctx.obj
|
367
366
|
collection_viewer(
|
368
367
|
root_collection,
|
@@ -404,7 +403,9 @@ def show_projects(ctx, search_string):
|
|
404
403
|
@click.option("--search-string", default="CertificationType", help="")
|
405
404
|
@click.pass_context
|
406
405
|
def show_certification_types(ctx, search_string):
|
407
|
-
"""Show certification types
|
406
|
+
"""Show certification types
|
407
|
+
- generally stay with the default.
|
408
|
+
"""
|
408
409
|
c = ctx.obj
|
409
410
|
display_certifications(
|
410
411
|
search_string,
|
@@ -476,7 +477,7 @@ def show_project_dependencies(ctx, project):
|
|
476
477
|
)
|
477
478
|
@click.pass_context
|
478
479
|
def show_todos(ctx, search_string, status):
|
479
|
-
"""Display a
|
480
|
+
"""Display a tree graph of information about an asset"""
|
480
481
|
c = ctx.obj
|
481
482
|
list_todos(
|
482
483
|
search_string,
|
@@ -9,8 +9,6 @@ A command line interface for Egeria Users - of individual relevance
|
|
9
9
|
This is an emerging capability based on the **click** package. Feedback welcome!
|
10
10
|
|
11
11
|
"""
|
12
|
-
import os
|
13
|
-
|
14
12
|
import click
|
15
13
|
from trogon import tui
|
16
14
|
|
@@ -49,81 +47,87 @@ from pyegeria.commands.my.todo_actions import (
|
|
49
47
|
@click.group()
|
50
48
|
@click.option(
|
51
49
|
"--server",
|
52
|
-
default=
|
50
|
+
default="active-metadata-store",
|
51
|
+
envvar="EGERIA_METADATA_STORE",
|
53
52
|
help="Egeria metadata store to work with",
|
54
53
|
)
|
55
54
|
@click.option(
|
56
55
|
"--url",
|
57
|
-
default=
|
56
|
+
default="https://localhost:9443",
|
57
|
+
envvar="EGERIA_PLATFORM_URL",
|
58
58
|
help="URL of Egeria metadata store platform to connect to",
|
59
59
|
)
|
60
60
|
@click.option(
|
61
|
-
"--
|
62
|
-
default=
|
61
|
+
"--integration-daemon",
|
62
|
+
default="integration-daemon",
|
63
|
+
envvar="EGERIA_INTEGRATION_DAEMON",
|
63
64
|
help="Egeria integration daemon to work with",
|
64
65
|
)
|
65
66
|
@click.option(
|
66
67
|
"--integration_daemon_url",
|
67
|
-
default=
|
68
|
+
default="https://localhost:9443",
|
69
|
+
envvar="EGERIA_INTEGRATION_DAEMON_URL",
|
68
70
|
help="URL of Egeria integration daemon platform to connect to",
|
69
71
|
)
|
70
72
|
@click.option(
|
71
73
|
"--view_server",
|
72
|
-
default=
|
74
|
+
default="view-server",
|
75
|
+
envvar="EGERIA_VIEW_SERVER",
|
73
76
|
help="Egeria view server to work with",
|
74
77
|
)
|
75
78
|
@click.option(
|
76
79
|
"--view_server_url",
|
77
|
-
default=
|
80
|
+
default="https://localhost:9443",
|
81
|
+
envvar="EGERIA_VIEW_SERVER_URL",
|
78
82
|
help="URL of Egeria view server platform to connect to",
|
79
83
|
)
|
80
84
|
@click.option(
|
81
85
|
"--engine_host",
|
82
|
-
default=
|
86
|
+
default="engine-host",
|
87
|
+
envvar="EGERIA_ENGINE_HOST",
|
83
88
|
help="Egeria engine host to work with",
|
84
89
|
)
|
85
90
|
@click.option(
|
86
91
|
"--engine_host_url",
|
87
|
-
default=
|
92
|
+
default="https://localhost:9443",
|
93
|
+
envvar="EGERIA_ENGINE_HOST_URL",
|
88
94
|
help="URL of Egeria engine host platform to connect to",
|
89
95
|
)
|
90
96
|
@click.option(
|
91
97
|
"--admin_user",
|
92
|
-
default=
|
98
|
+
default="garygeeke",
|
99
|
+
envvar="EGERIA_ADMIN_USER",
|
93
100
|
help="Egeria admin user",
|
94
101
|
)
|
95
102
|
@click.option(
|
96
103
|
"--admin_user_password",
|
97
|
-
default=
|
104
|
+
default="secret",
|
105
|
+
envvar="EGERIA_ADMIN_PASSWORD",
|
98
106
|
help="Egeria admin password",
|
99
107
|
)
|
100
108
|
@click.option(
|
101
|
-
"--userid",
|
102
|
-
default=os.environ.get("EGERIA_USER", "peterprofile"),
|
103
|
-
help="Egeria user",
|
109
|
+
"--userid", default="erinoverview", envvar="EGERIA_USER", help="Egeria user"
|
104
110
|
)
|
105
111
|
@click.option(
|
106
112
|
"--password",
|
107
|
-
default=
|
113
|
+
default="secret",
|
114
|
+
envvar="EGERIA_PASSWORD",
|
108
115
|
help="Egeria user password",
|
109
116
|
)
|
110
117
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
111
118
|
@click.option(
|
112
119
|
"--jupyter",
|
113
120
|
is_flag=True,
|
114
|
-
default=
|
121
|
+
default=False,
|
122
|
+
envvar="EGERIA_JUPYTER",
|
115
123
|
help="Enable for rendering in a Jupyter terminal",
|
116
124
|
)
|
117
125
|
@click.option(
|
118
126
|
"--width",
|
119
|
-
default=
|
127
|
+
default=200,
|
128
|
+
envvar="EGERIA_WIDTH",
|
120
129
|
help="Screen width, in characters, to use",
|
121
130
|
)
|
122
|
-
@click.option(
|
123
|
-
"--home_glossary_guid",
|
124
|
-
default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
|
125
|
-
help="Glossary guid to use as the home glossary",
|
126
|
-
)
|
127
131
|
@click.pass_context
|
128
132
|
def cli(
|
129
133
|
ctx,
|
@@ -189,7 +193,11 @@ def show_my_profile(ctx):
|
|
189
193
|
@show.command("my-roles")
|
190
194
|
@click.pass_context
|
191
195
|
def show_my_roles(ctx):
|
192
|
-
"""Display my
|
196
|
+
"""Display my profiles
|
197
|
+
|
198
|
+
Usage: show my-profile
|
199
|
+
|
200
|
+
"""
|
193
201
|
c = ctx.obj
|
194
202
|
display_my_roles(
|
195
203
|
c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
|
@@ -9,8 +9,6 @@ A command line interface for Egeria operations.
|
|
9
9
|
This is an emerging capability based on the **click** package. Feedback welcome!
|
10
10
|
|
11
11
|
"""
|
12
|
-
import os
|
13
|
-
|
14
12
|
import click
|
15
13
|
from trogon import tui
|
16
14
|
|
@@ -65,81 +63,85 @@ from pyegeria.commands.ops.list_archives import display_archive_list
|
|
65
63
|
@click.group()
|
66
64
|
@click.option(
|
67
65
|
"--server",
|
68
|
-
default=
|
66
|
+
default="active-metadata-store",
|
67
|
+
envvar="EGERIA_METADATA_STORE",
|
69
68
|
help="Egeria metadata store to work with",
|
70
69
|
)
|
71
70
|
@click.option(
|
72
71
|
"--url",
|
73
|
-
default=
|
72
|
+
default="https://localhost:9443",
|
73
|
+
envvar="EGERIA_PLATFORM_URL",
|
74
74
|
help="URL of Egeria metadata store platform to connect to",
|
75
75
|
)
|
76
76
|
@click.option(
|
77
|
-
"--
|
78
|
-
default=
|
77
|
+
"--integration-daemon",
|
78
|
+
default="integration-daemon",
|
79
|
+
envvar="EGERIA_INTEGRATION_DAEMON",
|
79
80
|
help="Egeria integration daemon to work with",
|
80
81
|
)
|
81
82
|
@click.option(
|
82
83
|
"--integration_daemon_url",
|
83
|
-
default=
|
84
|
+
default="https://localhost:9443",
|
85
|
+
envvar="EGERIA_INTEGRATION_DAEMON_URL",
|
84
86
|
help="URL of Egeria integration daemon platform to connect to",
|
85
87
|
)
|
86
88
|
@click.option(
|
87
89
|
"--view_server",
|
88
|
-
default=
|
90
|
+
default="view-server",
|
91
|
+
envvar="EGERIA_VIEW_SERVER",
|
89
92
|
help="Egeria view server to work with",
|
90
93
|
)
|
91
94
|
@click.option(
|
92
95
|
"--view_server_url",
|
93
|
-
default=
|
96
|
+
default="https://localhost:9443",
|
97
|
+
envvar="EGERIA_VIEW_SERVER_URL",
|
94
98
|
help="URL of Egeria view server platform to connect to",
|
95
99
|
)
|
96
100
|
@click.option(
|
97
101
|
"--engine_host",
|
98
|
-
default=
|
102
|
+
default="engine-host",
|
103
|
+
envvar="EGERIA_ENGINE_HOST",
|
99
104
|
help="Egeria engine host to work with",
|
100
105
|
)
|
101
106
|
@click.option(
|
102
107
|
"--engine_host_url",
|
103
|
-
default=
|
108
|
+
default="https://localhost:9443",
|
109
|
+
envvar="EGERIA_ENGINE_HOST_URL",
|
104
110
|
help="URL of Egeria engine host platform to connect to",
|
105
111
|
)
|
106
112
|
@click.option(
|
107
113
|
"--admin_user",
|
108
|
-
default=
|
114
|
+
default="garygeeke",
|
115
|
+
envvar="EGERIA_ADMIN_USER",
|
109
116
|
help="Egeria admin user",
|
110
117
|
)
|
111
118
|
@click.option(
|
112
119
|
"--admin_user_password",
|
113
|
-
default=
|
120
|
+
default="secret",
|
121
|
+
envvar="EGERIA_ADMIN_PASSWORD",
|
114
122
|
help="Egeria admin password",
|
115
123
|
)
|
116
|
-
@click.option(
|
117
|
-
"--userid",
|
118
|
-
default=os.environ.get("EGERIA_USER", "peterprofile"),
|
119
|
-
help="Egeria user",
|
120
|
-
)
|
124
|
+
@click.option("--userid", default="garygeeke", envvar="EGERIA_USER", help="Egeria user")
|
121
125
|
@click.option(
|
122
126
|
"--password",
|
123
|
-
default=
|
127
|
+
default="secret",
|
128
|
+
envvar="EGERIA_USER_PASSWORD",
|
124
129
|
help="Egeria user password",
|
125
130
|
)
|
126
131
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
127
132
|
@click.option(
|
128
133
|
"--jupyter",
|
129
134
|
is_flag=True,
|
130
|
-
default=
|
135
|
+
default=False,
|
136
|
+
envvar="EGERIA_JUPYTER",
|
131
137
|
help="Enable for rendering in a Jupyter terminal",
|
132
138
|
)
|
133
139
|
@click.option(
|
134
140
|
"--width",
|
135
|
-
default=
|
141
|
+
default=200,
|
142
|
+
envvar="EGERIA_WIDTH",
|
136
143
|
help="Screen width, in characters, to use",
|
137
144
|
)
|
138
|
-
@click.option(
|
139
|
-
"--home_glossary_guid",
|
140
|
-
default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
|
141
|
-
help="Glossary guid to use as the home glossary",
|
142
|
-
)
|
143
145
|
@click.pass_context
|
144
146
|
def cli(
|
145
147
|
ctx,
|
@@ -252,7 +254,7 @@ def show_startup_status(ctx):
|
|
252
254
|
@show_server.command("archives")
|
253
255
|
@click.pass_context
|
254
256
|
def list_archives(ctx):
|
255
|
-
"""Display a
|
257
|
+
"""Display a tree graph of information about an asset"""
|
256
258
|
c = ctx.obj
|
257
259
|
display_archive_list(
|
258
260
|
c.view_server,
|
@@ -292,14 +294,14 @@ def gov_eng_status(ctx, engine_list, engine_host, list):
|
|
292
294
|
c = ctx.obj
|
293
295
|
display_gov_eng_status(
|
294
296
|
[engine_list],
|
295
|
-
engine_host
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
297
|
+
engine_host,
|
298
|
+
c.view_server,
|
299
|
+
c.view_server_url,
|
300
|
+
c.userid,
|
301
|
+
c.password,
|
302
|
+
list,
|
303
|
+
c.jupyter,
|
304
|
+
c.width,
|
303
305
|
)
|
304
306
|
|
305
307
|
|
@@ -371,7 +373,7 @@ def integrations(ctx):
|
|
371
373
|
)
|
372
374
|
@click.pass_context
|
373
375
|
def integrations_status(ctx, connector_list, list):
|
374
|
-
"""Display
|
376
|
+
"""Display integration-daemon status information"""
|
375
377
|
c = ctx.obj
|
376
378
|
display_integration_daemon_status(
|
377
379
|
[connector_list],
|
@@ -387,7 +389,7 @@ def integrations_status(ctx, connector_list, list):
|
|
387
389
|
)
|
388
390
|
|
389
391
|
|
390
|
-
@integrations.command("
|
392
|
+
@integrations.command("targets")
|
391
393
|
@click.pass_context
|
392
394
|
@click.argument("connector", nargs=1)
|
393
395
|
def integrations_status(ctx, connector):
|
@@ -430,7 +432,7 @@ servers.add_command(stop_server)
|
|
430
432
|
@tell.group("integration-daemon")
|
431
433
|
@click.pass_context
|
432
434
|
def integration_daemon(ctx):
|
433
|
-
"""Group of commands to an
|
435
|
+
"""Group of commands to an integration-daemon"""
|
434
436
|
pass
|
435
437
|
|
436
438
|
|