pyegeria 5.2.0.13__py3-none-any.whl → 5.2.0.42.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.
- pyegeria/collection_manager_omvs.py +9 -6
- pyegeria/commands/README.md +2 -1
- pyegeria/commands/cat/__init__.py +1 -5
- pyegeria/commands/cat/exp_list_glossaries.py +1 -1
- pyegeria/commands/cat/get_asset_graph.py +1 -1
- pyegeria/commands/cat/get_collection.py +2 -2
- pyegeria/commands/cat/get_project_dependencies.py +1 -1
- pyegeria/commands/cat/get_project_structure.py +1 -1
- pyegeria/commands/cat/get_tech_type_elements.py +2 -2
- pyegeria/commands/cat/glossary_actions.py +9 -3
- pyegeria/commands/cat/list_assets.py +9 -18
- pyegeria/commands/cat/list_cert_types.py +1 -1
- pyegeria/commands/cat/list_collections.py +1 -1
- pyegeria/commands/cat/list_deployed_catalogs.py +5 -3
- pyegeria/commands/cat/list_deployed_database_schemas.py +1 -1
- pyegeria/commands/cat/list_deployed_databases.py +3 -4
- pyegeria/commands/cat/list_glossaries.py +1 -1
- pyegeria/commands/cat/list_projects.py +1 -1
- pyegeria/commands/cat/list_servers_deployed_imp.py +1 -1
- pyegeria/commands/cat/list_tech_type_elements.py +190 -0
- pyegeria/commands/cat/list_tech_types.py +36 -24
- pyegeria/commands/cat/list_terms.py +5 -3
- pyegeria/commands/cat/list_todos.py +1 -1
- pyegeria/commands/cat/list_user_ids.py +1 -1
- pyegeria/commands/cli/egeria.py +75 -77
- pyegeria/commands/cli/egeria_cat.py +44 -44
- pyegeria/commands/cli/egeria_login_tui.py +12 -4
- pyegeria/commands/cli/egeria_my.py +24 -28
- pyegeria/commands/cli/egeria_ops.py +37 -39
- pyegeria/commands/cli/egeria_tech.py +49 -35
- pyegeria/commands/cli/ops_config.py +3 -1
- pyegeria/commands/doc/{command-overview.md → README.md} +50 -5
- pyegeria/commands/doc/Visual Command Reference/README.md +511 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-19 at 13.23.11.mov +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-19 at 19.56.26.mp4 +0 -0
- 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-12-17 at 15.48.38@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/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/commands/doc/hey_egeria: a pyegeria command line interface/{hey_egeria: overview.md → README.md } +1 -1
- pyegeria/commands/my/list_my_profile.py +1 -1
- pyegeria/commands/my/list_my_roles.py +1 -1
- pyegeria/commands/my/monitor_my_todos.py +18 -6
- pyegeria/commands/my/monitor_open_todos.py +2 -2
- pyegeria/commands/my/todo_actions.py +1 -1
- pyegeria/commands/ops/list_archives.py +1 -1
- pyegeria/commands/ops/list_catalog_targets.py +1 -1
- pyegeria/commands/ops/load_archive.py +1 -1
- pyegeria/commands/ops/monitor_asset_events.py +27 -22
- pyegeria/commands/ops/monitor_engine_activity.py +1 -1
- pyegeria/commands/ops/monitor_engine_activity_c.py +1 -1
- pyegeria/commands/ops/monitor_gov_eng_status.py +31 -4
- pyegeria/commands/ops/monitor_integ_daemon_status.py +12 -9
- pyegeria/commands/ops/monitor_platform_status.py +2 -2
- pyegeria/commands/ops/monitor_server_startup.py +1 -1
- pyegeria/commands/ops/monitor_server_status.py +1 -1
- pyegeria/commands/ops/orig_monitor_server_list.py +1 -1
- pyegeria/commands/ops/orig_monitor_server_status.py +36 -21
- pyegeria/commands/ops/refresh_integration_daemon.py +2 -2
- pyegeria/commands/ops/restart_integration_daemon.py +2 -2
- pyegeria/commands/ops/table_integ_daemon_status.py +1 -1
- pyegeria/commands/tech/get_element_info.py +1 -1
- pyegeria/commands/tech/get_guid_info.py +1 -1
- pyegeria/commands/tech/get_tech_details.py +79 -42
- pyegeria/commands/tech/get_tech_type_template.py +69 -53
- pyegeria/commands/tech/list_anchored_elements.py +19 -16
- pyegeria/commands/tech/list_asset_types.py +1 -1
- pyegeria/commands/tech/list_elements.py +1 -1
- pyegeria/commands/tech/list_elements_for_classification.py +1 -1
- pyegeria/commands/tech/list_elements_x.py +8 -5
- pyegeria/commands/tech/list_gov_action_processes.py +1 -1
- pyegeria/commands/tech/list_registered_services.py +2 -2
- pyegeria/commands/tech/list_related_elements.py +1 -1
- pyegeria/commands/tech/list_related_specification.py +1 -1
- pyegeria/commands/tech/list_relationship_types.py +20 -22
- pyegeria/commands/tech/list_relationships.py +8 -4
- pyegeria/commands/tech/list_tech_templates.py +1 -1
- pyegeria/commands/tech/list_valid_metadata_values.py +1 -1
- pyegeria/commands/tech/table_tech_templates.py +1 -1
- pyegeria/commands/tech/x_list_related_elements.py +1 -1
- pyegeria/create_tech_guid_lists.py +2 -2
- pyegeria/glossary_manager_omvs.py +64 -1
- pyegeria/mermaid_utilities.py +1 -1
- pyegeria/metadata_explorer_omvs.py +96 -47
- pyegeria/server_operations.py +4 -4
- {pyegeria-5.2.0.13.dist-info → pyegeria-5.2.0.42.2.dist-info}/METADATA +1 -1
- pyegeria-5.2.0.42.2.dist-info/RECORD +234 -0
- {pyegeria-5.2.0.13.dist-info → pyegeria-5.2.0.42.2.dist-info}/entry_points.txt +2 -1
- pyegeria/commands/doc/Visual Command Reference/cat/show/assets/deployed-catalogs 2024-11-20 at 16.17.43@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.30.02@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.31.47@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.32.11@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.34.19@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.36.42@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.36.55@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.37.07@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-06 at 08.46.30@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-06 at 11.27.56@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/catalogs 2024-11-25 at 16.28.53@2x.png +0 -0
- pyegeria-5.2.0.13.dist-info/RECORD +0 -195
- /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-5.2.0.13.dist-info → pyegeria-5.2.0.42.2.dist-info}/LICENSE +0 -0
- {pyegeria-5.2.0.13.dist-info → pyegeria-5.2.0.42.2.dist-info}/WHEEL +0 -0
@@ -9,6 +9,8 @@ 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
|
+
|
12
14
|
import click
|
13
15
|
from trogon import tui
|
14
16
|
|
@@ -17,6 +19,7 @@ from pyegeria.commands.cat.get_collection import collection_viewer
|
|
17
19
|
from pyegeria.commands.cat.get_project_dependencies import project_dependency_viewer
|
18
20
|
from pyegeria.commands.cat.get_project_structure import project_structure_viewer
|
19
21
|
from pyegeria.commands.cat.get_tech_type_elements import tech_viewer
|
22
|
+
from pyegeria.commands.cat.list_tech_type_elements import list_tech_elements
|
20
23
|
from pyegeria.commands.cat.glossary_actions import (
|
21
24
|
create_glossary,
|
22
25
|
delete_glossary,
|
@@ -41,7 +44,7 @@ from pyegeria.commands.cat.list_todos import display_to_dos as list_todos
|
|
41
44
|
from pyegeria.commands.cat.list_user_ids import list_user_ids
|
42
45
|
from pyegeria.commands.cat.list_collections import display_collections
|
43
46
|
|
44
|
-
|
47
|
+
|
45
48
|
from pyegeria.commands.cli.ops_config import Config
|
46
49
|
from pyegeria.commands.my.todo_actions import (
|
47
50
|
mark_todo_complete,
|
@@ -52,20 +55,6 @@ from pyegeria.commands.my.todo_actions import (
|
|
52
55
|
from pyegeria.commands.tech.list_asset_types import display_asset_types
|
53
56
|
|
54
57
|
|
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
|
-
|
69
58
|
# @tui
|
70
59
|
# @tui('menu','menu','A textual command line interface')
|
71
60
|
@tui()
|
@@ -73,87 +62,81 @@ from pyegeria.commands.tech.list_asset_types import display_asset_types
|
|
73
62
|
@click.group()
|
74
63
|
@click.option(
|
75
64
|
"--server",
|
76
|
-
default="active-metadata-store",
|
77
|
-
envvar="EGERIA_METADATA_STORE",
|
65
|
+
default=os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store"),
|
78
66
|
help="Egeria metadata store to work with",
|
79
67
|
)
|
80
68
|
@click.option(
|
81
69
|
"--url",
|
82
|
-
default="https://localhost:9443",
|
83
|
-
envvar="EGERIA_PLATFORM_URL",
|
70
|
+
default=os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443"),
|
84
71
|
help="URL of Egeria metadata store platform to connect to",
|
85
72
|
)
|
86
73
|
@click.option(
|
87
74
|
"--integration_daemon",
|
88
|
-
default="integration-daemon",
|
89
|
-
envvar="EGERIA_INTEGRATION_DAEMON",
|
75
|
+
default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
|
90
76
|
help="Egeria integration daemon to work with",
|
91
77
|
)
|
92
78
|
@click.option(
|
93
79
|
"--integration_daemon_url",
|
94
|
-
default="https://localhost:9443",
|
95
|
-
envvar="EGERIA_INTEGRATION_DAEMON_URL",
|
80
|
+
default=os.environ.get("EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"),
|
96
81
|
help="URL of Egeria integration daemon platform to connect to",
|
97
82
|
)
|
98
83
|
@click.option(
|
99
84
|
"--view_server",
|
100
|
-
default="view-server",
|
101
|
-
envvar="EGERIA_VIEW_SERVER",
|
85
|
+
default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
|
102
86
|
help="Egeria view server to work with",
|
103
87
|
)
|
104
88
|
@click.option(
|
105
89
|
"--view_server_url",
|
106
|
-
default="https://localhost:9443",
|
107
|
-
envvar="EGERIA_VIEW_SERVER_URL",
|
90
|
+
default=os.environ.get("EGERIA_VIEW_SERVER_URL", "https://localhost:9443"),
|
108
91
|
help="URL of Egeria view server platform to connect to",
|
109
92
|
)
|
110
93
|
@click.option(
|
111
94
|
"--engine_host",
|
112
|
-
default="engine-host",
|
113
|
-
envvar="EGERIA_ENGINE_HOST",
|
95
|
+
default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
|
114
96
|
help="Egeria engine host to work with",
|
115
97
|
)
|
116
98
|
@click.option(
|
117
99
|
"--engine_host_url",
|
118
|
-
default="https://localhost:9443",
|
119
|
-
envvar="EGERIA_ENGINE_HOST_URL",
|
100
|
+
default=os.environ.get("EGERIA_ENGINE_HOST_URL", "https://localhost:9443"),
|
120
101
|
help="URL of Egeria engine host platform to connect to",
|
121
102
|
)
|
122
103
|
@click.option(
|
123
104
|
"--admin_user",
|
124
|
-
default="garygeeke",
|
125
|
-
envvar="EGERIA_ADMIN_USER",
|
105
|
+
default=os.environ.get("EGERIA_ADMIN_USER", "garygeeke"),
|
126
106
|
help="Egeria admin user",
|
127
107
|
)
|
128
108
|
@click.option(
|
129
109
|
"--admin_user_password",
|
130
|
-
default="secret",
|
131
|
-
envvar="EGERIA_ADMIN_PASSWORD",
|
110
|
+
default=os.environ.get("EGERIA_ADMIN_PASSWORD", "secret"),
|
132
111
|
help="Egeria admin password",
|
133
112
|
)
|
134
113
|
@click.option(
|
135
|
-
"--userid",
|
114
|
+
"--userid",
|
115
|
+
default=os.environ.get("EGERIA_USER", "peterprofile"),
|
116
|
+
help="Egeria user",
|
136
117
|
)
|
137
118
|
@click.option(
|
138
119
|
"--password",
|
139
|
-
default="secret",
|
140
|
-
envvar="EGERIA_PASSWORD",
|
120
|
+
default=os.environ.get("EGERIA_USER_PASSWORD", "secret"),
|
141
121
|
help="Egeria user password",
|
142
122
|
)
|
143
123
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
144
124
|
@click.option(
|
145
125
|
"--jupyter",
|
146
126
|
is_flag=True,
|
147
|
-
default=False,
|
148
|
-
envvar="EGERIA_JUPYTER",
|
127
|
+
default=os.environ.get("EGERIA_JUPYTER", "False"),
|
149
128
|
help="Enable for rendering in a Jupyter terminal",
|
150
129
|
)
|
151
130
|
@click.option(
|
152
131
|
"--width",
|
153
|
-
default=200,
|
154
|
-
envvar="EGERIA_WIDTH",
|
132
|
+
default=os.environ.get("EGERIA_WIDTH", "200"),
|
155
133
|
help="Screen width, in characters, to use",
|
156
134
|
)
|
135
|
+
@click.option(
|
136
|
+
"--home_glossary_guid",
|
137
|
+
default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
|
138
|
+
help="Glossary guid to use as the home glossary",
|
139
|
+
)
|
157
140
|
@click.pass_context
|
158
141
|
def cli(
|
159
142
|
ctx,
|
@@ -172,6 +155,7 @@ def cli(
|
|
172
155
|
timeout,
|
173
156
|
jupyter,
|
174
157
|
width,
|
158
|
+
home_glossary_guid,
|
175
159
|
):
|
176
160
|
"""An Egeria Command Line interface for Operations"""
|
177
161
|
ctx.obj = Config(
|
@@ -190,8 +174,9 @@ def cli(
|
|
190
174
|
timeout,
|
191
175
|
jupyter,
|
192
176
|
width,
|
177
|
+
home_glossary_guid,
|
193
178
|
)
|
194
|
-
ctx.max_content_width =
|
179
|
+
ctx.max_content_width = 250
|
195
180
|
ctx.ensure_object(Config)
|
196
181
|
|
197
182
|
|
@@ -244,6 +229,21 @@ def asset_group(ctx):
|
|
244
229
|
help="Specific tech type to get elements for",
|
245
230
|
)
|
246
231
|
@click.pass_context
|
232
|
+
def list_tech_type_elements(ctx, tech_type):
|
233
|
+
"""List technology type elements"""
|
234
|
+
c = ctx.obj
|
235
|
+
list_tech_elements(
|
236
|
+
tech_type, c.view_server, c.view_server_url, c.userid, c.password
|
237
|
+
)
|
238
|
+
|
239
|
+
|
240
|
+
@asset_group.command("elements-of-tech-type")
|
241
|
+
@click.option(
|
242
|
+
"--tech_type",
|
243
|
+
default="PostgreSQL Server",
|
244
|
+
help="Specific tech type to get elements for",
|
245
|
+
)
|
246
|
+
@click.pass_context
|
247
247
|
def show_tech_type_elements(ctx, tech_type):
|
248
248
|
"""List technology type elements"""
|
249
249
|
c = ctx.obj
|
@@ -311,7 +311,7 @@ def glossary_group(ctx):
|
|
311
311
|
)
|
312
312
|
@click.option(
|
313
313
|
"--glossary-guid",
|
314
|
-
default=
|
314
|
+
default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID"),
|
315
315
|
help="Optionally restrict search to glossary with the specified guid",
|
316
316
|
)
|
317
317
|
@click.option(
|
@@ -9,7 +9,7 @@ Peter Coldicott
|
|
9
9
|
|
10
10
|
import os
|
11
11
|
from os import system
|
12
|
-
|
12
|
+
import click
|
13
13
|
from textual.reactive import Reactive
|
14
14
|
|
15
15
|
from textual.app import App, ComposeResult
|
@@ -36,6 +36,7 @@ from textual.widgets import (
|
|
36
36
|
|
37
37
|
from typing import Any
|
38
38
|
|
39
|
+
|
39
40
|
EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
|
40
41
|
EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
|
41
42
|
EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
|
@@ -43,7 +44,7 @@ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
|
|
43
44
|
EGERIA_VIEW_SERVER_URL = os.environ.get(
|
44
45
|
"EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
|
45
46
|
)
|
46
|
-
EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "
|
47
|
+
EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration_daemon")
|
47
48
|
EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
|
48
49
|
EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
|
49
50
|
EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
|
@@ -294,10 +295,17 @@ class Egeria_login(App):
|
|
294
295
|
)
|
295
296
|
|
296
297
|
|
297
|
-
|
298
|
+
# @click.command("egeria-login")
|
299
|
+
# @click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use.")
|
300
|
+
# @click.option(
|
301
|
+
# "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
|
302
|
+
# )
|
303
|
+
# @click.option("--userid", default=EGERIA_USER, help="Egeria user")
|
304
|
+
# @click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
|
305
|
+
def login(userid: str, password: str, server: str, url: str) -> None:
|
298
306
|
app = Egeria_login()
|
299
307
|
app.run()
|
300
|
-
return
|
308
|
+
return "peterprofile"
|
301
309
|
|
302
310
|
|
303
311
|
if __name__ == "__main__":
|
@@ -9,6 +9,8 @@ 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
|
+
|
12
14
|
import click
|
13
15
|
from trogon import tui
|
14
16
|
|
@@ -47,87 +49,81 @@ from pyegeria.commands.my.todo_actions import (
|
|
47
49
|
@click.group()
|
48
50
|
@click.option(
|
49
51
|
"--server",
|
50
|
-
default="active-metadata-store",
|
51
|
-
envvar="EGERIA_METADATA_STORE",
|
52
|
+
default=os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store"),
|
52
53
|
help="Egeria metadata store to work with",
|
53
54
|
)
|
54
55
|
@click.option(
|
55
56
|
"--url",
|
56
|
-
default="https://localhost:9443",
|
57
|
-
envvar="EGERIA_PLATFORM_URL",
|
57
|
+
default=os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443"),
|
58
58
|
help="URL of Egeria metadata store platform to connect to",
|
59
59
|
)
|
60
60
|
@click.option(
|
61
|
-
"--
|
62
|
-
default="integration-daemon",
|
63
|
-
envvar="EGERIA_INTEGRATION_DAEMON",
|
61
|
+
"--integration_daemon",
|
62
|
+
default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
|
64
63
|
help="Egeria integration daemon to work with",
|
65
64
|
)
|
66
65
|
@click.option(
|
67
66
|
"--integration_daemon_url",
|
68
|
-
default="https://localhost:9443",
|
69
|
-
envvar="EGERIA_INTEGRATION_DAEMON_URL",
|
67
|
+
default=os.environ.get("EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"),
|
70
68
|
help="URL of Egeria integration daemon platform to connect to",
|
71
69
|
)
|
72
70
|
@click.option(
|
73
71
|
"--view_server",
|
74
|
-
default="view-server",
|
75
|
-
envvar="EGERIA_VIEW_SERVER",
|
72
|
+
default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
|
76
73
|
help="Egeria view server to work with",
|
77
74
|
)
|
78
75
|
@click.option(
|
79
76
|
"--view_server_url",
|
80
|
-
default="https://localhost:9443",
|
81
|
-
envvar="EGERIA_VIEW_SERVER_URL",
|
77
|
+
default=os.environ.get("EGERIA_VIEW_SERVER_URL", "https://localhost:9443"),
|
82
78
|
help="URL of Egeria view server platform to connect to",
|
83
79
|
)
|
84
80
|
@click.option(
|
85
81
|
"--engine_host",
|
86
|
-
default="engine-host",
|
87
|
-
envvar="EGERIA_ENGINE_HOST",
|
82
|
+
default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
|
88
83
|
help="Egeria engine host to work with",
|
89
84
|
)
|
90
85
|
@click.option(
|
91
86
|
"--engine_host_url",
|
92
|
-
default="https://localhost:9443",
|
93
|
-
envvar="EGERIA_ENGINE_HOST_URL",
|
87
|
+
default=os.environ.get("EGERIA_ENGINE_HOST_URL", "https://localhost:9443"),
|
94
88
|
help="URL of Egeria engine host platform to connect to",
|
95
89
|
)
|
96
90
|
@click.option(
|
97
91
|
"--admin_user",
|
98
|
-
default="garygeeke",
|
99
|
-
envvar="EGERIA_ADMIN_USER",
|
92
|
+
default=os.environ.get("EGERIA_ADMIN_USER", "garygeeke"),
|
100
93
|
help="Egeria admin user",
|
101
94
|
)
|
102
95
|
@click.option(
|
103
96
|
"--admin_user_password",
|
104
|
-
default="secret",
|
105
|
-
envvar="EGERIA_ADMIN_PASSWORD",
|
97
|
+
default=os.environ.get("EGERIA_ADMIN_PASSWORD", "secret"),
|
106
98
|
help="Egeria admin password",
|
107
99
|
)
|
108
100
|
@click.option(
|
109
|
-
"--userid",
|
101
|
+
"--userid",
|
102
|
+
default=os.environ.get("EGERIA_USER", "peterprofile"),
|
103
|
+
help="Egeria user",
|
110
104
|
)
|
111
105
|
@click.option(
|
112
106
|
"--password",
|
113
|
-
default="secret",
|
114
|
-
envvar="EGERIA_PASSWORD",
|
107
|
+
default=os.environ.get("EGERIA_USER_PASSWORD", "secret"),
|
115
108
|
help="Egeria user password",
|
116
109
|
)
|
117
110
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
118
111
|
@click.option(
|
119
112
|
"--jupyter",
|
120
113
|
is_flag=True,
|
121
|
-
default=False,
|
122
|
-
envvar="EGERIA_JUPYTER",
|
114
|
+
default=os.environ.get("EGERIA_JUPYTER", "False"),
|
123
115
|
help="Enable for rendering in a Jupyter terminal",
|
124
116
|
)
|
125
117
|
@click.option(
|
126
118
|
"--width",
|
127
|
-
default=200,
|
128
|
-
envvar="EGERIA_WIDTH",
|
119
|
+
default=os.environ.get("EGERIA_WIDTH", "200"),
|
129
120
|
help="Screen width, in characters, to use",
|
130
121
|
)
|
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
|
+
)
|
131
127
|
@click.pass_context
|
132
128
|
def cli(
|
133
129
|
ctx,
|
@@ -9,6 +9,8 @@ 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
|
+
|
12
14
|
import click
|
13
15
|
from trogon import tui
|
14
16
|
|
@@ -63,85 +65,81 @@ from pyegeria.commands.ops.list_archives import display_archive_list
|
|
63
65
|
@click.group()
|
64
66
|
@click.option(
|
65
67
|
"--server",
|
66
|
-
default="active-metadata-store",
|
67
|
-
envvar="EGERIA_METADATA_STORE",
|
68
|
+
default=os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store"),
|
68
69
|
help="Egeria metadata store to work with",
|
69
70
|
)
|
70
71
|
@click.option(
|
71
72
|
"--url",
|
72
|
-
default="https://localhost:9443",
|
73
|
-
envvar="EGERIA_PLATFORM_URL",
|
73
|
+
default=os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443"),
|
74
74
|
help="URL of Egeria metadata store platform to connect to",
|
75
75
|
)
|
76
76
|
@click.option(
|
77
|
-
"--
|
78
|
-
default="integration-daemon",
|
79
|
-
envvar="EGERIA_INTEGRATION_DAEMON",
|
77
|
+
"--integration_daemon",
|
78
|
+
default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
|
80
79
|
help="Egeria integration daemon to work with",
|
81
80
|
)
|
82
81
|
@click.option(
|
83
82
|
"--integration_daemon_url",
|
84
|
-
default="https://localhost:9443",
|
85
|
-
envvar="EGERIA_INTEGRATION_DAEMON_URL",
|
83
|
+
default=os.environ.get("EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"),
|
86
84
|
help="URL of Egeria integration daemon platform to connect to",
|
87
85
|
)
|
88
86
|
@click.option(
|
89
87
|
"--view_server",
|
90
|
-
default="view-server",
|
91
|
-
envvar="EGERIA_VIEW_SERVER",
|
88
|
+
default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
|
92
89
|
help="Egeria view server to work with",
|
93
90
|
)
|
94
91
|
@click.option(
|
95
92
|
"--view_server_url",
|
96
|
-
default="https://localhost:9443",
|
97
|
-
envvar="EGERIA_VIEW_SERVER_URL",
|
93
|
+
default=os.environ.get("EGERIA_VIEW_SERVER_URL", "https://localhost:9443"),
|
98
94
|
help="URL of Egeria view server platform to connect to",
|
99
95
|
)
|
100
96
|
@click.option(
|
101
97
|
"--engine_host",
|
102
|
-
default="engine-host",
|
103
|
-
envvar="EGERIA_ENGINE_HOST",
|
98
|
+
default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
|
104
99
|
help="Egeria engine host to work with",
|
105
100
|
)
|
106
101
|
@click.option(
|
107
102
|
"--engine_host_url",
|
108
|
-
default="https://localhost:9443",
|
109
|
-
envvar="EGERIA_ENGINE_HOST_URL",
|
103
|
+
default=os.environ.get("EGERIA_ENGINE_HOST_URL", "https://localhost:9443"),
|
110
104
|
help="URL of Egeria engine host platform to connect to",
|
111
105
|
)
|
112
106
|
@click.option(
|
113
107
|
"--admin_user",
|
114
|
-
default="garygeeke",
|
115
|
-
envvar="EGERIA_ADMIN_USER",
|
108
|
+
default=os.environ.get("EGERIA_ADMIN_USER", "garygeeke"),
|
116
109
|
help="Egeria admin user",
|
117
110
|
)
|
118
111
|
@click.option(
|
119
112
|
"--admin_user_password",
|
120
|
-
default="secret",
|
121
|
-
envvar="EGERIA_ADMIN_PASSWORD",
|
113
|
+
default=os.environ.get("EGERIA_ADMIN_PASSWORD", "secret"),
|
122
114
|
help="Egeria admin password",
|
123
115
|
)
|
124
|
-
@click.option(
|
116
|
+
@click.option(
|
117
|
+
"--userid",
|
118
|
+
default=os.environ.get("EGERIA_USER", "peterprofile"),
|
119
|
+
help="Egeria user",
|
120
|
+
)
|
125
121
|
@click.option(
|
126
122
|
"--password",
|
127
|
-
default="secret",
|
128
|
-
envvar="EGERIA_USER_PASSWORD",
|
123
|
+
default=os.environ.get("EGERIA_USER_PASSWORD", "secret"),
|
129
124
|
help="Egeria user password",
|
130
125
|
)
|
131
126
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
132
127
|
@click.option(
|
133
128
|
"--jupyter",
|
134
129
|
is_flag=True,
|
135
|
-
default=False,
|
136
|
-
envvar="EGERIA_JUPYTER",
|
130
|
+
default=os.environ.get("EGERIA_JUPYTER", "False"),
|
137
131
|
help="Enable for rendering in a Jupyter terminal",
|
138
132
|
)
|
139
133
|
@click.option(
|
140
134
|
"--width",
|
141
|
-
default=200,
|
142
|
-
envvar="EGERIA_WIDTH",
|
135
|
+
default=os.environ.get("EGERIA_WIDTH", "200"),
|
143
136
|
help="Screen width, in characters, to use",
|
144
137
|
)
|
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
|
+
)
|
145
143
|
@click.pass_context
|
146
144
|
def cli(
|
147
145
|
ctx,
|
@@ -294,14 +292,14 @@ def gov_eng_status(ctx, engine_list, engine_host, list):
|
|
294
292
|
c = ctx.obj
|
295
293
|
display_gov_eng_status(
|
296
294
|
[engine_list],
|
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,
|
295
|
+
engine_host=engine_host,
|
296
|
+
view_server=c.view_server,
|
297
|
+
url=c.view_server_url,
|
298
|
+
username=c.userid,
|
299
|
+
user_pass=c.password,
|
300
|
+
paging=list,
|
301
|
+
jupyter=c.jupyter,
|
302
|
+
width=c.width,
|
305
303
|
)
|
306
304
|
|
307
305
|
|
@@ -373,7 +371,7 @@ def integrations(ctx):
|
|
373
371
|
)
|
374
372
|
@click.pass_context
|
375
373
|
def integrations_status(ctx, connector_list, list):
|
376
|
-
"""Display
|
374
|
+
"""Display integration_daemon status information"""
|
377
375
|
c = ctx.obj
|
378
376
|
display_integration_daemon_status(
|
379
377
|
[connector_list],
|
@@ -389,7 +387,7 @@ def integrations_status(ctx, connector_list, list):
|
|
389
387
|
)
|
390
388
|
|
391
389
|
|
392
|
-
@integrations.command("targets")
|
390
|
+
@integrations.command("--targets")
|
393
391
|
@click.pass_context
|
394
392
|
@click.argument("connector", nargs=1)
|
395
393
|
def integrations_status(ctx, connector):
|
@@ -432,7 +430,7 @@ servers.add_command(stop_server)
|
|
432
430
|
@tell.group("integration-daemon")
|
433
431
|
@click.pass_context
|
434
432
|
def integration_daemon(ctx):
|
435
|
-
"""Group of commands to an
|
433
|
+
"""Group of commands to an integration_daemon"""
|
436
434
|
pass
|
437
435
|
|
438
436
|
|