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
@@ -87,7 +87,7 @@ def list_deployed_database_schemas(
|
|
87
87
|
def generate_table() -> Table:
|
88
88
|
"""Make a new table."""
|
89
89
|
table = Table(
|
90
|
-
title=f"
|
90
|
+
title=f"Database Schema List @ {time.asctime()}",
|
91
91
|
caption=f"Databases found: {view_url} - {view_server} @ {time.asctime()}",
|
92
92
|
style="bold bright_white on black",
|
93
93
|
row_styles=["bold bright_white on black"],
|
@@ -96,12 +96,17 @@ def list_deployed_database_schemas(
|
|
96
96
|
caption_style="white on black",
|
97
97
|
show_lines=True,
|
98
98
|
box=box.ROUNDED,
|
99
|
+
# title=f"Elements for Open Metadata Type: '{om_type}' ",
|
99
100
|
expand=True,
|
100
101
|
# width=500
|
101
102
|
)
|
102
103
|
|
103
104
|
table.add_column("Schema in Catalog")
|
104
105
|
table.add_column("Schema Properties")
|
106
|
+
|
107
|
+
# table.add_column("Home Store")
|
108
|
+
# table.add_column("GUID", width=38, no_wrap=True)
|
109
|
+
# table.add_column("Properties")
|
105
110
|
table.add_column("Cataloged Resource")
|
106
111
|
|
107
112
|
om_type = "DeployedDatabaseSchema"
|
@@ -134,21 +139,18 @@ def list_deployed_database_schemas(
|
|
134
139
|
# get the information about the catalog we are part of
|
135
140
|
el_classification = header["classifications"]
|
136
141
|
for c in el_classification:
|
137
|
-
el_cat_guid = "---"
|
138
142
|
if c["type"]["typeName"] == "Anchors":
|
139
143
|
el_anchor_guid = c["classificationProperties"]["anchorGUID"]
|
140
144
|
el_anchor_type_name = c["classificationProperties"][
|
141
145
|
"anchorTypeName"
|
142
146
|
]
|
143
|
-
|
144
|
-
"anchorDomainName"
|
145
|
-
]
|
146
|
-
el_cat_name = "---"
|
147
|
-
if el_anchor_domain_name == "SoftwareCapability":
|
147
|
+
if el_anchor_type_name == "Catalog":
|
148
148
|
el_cat = c_client.get_element_by_guid(el_anchor_guid)
|
149
149
|
el_cat_name = el_cat["properties"].get("name", None)
|
150
150
|
if el_cat_name is None:
|
151
|
-
el_cat_name = el_cat["properties"].get(
|
151
|
+
el_cat_name = el_cat["properties"].get(
|
152
|
+
"qualifiedName", "---"
|
153
|
+
)
|
152
154
|
el_cat_guid = el_cat["elementHeader"]["guid"]
|
153
155
|
el_schema_id = (
|
154
156
|
f"{el_name}\n{el_guid}\n\n\t\tin\n\n{el_cat_name}\n{el_cat_guid}"
|
@@ -201,6 +203,10 @@ def list_deployed_database_schemas(
|
|
201
203
|
|
202
204
|
table.add_row(
|
203
205
|
el_schema_id,
|
206
|
+
# el_type,
|
207
|
+
# el_created_out,
|
208
|
+
# el_home,
|
209
|
+
# el_guid,
|
204
210
|
el_props_out,
|
205
211
|
rel_el_out,
|
206
212
|
)
|
@@ -93,6 +93,7 @@ def list_deployed_databases(
|
|
93
93
|
table.add_column("Qualified Name")
|
94
94
|
table.add_column("Type")
|
95
95
|
table.add_column("Created", width=23)
|
96
|
+
table.add_column("Home Store")
|
96
97
|
table.add_column("GUID", width=38, no_wrap=True)
|
97
98
|
table.add_column("Properties")
|
98
99
|
table.add_column("Schemas")
|
@@ -113,8 +114,7 @@ def list_deployed_databases(
|
|
113
114
|
el_created_by = header["versions"]["createdBy"]
|
114
115
|
el_created_md = (
|
115
116
|
f"* **Created By**: {el_created_by}\n"
|
116
|
-
f"* **Created Time**: {el_create_time}
|
117
|
-
f"* **Home Store**: {el_home}"
|
117
|
+
f"* **Created Time**: {el_create_time}"
|
118
118
|
)
|
119
119
|
el_created_out = Markdown(el_created_md)
|
120
120
|
|
@@ -151,6 +151,7 @@ def list_deployed_databases(
|
|
151
151
|
el_q_name,
|
152
152
|
el_type,
|
153
153
|
el_created_out,
|
154
|
+
el_home,
|
154
155
|
el_guid,
|
155
156
|
el_props_out,
|
156
157
|
rel_el_out,
|
@@ -23,37 +23,28 @@ from pyegeria import (
|
|
23
23
|
PropertyServerException,
|
24
24
|
UserNotAuthorizedException,
|
25
25
|
print_exception_response,
|
26
|
-
AutomatedCuration
|
26
|
+
AutomatedCuration
|
27
27
|
)
|
28
28
|
|
29
29
|
EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
|
30
|
-
EGERIA_KAFKA_ENDPOINT = os.environ.get(
|
31
|
-
EGERIA_PLATFORM_URL = os.environ.get(
|
32
|
-
EGERIA_VIEW_SERVER = os.environ.get(
|
33
|
-
EGERIA_VIEW_SERVER_URL = os.environ.get(
|
34
|
-
|
35
|
-
)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
|
42
|
-
EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
|
30
|
+
EGERIA_KAFKA_ENDPOINT = os.environ.get('KAFKA_ENDPOINT', 'localhost:9092')
|
31
|
+
EGERIA_PLATFORM_URL = os.environ.get('EGERIA_PLATFORM_URL', 'https://localhost:9443')
|
32
|
+
EGERIA_VIEW_SERVER = os.environ.get('VIEW_SERVER', 'view-server')
|
33
|
+
EGERIA_VIEW_SERVER_URL = os.environ.get('EGERIA_VIEW_SERVER_URL', 'https://localhost:9443')
|
34
|
+
EGERIA_INTEGRATION_DAEMON = os.environ.get('INTEGRATION_DAEMON', 'integration-daemon')
|
35
|
+
EGERIA_ADMIN_USER = os.environ.get('ADMIN_USER', 'garygeeke')
|
36
|
+
EGERIA_ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD', 'secret')
|
37
|
+
EGERIA_USER = os.environ.get('EGERIA_USER', 'erinoverview')
|
38
|
+
EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
|
39
|
+
EGERIA_JUPYTER = bool(os.environ.get('EGERIA_JUPYTER', 'False'))
|
40
|
+
EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '200'))
|
43
41
|
|
44
42
|
|
45
43
|
disable_ssl_warnings = True
|
46
44
|
|
47
45
|
|
48
|
-
def display_tech_types(
|
49
|
-
|
50
|
-
server: str,
|
51
|
-
url: str,
|
52
|
-
username: str,
|
53
|
-
user_pass: str,
|
54
|
-
jupyter: bool = EGERIA_JUPYTER,
|
55
|
-
width: int = EGERIA_WIDTH,
|
56
|
-
):
|
46
|
+
def display_tech_types(search_string:str, server: str, url: str, username: str, user_pass: str,
|
47
|
+
jupyter: bool = EGERIA_JUPYTER, width: int = EGERIA_WIDTH):
|
57
48
|
a_client = AutomatedCuration(server, url, username)
|
58
49
|
token = a_client.create_egeria_bearer_token(username, user_pass)
|
59
50
|
tech_list = a_client.find_technology_types(search_string, page_size=0)
|
@@ -70,7 +61,7 @@ def display_tech_types(
|
|
70
61
|
show_lines=True,
|
71
62
|
box=box.ROUNDED,
|
72
63
|
caption=f"Technology Types from Server '{server}' @ Platform - {url}",
|
73
|
-
expand=True
|
64
|
+
expand=True
|
74
65
|
)
|
75
66
|
|
76
67
|
table.add_column("Name")
|
@@ -78,20 +69,23 @@ def display_tech_types(
|
|
78
69
|
table.add_column("Category")
|
79
70
|
table.add_column("Description")
|
80
71
|
|
72
|
+
|
81
73
|
name = " "
|
82
74
|
description = " "
|
83
75
|
version = " "
|
84
76
|
super_type = " "
|
85
77
|
if type(tech_list) is list:
|
86
78
|
for item in tech_list:
|
87
|
-
if
|
79
|
+
if 'deployedImplementationType' not in item['qualifiedName']:
|
88
80
|
continue
|
89
81
|
qualified_name = item.get("qualifiedName", " ")
|
90
82
|
name = item.get("name", "none")
|
91
83
|
category = item.get("category", "none")
|
92
84
|
description = item.get("description", "none")
|
93
85
|
|
94
|
-
table.add_row(
|
86
|
+
table.add_row(
|
87
|
+
name, qualified_name, category, description
|
88
|
+
)
|
95
89
|
return table
|
96
90
|
else:
|
97
91
|
print("Unknown technology type")
|
@@ -102,11 +96,7 @@ def display_tech_types(
|
|
102
96
|
with console.pager(styles=True):
|
103
97
|
console.print(generate_table())
|
104
98
|
|
105
|
-
except (
|
106
|
-
InvalidParameterException,
|
107
|
-
PropertyServerException,
|
108
|
-
UserNotAuthorizedException,
|
109
|
-
) as e:
|
99
|
+
except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
|
110
100
|
print_exception_response(e)
|
111
101
|
assert e.related_http_code != "200", "Invalid parameters"
|
112
102
|
finally:
|
@@ -128,13 +118,11 @@ def main():
|
|
128
118
|
user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
|
129
119
|
|
130
120
|
try:
|
131
|
-
search_string = Prompt.ask(
|
132
|
-
"Enter the technology you are searching for:", default="*"
|
133
|
-
)
|
121
|
+
search_string = Prompt.ask("Enter the technology you are searching for:", default="*")
|
134
122
|
display_tech_types(search_string, server, url, userid, user_pass)
|
135
|
-
except KeyboardInterrupt:
|
123
|
+
except (KeyboardInterrupt):
|
136
124
|
pass
|
137
125
|
|
138
126
|
|
139
127
|
if __name__ == "__main__":
|
140
|
-
main()
|
128
|
+
main()
|
@@ -25,7 +25,6 @@ from pyegeria import (
|
|
25
25
|
UserNotAuthorizedException,
|
26
26
|
EgeriaTech,
|
27
27
|
)
|
28
|
-
from pyegeria.commands.cat.glossary_actions import EGERIA_HOME_GLOSSARY_GUID
|
29
28
|
|
30
29
|
disable_ssl_warnings = True
|
31
30
|
|
@@ -43,12 +42,11 @@ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
|
|
43
42
|
EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
|
44
43
|
EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
|
45
44
|
EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
|
46
|
-
EGERIA_HOME_GLOSSARY_GUID = os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None)
|
47
45
|
|
48
46
|
|
49
47
|
def display_glossary_terms(
|
50
48
|
search_string: str = "*",
|
51
|
-
glossary_guid: str =
|
49
|
+
glossary_guid: str = None,
|
52
50
|
glossary_name: str = None,
|
53
51
|
view_server: str = EGERIA_VIEW_SERVER,
|
54
52
|
view_url: str = EGERIA_VIEW_SERVER_URL,
|
@@ -222,7 +220,7 @@ def main():
|
|
222
220
|
url = args.url if args.url is not None else EGERIA_PLATFORM_URL
|
223
221
|
userid = args.userid if args.userid is not None else EGERIA_USER
|
224
222
|
user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
|
225
|
-
guid = args.guid if args.guid is not None else
|
223
|
+
guid = args.guid if args.guid is not None else None
|
226
224
|
|
227
225
|
try:
|
228
226
|
search_string = Prompt.ask("Enter the term you are searching for:", default="*")
|