pyegeria 5.3.2__py3-none-any.whl → 5.3.3.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.
Files changed (29) hide show
  1. pyegeria/.DS_Store +0 -0
  2. pyegeria/classification_manager_omvs.py +4 -4
  3. pyegeria/commands/.DS_Store +0 -0
  4. pyegeria/commands/cli/egeria.py +203 -68
  5. pyegeria/commands/cli/egeria_tech.py +251 -141
  6. pyegeria/commands/doc/.DS_Store +0 -0
  7. pyegeria/commands/doc/Visual Command Reference/.DS_Store +0 -0
  8. pyegeria/commands/doc/Visual Command Reference/cat/.DS_Store +0 -0
  9. pyegeria/commands/doc/Visual Command Reference/cat/show/.DS_Store +0 -0
  10. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/.DS_Store +0 -0
  11. pyegeria/commands/doc/glossary/.DS_Store +0 -0
  12. pyegeria/commands/doc/glossary/images/.DS_Store +0 -0
  13. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/.DS_Store +0 -0
  14. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/.DS_Store +0 -0
  15. pyegeria/commands/tech/{list_elements.py → list_all_om_type_elements.py} +2 -2
  16. pyegeria/commands/tech/{list_elements_x.py → list_all_om_type_elements_x.py} +2 -2
  17. pyegeria/commands/tech/{list_related_elements.py → list_all_related_elements.py} +1 -1
  18. pyegeria/commands/tech/list_elements_by_classification_by_property_value.py +186 -0
  19. pyegeria/commands/tech/list_elements_by_property_value.py +175 -0
  20. pyegeria/commands/tech/list_elements_by_property_value_x.py +196 -0
  21. pyegeria/commands/tech/list_elements_for_classification.py +1 -1
  22. pyegeria/commands/tech/list_related_elements_with_prop_value.py +207 -0
  23. pyegeria/commands/tech/x_list_related_elements.py +1 -1
  24. pyegeria/valid_metadata_omvs.py +1 -1
  25. {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.1.dist-info}/METADATA +1 -1
  26. {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.1.dist-info}/RECORD +29 -14
  27. {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.1.dist-info}/entry_points.txt +7 -2
  28. {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.1.dist-info}/LICENSE +0 -0
  29. {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,186 @@
1
+ """This finds all elements of a classification that match the property value for the properties specified"""
2
+ from rich.markdown import Markdown
3
+ from rich.prompt import Prompt
4
+ import os
5
+ import argparse
6
+ import time
7
+ import sys
8
+ from rich import box
9
+ from rich.console import Console
10
+ from rich.table import Table
11
+
12
+ from pyegeria import (
13
+ InvalidParameterException,
14
+ PropertyServerException,
15
+ UserNotAuthorizedException,
16
+ print_exception_response,
17
+ EgeriaTech,
18
+ )
19
+
20
+
21
+ console = Console()
22
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
23
+ EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
24
+ EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
25
+ EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
26
+ EGERIA_VIEW_SERVER_URL = os.environ.get(
27
+ "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
28
+ )
29
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
30
+ EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
31
+ EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
32
+ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
33
+ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
34
+ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
35
+ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
36
+
37
+
38
+ def find_elements_by_classification_by_prop_value(
39
+ om_type: str,
40
+ classification: str,
41
+ property_value: str,
42
+ property_names: [str],
43
+ server: str,
44
+ url: str,
45
+ username: str,
46
+ password: str,
47
+ jupyter: bool = EGERIA_JUPYTER,
48
+ width: int = EGERIA_WIDTH,
49
+ ):
50
+ c_client = EgeriaTech(server, url, user_id=username, user_pwd=password)
51
+ token = c_client.create_egeria_bearer_token()
52
+
53
+ om_typedef = c_client.get_typedef_by_name(om_type)
54
+ if type(om_typedef) is str:
55
+ print(
56
+ f"The type name '{om_type}' is not known to the Egeria platform at {url} - {server}"
57
+ )
58
+ sys.exit(0)
59
+
60
+ class_def = c_client.get_typedef_by_name(classification)
61
+ if type(class_def) is str:
62
+ print(
63
+ f"The Classification {classification} is not known to the Egeria platform at {url} - {server}"
64
+ )
65
+ sys.exit(0)
66
+
67
+ elements = c_client.find_elements_by_classification_with_property_value(classification, property_value,
68
+ property_names, om_type)
69
+ c = classification
70
+
71
+ def generate_table() -> Table:
72
+ """Make a new table."""
73
+ table = Table(
74
+ caption=f"Find Metadata Elements for: {url} - {server} @ {time.asctime()}",
75
+ style="bold bright_white on black",
76
+ row_styles=["bold bright_white on black"],
77
+ header_style="white on dark_blue",
78
+ title_style="bold bright_white on black",
79
+ caption_style="white on black",
80
+ show_lines=True,
81
+ box=box.ROUNDED,
82
+ title=f"Elements for Classification: {c}, Open Metadata Type: {om_type}, property value: {property_value}, "
83
+ f"properties: {property_names}",
84
+ expand=True,
85
+ width=width,
86
+ )
87
+
88
+ table.add_column("Qualified Name")
89
+ table.add_column("Type")
90
+ table.add_column("Created")
91
+ table.add_column("Home Store")
92
+ table.add_column("GUID", width=38, no_wrap=True)
93
+ table.add_column("Properties")
94
+ table.add_column("Classifications")
95
+
96
+ if type(elements) is list:
97
+ for element in elements:
98
+ header = element["elementHeader"]
99
+ el_q_name = element["properties"].get("qualifiedName", "---")
100
+ el_type = header["type"]["typeName"]
101
+ el_home = header["origin"]["homeMetadataCollectionName"]
102
+ el_create_time = header["versions"]["createTime"][:-10]
103
+ el_guid = header["guid"]
104
+ el_class = header.get("classifications", "---")
105
+
106
+ el_props_md = ""
107
+ for prop in element["properties"].keys():
108
+ el_props_md += f"* **{prop}**: {element['properties'][prop]}\n"
109
+ el_props_out = Markdown(el_props_md)
110
+
111
+ c_md = ""
112
+ if type(el_class) is list:
113
+ for classification in el_class:
114
+ classification_name = classification.get(
115
+ "classificationName", "---"
116
+ )
117
+ c_md = f"* **{classification_name}**\n"
118
+ class_props = classification.get(
119
+ "classificationProperties", "---"
120
+ )
121
+ if type(class_props) is dict:
122
+ for prop in class_props.keys():
123
+ c_md += f" * **{prop}**: {class_props[prop]}\n"
124
+ c_md_out = Markdown(c_md)
125
+
126
+ table.add_row(
127
+ el_q_name,
128
+ el_type,
129
+ el_create_time,
130
+ el_home,
131
+ el_guid,
132
+ el_props_out,
133
+ c_md_out,
134
+ )
135
+
136
+ return table
137
+ else:
138
+ print("No instances found")
139
+ sys.exit(1)
140
+
141
+ try:
142
+ console = Console(width=width, force_terminal=not jupyter)
143
+
144
+ with console.pager(styles=True):
145
+ console.print(generate_table())
146
+
147
+ except (
148
+ InvalidParameterException,
149
+ PropertyServerException,
150
+ UserNotAuthorizedException,
151
+ ) as e:
152
+ print_exception_response(e)
153
+ print("\n\nPerhaps the type name isn't known")
154
+ finally:
155
+ c_client.close_session()
156
+
157
+
158
+ def main():
159
+ parser = argparse.ArgumentParser()
160
+ parser.add_argument("--server", help="Name of the server to display status for")
161
+ parser.add_argument("--url", help="URL Platform to connect to")
162
+ parser.add_argument("--userid", help="User Id")
163
+ parser.add_argument("--password", help="Password")
164
+
165
+ args = parser.parse_args()
166
+
167
+ server = args.server if args.server is not None else EGERIA_VIEW_SERVER
168
+ url = args.url if args.url is not None else EGERIA_PLATFORM_URL
169
+ userid = args.userid if args.userid is not None else EGERIA_USER
170
+ password = args.password if args.password is not None else EGERIA_USER_PASSWORD
171
+
172
+ try:
173
+ classification = Prompt.ask("Enter the Classification to filter on", default="Anchors")
174
+ om_type = Prompt.ask(
175
+ "Enter the Open Metadata Type to find elements of", default="Referenceable"
176
+ )
177
+ property_value = Prompt.ask("Enter the property value to search for")
178
+ property_names = Prompt.ask("Enter a comma seperated list of properties to search")
179
+ find_elements_by_classification_by_prop_value(om_type, classification,property_value,
180
+ [property_names], server, url, userid, password)
181
+ except KeyboardInterrupt:
182
+ pass
183
+
184
+
185
+ if __name__ == "__main__":
186
+ main()
@@ -0,0 +1,175 @@
1
+ """This creates a templates guid file from the core metadata archive"""
2
+ from rich.markdown import Markdown
3
+ from rich.prompt import Prompt
4
+ import os
5
+ import argparse
6
+ import time
7
+ import sys
8
+ from rich import box
9
+ from rich.console import Console
10
+ from rich.table import Table
11
+
12
+ from pyegeria import (
13
+ InvalidParameterException,
14
+ PropertyServerException,
15
+ UserNotAuthorizedException,
16
+ print_exception_response,
17
+ EgeriaTech,
18
+ )
19
+
20
+
21
+ console = Console()
22
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
23
+ EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
24
+ EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
25
+ EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
26
+ EGERIA_VIEW_SERVER_URL = os.environ.get(
27
+ "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
28
+ )
29
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
30
+ EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
31
+ EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
32
+ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
33
+ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
34
+ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
35
+ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
36
+
37
+
38
+ def find_elements_by_prop_value(
39
+ om_type: str,
40
+ property_value: str,
41
+ property_names: [str],
42
+ server: str,
43
+ url: str,
44
+ username: str,
45
+ password: str,
46
+ jupyter: bool = EGERIA_JUPYTER,
47
+ width: int = EGERIA_WIDTH,
48
+ ):
49
+ c_client = EgeriaTech(server, url, user_id=username, user_pwd=password)
50
+ token = c_client.create_egeria_bearer_token()
51
+
52
+ om_typedef = c_client.get_typedef_by_name(om_type)
53
+ if type(om_typedef) is str:
54
+ print(
55
+ f"The type name '{om_type}' is not known to the Egeria platform at {url} - {server}"
56
+ )
57
+ sys.exit(1)
58
+ elements = c_client.find_elements_by_property_value(property_value, property_names,
59
+ om_type
60
+ )
61
+
62
+ def generate_table() -> Table:
63
+ """Make a new table."""
64
+ table = Table(
65
+ caption=f"Find Metadata Elements for: {url} - {server} @ {time.asctime()}",
66
+ style="bold bright_white on black",
67
+ row_styles=["bold bright_white on black"],
68
+ header_style="white on dark_blue",
69
+ title_style="bold bright_white on black",
70
+ caption_style="white on black",
71
+ show_lines=True,
72
+ box=box.ROUNDED,
73
+ title=f"Elements for Open Metadata Type: {om_type}, property value: {property_value}, "
74
+ f"properties: {property_names}",
75
+ expand=True,
76
+ width=width,
77
+ )
78
+
79
+ table.add_column("Qualified Name")
80
+ table.add_column("Type")
81
+ table.add_column("Created")
82
+ table.add_column("Home Store")
83
+ table.add_column("GUID", width=38, no_wrap=True)
84
+ table.add_column("Properties")
85
+ table.add_column("Classifications")
86
+
87
+ if type(elements) is list:
88
+ for element in elements:
89
+ header = element["elementHeader"]
90
+ el_q_name = element["properties"].get("qualifiedName", "---")
91
+ el_type = header["type"]["typeName"]
92
+ el_home = header["origin"]["homeMetadataCollectionName"]
93
+ el_create_time = header["versions"]["createTime"][:-10]
94
+ el_guid = header["guid"]
95
+ el_class = header.get("classifications", "---")
96
+
97
+ el_props_md = ""
98
+ for prop in element["properties"].keys():
99
+ el_props_md += f"* **{prop}**: {element['properties'][prop]}\n"
100
+ el_props_out = Markdown(el_props_md)
101
+
102
+ c_md = ""
103
+ if type(el_class) is list:
104
+ for classification in el_class:
105
+ classification_name = classification.get(
106
+ "classificationName", "---"
107
+ )
108
+ c_md = f"* **{classification_name}**\n"
109
+ class_props = classification.get(
110
+ "classificationProperties", "---"
111
+ )
112
+ if type(class_props) is dict:
113
+ for prop in class_props.keys():
114
+ c_md += f" * **{prop}**: {class_props[prop]}\n"
115
+ c_md_out = Markdown(c_md)
116
+
117
+ table.add_row(
118
+ el_q_name,
119
+ el_type,
120
+ el_create_time,
121
+ el_home,
122
+ el_guid,
123
+ el_props_out,
124
+ c_md_out,
125
+ )
126
+
127
+ return table
128
+ else:
129
+ print("No instances found")
130
+ sys.exit(1)
131
+
132
+ try:
133
+ console = Console(width=width, force_terminal=not jupyter)
134
+
135
+ with console.pager(styles=True):
136
+ console.print(generate_table())
137
+
138
+ except (
139
+ InvalidParameterException,
140
+ PropertyServerException,
141
+ UserNotAuthorizedException,
142
+ ) as e:
143
+ print_exception_response(e)
144
+ print("\n\nPerhaps the type name isn't known")
145
+ finally:
146
+ c_client.close_session()
147
+
148
+
149
+ def main():
150
+ parser = argparse.ArgumentParser()
151
+ parser.add_argument("--server", help="Name of the server to display status for")
152
+ parser.add_argument("--url", help="URL Platform to connect to")
153
+ parser.add_argument("--userid", help="User Id")
154
+ parser.add_argument("--password", help="Password")
155
+
156
+ args = parser.parse_args()
157
+
158
+ server = args.server if args.server is not None else EGERIA_VIEW_SERVER
159
+ url = args.url if args.url is not None else EGERIA_PLATFORM_URL
160
+ userid = args.userid if args.userid is not None else EGERIA_USER
161
+ password = args.password if args.password is not None else EGERIA_USER_PASSWORD
162
+
163
+ try:
164
+ om_type = Prompt.ask(
165
+ "Enter the Open Metadata Type to find elements of", default="Referenceable"
166
+ )
167
+ property_value = Prompt.ask("Enter the property value to search for")
168
+ property_names = Prompt.ask("Enter a comma seperated list of properties to search")
169
+ find_elements_by_prop_value(om_type, property_value, [property_names], server, url, userid, password)
170
+ except KeyboardInterrupt:
171
+ pass
172
+
173
+
174
+ if __name__ == "__main__":
175
+ main()
@@ -0,0 +1,196 @@
1
+ """List elements """
2
+ from rich.markdown import Markdown
3
+ from rich.prompt import Prompt
4
+ import os
5
+ import argparse
6
+ import time
7
+ import sys
8
+ from rich import box
9
+ from rich.console import Console
10
+ from rich.table import Table
11
+
12
+ from pyegeria import (
13
+ InvalidParameterException,
14
+ PropertyServerException,
15
+ UserNotAuthorizedException,
16
+ print_exception_response,
17
+ EgeriaTech,
18
+ )
19
+
20
+
21
+ console = Console()
22
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
23
+ EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
24
+ EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
25
+ EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
26
+ EGERIA_VIEW_SERVER_URL = os.environ.get(
27
+ "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
28
+ )
29
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
30
+ EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
31
+ EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
32
+ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
33
+ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
34
+ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
35
+ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
36
+
37
+
38
+ def find_elements_by_prop_value_x(
39
+ om_type: str,
40
+ property_value: str,
41
+ property_names: [str],
42
+ server: str,
43
+ url: str,
44
+ username: str,
45
+ password: str,
46
+ jupyter: bool = EGERIA_JUPYTER,
47
+ width: int = EGERIA_WIDTH,
48
+ ):
49
+ c_client = EgeriaTech(server, url, user_id=username, user_pwd=password)
50
+ token = c_client.create_egeria_bearer_token()
51
+
52
+ om_typedef = c_client.get_typedef_by_name(om_type)
53
+ if type(om_typedef) is str:
54
+ print(
55
+ f"The type name '{om_type}' is not known to the Egeria platform at {url} - {server}"
56
+ )
57
+ sys.exit(1)
58
+ elements = c_client.find_elements_by_property_value(property_value, property_names,
59
+ om_type
60
+ )
61
+
62
+ def generate_table() -> Table:
63
+ """Make a new table."""
64
+ table = Table(
65
+ caption=f"Metadata Elements for: {url} - {server} @ {time.asctime()}",
66
+ style="bold bright_white on black",
67
+ row_styles=["bold bright_white on black"],
68
+ header_style="white on dark_blue",
69
+ title_style="bold bright_white on black",
70
+ caption_style="white on black",
71
+ show_lines=True,
72
+ box=box.ROUNDED,
73
+ title=f"Find Elements for Open Metadata Type: {om_type}, property value: {property_value}, "
74
+ f"properties: {property_names} - Extended",
75
+ expand=True,
76
+ width=width,
77
+ )
78
+
79
+ table.add_column("Qualified Name")
80
+ table.add_column("Type")
81
+ table.add_column("Created")
82
+ table.add_column("Home Store")
83
+ table.add_column("GUID", width=38, no_wrap=True)
84
+ table.add_column("Properties")
85
+ table.add_column("Feedback", min_width=30)
86
+ table.add_column("Public Comments")
87
+
88
+ if type(elements) is list:
89
+ for element in elements:
90
+ header = element["elementHeader"]
91
+ el_q_name = element["properties"].get("qualifiedName", "---")
92
+ el_type = header["type"]["typeName"]
93
+ el_home = header["origin"]["homeMetadataCollectionName"]
94
+ el_create_time = header["versions"]["createTime"][:-18]
95
+ el_guid = header["guid"]
96
+
97
+ el_props_md = ""
98
+ for prop in element["properties"].keys():
99
+ el_props_md += f"* **{prop}**: {element['properties'][prop]}\n"
100
+
101
+ el_props_out = Markdown(el_props_md)
102
+
103
+ tags = c_client.get_attached_tags(el_guid)
104
+ tags_md = "Tags:\n"
105
+ if type(tags) is list:
106
+ for tag in tags:
107
+ tags_md += (
108
+ f"* tag: {tag.get('name','')}\n"
109
+ f"\t description: {tag.get('description','---')}\n"
110
+ f"\t assigned by: {tag.get('user','---')}\n"
111
+ )
112
+
113
+ else:
114
+ tags_md = ""
115
+
116
+ likes = c_client.get_attached_likes(el_guid)
117
+ likes_md = "Likes:\b"
118
+ if type(likes) is list:
119
+ for like in likes:
120
+ likes_md += (
121
+ f"* tag: {like['name']}\n"
122
+ f"* description: {like['description']}\n"
123
+ f"* assigned by: {like['user']}\n"
124
+ f"\n"
125
+ )
126
+
127
+ else:
128
+ likes_md = ""
129
+
130
+ if len(tags_md) > 0 and len(likes_md) > 0:
131
+ feedback_out = f"{tags_md}\n --- \n{likes_md}"
132
+ else:
133
+ feedback_out = ""
134
+
135
+ comments_out = " "
136
+
137
+ table.add_row(
138
+ el_q_name,
139
+ el_type,
140
+ el_create_time,
141
+ el_home,
142
+ el_guid,
143
+ el_props_out,
144
+ feedback_out,
145
+ comments_out,
146
+ )
147
+
148
+ return table
149
+ else:
150
+ print("No instances found")
151
+ sys.exit(1)
152
+
153
+ try:
154
+ console = Console(width=width, force_terminal=not jupyter)
155
+
156
+ with console.pager(styles=True):
157
+ console.print(generate_table())
158
+
159
+ except (
160
+ InvalidParameterException,
161
+ PropertyServerException,
162
+ UserNotAuthorizedException,
163
+ ) as e:
164
+ print_exception_response(e)
165
+ print("\n\nPerhaps the type name isn't known")
166
+ finally:
167
+ c_client.close_session()
168
+
169
+
170
+ def main():
171
+ parser = argparse.ArgumentParser()
172
+ parser.add_argument("--server", help="Name of the server to display status for")
173
+ parser.add_argument("--url", help="URL Platform to connect to")
174
+ parser.add_argument("--userid", help="User Id")
175
+ parser.add_argument("--password", help="Password")
176
+
177
+ args = parser.parse_args()
178
+
179
+ server = args.server if args.server is not None else EGERIA_VIEW_SERVER
180
+ url = args.url if args.url is not None else EGERIA_PLATFORM_URL
181
+ userid = args.userid if args.userid is not None else EGERIA_USER
182
+ password = args.password if args.password is not None else EGERIA_USER_PASSWORD
183
+
184
+ try:
185
+ om_type = Prompt.ask(
186
+ "Enter the Open Metadata Type to find elements of", default="Referenceable"
187
+ )
188
+ property_value = Prompt.ask("Enter the property value to search for")
189
+ property_names = Prompt.ask("Enter a comma seperated list of properties to search")
190
+ find_elements_by_prop_value_x(om_type, property_value,[property_names], server, url, userid, password)
191
+ except KeyboardInterrupt:
192
+ pass
193
+
194
+
195
+ if __name__ == "__main__":
196
+ main()
@@ -159,7 +159,7 @@ def main():
159
159
 
160
160
  try:
161
161
  om_type = Prompt.ask(
162
- "Enter the Open Metadata Type to find elements of:", default="Project"
162
+ "Enter the Open Metadata Type to find elements of:", default="Referenceable"
163
163
  )
164
164
  classification = Prompt.ask("Enter the classification to filter by: ")
165
165
  list_classified_elements(om_type, classification, server, url, userid, password)