pyegeria 0.8.4.39__tar.gz → 0.8.4.40__tar.gz
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-0.8.4.39 → pyegeria-0.8.4.40}/PKG-INFO +1 -1
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/list_elements.py +34 -4
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/list_elements_x.py +12 -8
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/feedback_manager_omvs.py +1 -1
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/runtime_manager_omvs.py +8 -6
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyproject.toml +2 -2
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/LICENSE +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/README.md +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/README.md +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/__init__.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/get_asset_graph.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/get_collection.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/get_project_dependencies.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/get_project_structure.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/get_tech_type_elements.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/get_tech_type_template.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/list_archives.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/list_assets.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/list_cert_types.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/list_glossary.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/list_projects.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/list_relationships.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/list_tech_types.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/list_todos.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cat/list_user_ids.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cli/__init__.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cli/egeria.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cli/egeria_cat.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cli/egeria_my.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cli/egeria_ops.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cli/egeria_tech.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/cli/ops_config.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/my/README.md +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/my/__init__.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/my/list_my_profile.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/my/list_my_roles.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/my/monitor_my_todos.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/my/monitor_open_todos.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/my/todo_actions.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/README.md +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/__init__.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/engine_actions.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/gov_server_actions.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/list_catalog_targets.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/load_archive.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/monitor_asset_events.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/monitor_engine_activity.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/monitor_engine_activity_c.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/monitor_gov_eng_status.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/monitor_integ_daemon_status.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/monitor_platform_status.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/monitor_server_status.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/orig_monitor_server_list.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/orig_monitor_server_status.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/refresh_integration_daemon.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/ops/restart_integration_daemon.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/README.md +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/__init__.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/get_element_info.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/get_guid_info.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/get_tech_details.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/list_asset_types.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/list_registered_services.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/list_related_specification.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/list_relationship_types.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/list_tech_templates.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/list_valid_metadata_values.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/commands/tech/x_list_related_elements.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/__init__.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/_client.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/_deprecated_gov_engine.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/_exceptions.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/_globals.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/_validators.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/asset_catalog_omvs.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/automated_curation_omvs.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/classification_manager_omvs.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/collection_manager_omvs.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/core_omag_server_config.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/create_tech_guid_lists.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/egeria_cat_client.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/egeria_client.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/egeria_config_client.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/egeria_my_client.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/egeria_tech_client.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/full_omag_server_config.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/glossary_browser_omvs.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/glossary_manager_omvs.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/mermaid_utilities.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/my_profile_omvs.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/platform_services.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/project_manager_omvs.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/registered_info.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/server_operations.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/utils.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/valid_metadata_omvs.py +0 -0
- {pyegeria-0.8.4.39 → pyegeria-0.8.4.40}/pyegeria/x_action_author_omvs.py +0 -0
@@ -14,7 +14,7 @@ from pyegeria import (
|
|
14
14
|
PropertyServerException,
|
15
15
|
UserNotAuthorizedException,
|
16
16
|
print_exception_response,
|
17
|
-
|
17
|
+
EgeriaTech,
|
18
18
|
)
|
19
19
|
|
20
20
|
|
@@ -44,8 +44,15 @@ def list_elements(
|
|
44
44
|
jupyter: bool = EGERIA_JUPYTER,
|
45
45
|
width: int = EGERIA_WIDTH,
|
46
46
|
):
|
47
|
-
c_client =
|
47
|
+
c_client = EgeriaTech(server, url, user_id=username, user_pwd=password)
|
48
48
|
token = c_client.create_egeria_bearer_token()
|
49
|
+
|
50
|
+
om_typedef = c_client.get_typedef_by_name(om_type)
|
51
|
+
if type(om_typedef) is str:
|
52
|
+
print(
|
53
|
+
f"The type name '{om_type}' is not known to the Egeria platform at {url} - {server}"
|
54
|
+
)
|
55
|
+
sys.exit(1)
|
49
56
|
elements = c_client.get_elements(om_type)
|
50
57
|
|
51
58
|
def generate_table() -> Table:
|
@@ -70,6 +77,7 @@ def list_elements(
|
|
70
77
|
table.add_column("Home Store")
|
71
78
|
table.add_column("GUID", width=38, no_wrap=True)
|
72
79
|
table.add_column("Properties")
|
80
|
+
table.add_column("Classifications")
|
73
81
|
|
74
82
|
if type(elements) is list:
|
75
83
|
for element in elements:
|
@@ -79,14 +87,36 @@ def list_elements(
|
|
79
87
|
el_home = header["origin"]["homeMetadataCollectionName"]
|
80
88
|
el_create_time = header["versions"]["createTime"][:-10]
|
81
89
|
el_guid = header["guid"]
|
90
|
+
el_class = header.get("classifications", "---")
|
82
91
|
|
83
92
|
el_props_md = ""
|
84
93
|
for prop in element["properties"].keys():
|
85
94
|
el_props_md += f"* **{prop}**: {element['properties'][prop]}\n"
|
86
|
-
|
87
95
|
el_props_out = Markdown(el_props_md)
|
96
|
+
|
97
|
+
c_md = ""
|
98
|
+
if type(el_class) is list:
|
99
|
+
for classification in el_class:
|
100
|
+
classification_name = classification.get(
|
101
|
+
"classificationName", "---"
|
102
|
+
)
|
103
|
+
c_md = f"* **{classification_name}**\n"
|
104
|
+
class_props = classification.get(
|
105
|
+
"classificationProperties", "---"
|
106
|
+
)
|
107
|
+
if type(class_props) is dict:
|
108
|
+
for prop in class_props.keys():
|
109
|
+
c_md += f"* **{prop}**: {class_props[prop]}\n"
|
110
|
+
c_md_out = Markdown(c_md)
|
111
|
+
|
88
112
|
table.add_row(
|
89
|
-
el_q_name,
|
113
|
+
el_q_name,
|
114
|
+
el_type,
|
115
|
+
el_create_time,
|
116
|
+
el_home,
|
117
|
+
el_guid,
|
118
|
+
el_props_out,
|
119
|
+
c_md_out,
|
90
120
|
)
|
91
121
|
|
92
122
|
return table
|
@@ -14,8 +14,9 @@ from pyegeria import (
|
|
14
14
|
PropertyServerException,
|
15
15
|
UserNotAuthorizedException,
|
16
16
|
print_exception_response,
|
17
|
-
ClassificationManager,
|
18
|
-
FeedbackManager,
|
17
|
+
# ClassificationManager,
|
18
|
+
# FeedbackManager,
|
19
|
+
EgeriaTech,
|
19
20
|
)
|
20
21
|
|
21
22
|
|
@@ -45,12 +46,15 @@ def list_elements_x(
|
|
45
46
|
jupyter: bool = EGERIA_JUPYTER,
|
46
47
|
width: int = EGERIA_WIDTH,
|
47
48
|
):
|
48
|
-
c_client =
|
49
|
+
c_client = EgeriaTech(server, url, user_id=username, user_pwd=password)
|
49
50
|
token = c_client.create_egeria_bearer_token()
|
50
|
-
f_client = FeedbackManager(
|
51
|
-
server, url, user_id=username, user_pwd=password, token=token
|
52
|
-
)
|
53
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)
|
54
58
|
elements = c_client.get_elements(om_type)
|
55
59
|
|
56
60
|
def generate_table() -> Table:
|
@@ -93,7 +97,7 @@ def list_elements_x(
|
|
93
97
|
|
94
98
|
el_props_out = Markdown(el_props_md)
|
95
99
|
|
96
|
-
tags =
|
100
|
+
tags = c_client.get_attached_tags(el_guid)
|
97
101
|
tags_md = "Tags:\n"
|
98
102
|
if type(tags) is list:
|
99
103
|
for tag in tags:
|
@@ -106,7 +110,7 @@ def list_elements_x(
|
|
106
110
|
else:
|
107
111
|
tags_md = "---"
|
108
112
|
|
109
|
-
likes =
|
113
|
+
likes = c_client.get_attached_likes(el_guid)
|
110
114
|
likes_md = "Likes:\b"
|
111
115
|
if type(likes) is list:
|
112
116
|
for like in likes:
|
@@ -83,7 +83,7 @@ def element_response(response: dict, element_type: str, detailed_response: bool)
|
|
83
83
|
|
84
84
|
|
85
85
|
def elements_response(response: dict, element_type: str, detailed_response: bool):
|
86
|
-
print(response)
|
86
|
+
# print(response)
|
87
87
|
if detailed_response:
|
88
88
|
return response
|
89
89
|
elif not element_type in response:
|
@@ -1096,7 +1096,7 @@ class RuntimeManager(Client):
|
|
1096
1096
|
archive_file: str,
|
1097
1097
|
server_guid: str = None,
|
1098
1098
|
server_name: str = None,
|
1099
|
-
time_out: int =
|
1099
|
+
time_out: int = 120,
|
1100
1100
|
) -> None:
|
1101
1101
|
"""Add a new open metadata archive to running OMAG Server's repository.
|
1102
1102
|
An open metadata archive contains metadata types and instances. This operation loads an open metadata archive
|
@@ -1141,7 +1141,7 @@ class RuntimeManager(Client):
|
|
1141
1141
|
archive_file: str,
|
1142
1142
|
server_guid: str = None,
|
1143
1143
|
server_name: str = None,
|
1144
|
-
time_out: int =
|
1144
|
+
time_out: int = 120,
|
1145
1145
|
) -> None:
|
1146
1146
|
"""Add a new open metadata archive to running OMAG Server's repository.
|
1147
1147
|
An open metadata archive contains metadata types and instances. This operation loads an open metadata archive
|
@@ -1247,7 +1247,7 @@ class RuntimeManager(Client):
|
|
1247
1247
|
return
|
1248
1248
|
|
1249
1249
|
async def _async_activate_server_with_stored_config(
|
1250
|
-
self, server_guid: str = None, server_name: str = None
|
1250
|
+
self, server_guid: str = None, server_name: str = None, timeout: int = 120
|
1251
1251
|
) -> None:
|
1252
1252
|
"""Activate the named OMAG server using the appropriate configuration document found in the
|
1253
1253
|
configuration store. Async version.
|
@@ -1275,11 +1275,11 @@ class RuntimeManager(Client):
|
|
1275
1275
|
server_guid = self.__get_guid__(server_guid, server_name)
|
1276
1276
|
url = f"{self.runtime_command_root}/omag-servers/{server_guid}/instance"
|
1277
1277
|
|
1278
|
-
await self._async_make_request("POST", url)
|
1278
|
+
await self._async_make_request("POST", url, time_out=timeout)
|
1279
1279
|
return
|
1280
1280
|
|
1281
1281
|
def activate_server_with_stored_config(
|
1282
|
-
self, server_guid: str = None, server_name: str = None
|
1282
|
+
self, server_guid: str = None, server_name: str = None, timeout: int = 120
|
1283
1283
|
) -> None:
|
1284
1284
|
"""Activate the named OMAG server using the appropriate configuration document found in the
|
1285
1285
|
configuration store.
|
@@ -1306,7 +1306,9 @@ class RuntimeManager(Client):
|
|
1306
1306
|
"""
|
1307
1307
|
loop = asyncio.get_event_loop()
|
1308
1308
|
loop.run_until_complete(
|
1309
|
-
self._async_activate_server_with_stored_config(
|
1309
|
+
self._async_activate_server_with_stored_config(
|
1310
|
+
server_guid, server_name, timeout
|
1311
|
+
)
|
1310
1312
|
)
|
1311
1313
|
return
|
1312
1314
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "pyegeria"
|
3
|
-
version = "0.8.4.
|
3
|
+
version = "0.8.4.40"
|
4
4
|
license = 'Apache 2.0'
|
5
5
|
authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
|
6
6
|
readme = "README.md"
|
@@ -102,7 +102,7 @@ pytest = "^8.2.2"
|
|
102
102
|
|
103
103
|
hey_egeria_ops = "commands.cli.egeria_ops:cli"
|
104
104
|
hey_egeria_cat = "commands.cli.egeria_cat:cli"
|
105
|
-
hey_egeria_tech = "commands.cli.
|
105
|
+
hey_egeria_tech = "commands.cli.egeria_tech:cli"
|
106
106
|
hey_egeria_my = "commands.cli.egeria_my:cli"
|
107
107
|
hey_egeria = "commands.cli.egeria:cli"
|
108
108
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|