pyegeria 1.5.1.1.42__py3-none-any.whl → 1.5.1.1.43__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/classification_manager_omvs.py +9 -0
- pyegeria/commands/doc/command-overview.md +92 -0
- pyegeria/commands/my/list_my_profile.py +5 -1
- pyegeria/commands/my/list_my_roles.py +1 -1
- pyegeria/commands/my/monitor_my_todos.py +2 -2
- pyegeria/commands/my/monitor_open_todos.py +22 -7
- pyegeria/commands/my/todo_actions.py +3 -3
- {pyegeria-1.5.1.1.42.dist-info → pyegeria-1.5.1.1.43.dist-info}/METADATA +1 -1
- {pyegeria-1.5.1.1.42.dist-info → pyegeria-1.5.1.1.43.dist-info}/RECORD +12 -11
- {pyegeria-1.5.1.1.42.dist-info → pyegeria-1.5.1.1.43.dist-info}/entry_points.txt +1 -0
- {pyegeria-1.5.1.1.42.dist-info → pyegeria-1.5.1.1.43.dist-info}/LICENSE +0 -0
- {pyegeria-1.5.1.1.42.dist-info → pyegeria-1.5.1.1.43.dist-info}/WHEEL +0 -0
@@ -660,6 +660,15 @@ class ClassificationManager(Client):
|
|
660
660
|
)
|
661
661
|
return response
|
662
662
|
|
663
|
+
def get_actor_for_guid(self, guid: str) -> str:
|
664
|
+
"""Get the name of the actor from the supplied guid."""
|
665
|
+
details = self.get_element_by_guid(guid)
|
666
|
+
if type(details) is str:
|
667
|
+
return details
|
668
|
+
if details["elementHeader"]["type"]["typeName"] != "UserIdentity":
|
669
|
+
return "GUID does not represent a UserIdentity"
|
670
|
+
return details["properties"]["userId"]
|
671
|
+
|
663
672
|
async def _async_get_element_by_unique_name(
|
664
673
|
self,
|
665
674
|
name: str,
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# Overview
|
2
|
+
|
3
|
+
# Command Line Interfaces
|
4
|
+
|
5
|
+
## hey_egeria
|
6
|
+
|
7
|
+
## hey_egeria_cat
|
8
|
+
|
9
|
+
## hey_egeria_my
|
10
|
+
|
11
|
+
## hey_egeria_ops
|
12
|
+
|
13
|
+
## hey_egeria_tech
|
14
|
+
|
15
|
+
# Command Reference
|
16
|
+
|
17
|
+
| Command | Purpose | Cat | My | Ops | Tech | python |
|
18
|
+
|------------------------------------|---------|-----|----|-----|------|--------|
|
19
|
+
| change_todo_status | | | ✓ | | | |
|
20
|
+
| create_glossary | | ✓ | | | | |
|
21
|
+
| create_term | | ✓ | | | | |
|
22
|
+
| create_todo | | | ✓ | | | |
|
23
|
+
| export_terms_to_file | | ✓ | | | | |
|
24
|
+
| get_asset_graph | | ✓ | | | | |
|
25
|
+
| get_collection | | ✓ | | | | |
|
26
|
+
| get_element_info | | | | | ✓ | |
|
27
|
+
| get_guid_info | | | | | ✓ | |
|
28
|
+
| get_project_dependencies | | ✓ | | | | |
|
29
|
+
| get_project_structure | | ✓ | | | | |
|
30
|
+
| get_tech_details | | | | | ✓ | |
|
31
|
+
| get_tech_type_elements | | ✓ | | | | |
|
32
|
+
| get_tech_type_template | | ✓ | | | | |
|
33
|
+
| hey_egeria | | | | | | |
|
34
|
+
| hey_egeria_cat | | | | | | |
|
35
|
+
| hey_egeria_my | | | | | | |
|
36
|
+
| hey_egeria_ops | | | | | | |
|
37
|
+
| hey_egeria_tech | | | | | | |
|
38
|
+
| list_archives | | ✓ | | | | |
|
39
|
+
| list_asset_types | | | | | ✓ | |
|
40
|
+
| list_assets | | ✓ | | | | |
|
41
|
+
| list_catalog_targets | | | | ✓ | | ✓ |
|
42
|
+
| list_cert_types | | ✓ | | | | |
|
43
|
+
| list_deployed_catalogs | | ✓ | | | | ✓ |
|
44
|
+
| list_deployed_databases | | ✓ | | | | ✓ |
|
45
|
+
| list_deployed_schemas | | ✓ | | | | ✓ |
|
46
|
+
| list_deployed_servers | | ✓ | | | | |
|
47
|
+
| list_element_graph | | | | | ✓ | |
|
48
|
+
| list_elements | | | | | ✓ | |
|
49
|
+
| list_elements_for_classification | | | | | ✓ | |
|
50
|
+
| list_engine_activity | | | | ✓ | | |
|
51
|
+
| list_engine_activity_compressed | | | | ✓ | | ✓ |
|
52
|
+
| list_glossaries | | ✓ | | | | ✓ |
|
53
|
+
| list_gov_action_processes | | | | | ✓ | |
|
54
|
+
| list_gov_eng_status | | | | ✓ | | ✓ |
|
55
|
+
| list_integ_daemon_status | | | | ✓ | | ✓ |
|
56
|
+
| list_my_profile | | | ✓ | | | |
|
57
|
+
| list_my_roles | | | ✓ | | | |
|
58
|
+
| list_projects | | ✓ | | | | |
|
59
|
+
| list_registered_services | | | | | ✓ | |
|
60
|
+
| list_related_elements | | | | | ✓ | |
|
61
|
+
| list_related_specification | | | | | ✓ | |
|
62
|
+
| list_relationship_types | | | | | ✓ | |
|
63
|
+
| list_relationships | | ✓ | | | | |
|
64
|
+
| list_tech_templates | | | | | ✓ | |
|
65
|
+
| list_tech_types | | ✓ | | | | |
|
66
|
+
| list_terms | | ✓ | | | | ✓ |
|
67
|
+
| list_todos | | ✓ | | | | |
|
68
|
+
| list_user_ids | | ✓ | | | | |
|
69
|
+
| list_valid_metadata_values | | | | | ✓ | |
|
70
|
+
| load_archive | | | | ✓ | | |
|
71
|
+
| load_archive_tui | | | | ✓ | | |
|
72
|
+
| load_terms_from_file | | ✓ | | | | |
|
73
|
+
| mark_todo_complete | | | ✓ | | | |
|
74
|
+
| monitor_asset_events | | | | ✓ | | |
|
75
|
+
| monitor_coco_status | | | | ✓ | | |
|
76
|
+
| monitor_engine_activity | | | | ✓ | | |
|
77
|
+
| monitor_engine_activity_compressed | | | | ✓ | | |
|
78
|
+
| monitor_gov_eng_status | | | | ✓ | | |
|
79
|
+
| monitor_integ_daemon_status | | | | ✓ | | |
|
80
|
+
| monitor_my_todos | | | ✓ | | | |
|
81
|
+
| monitor_open_todos | | | ✓ | | | |
|
82
|
+
| monitor_platform_status | | | | ✓ | | |
|
83
|
+
| monitor_server_list | | | | ✓ | | |
|
84
|
+
| monitor_server_startup | | | | ✓ | | |
|
85
|
+
| monitor_server_status | | | | ✓ | | |
|
86
|
+
| reassign_todo | | | ✓ | | | |
|
87
|
+
| refresh_gov_eng_config | | | | ✓ | | |
|
88
|
+
| refresh_integration_daemon | | | | ✓ | | |
|
89
|
+
| restart_integration_daemon | | | | ✓ | | |
|
90
|
+
| start_daemon | | | | ✓ | | |
|
91
|
+
| stop_daemon | | | | ✓ | | |
|
92
|
+
|
@@ -68,6 +68,7 @@ def display_my_profile(
|
|
68
68
|
|
69
69
|
profile_props = my_profiles.get("profileProperties", "---")
|
70
70
|
name = profile_props["fullName"]
|
71
|
+
|
71
72
|
tree = Tree(
|
72
73
|
Panel(f"Profile of {name}", title="Personal Profile"),
|
73
74
|
expanded=True,
|
@@ -93,7 +94,10 @@ def display_my_profile(
|
|
93
94
|
|
94
95
|
id_list_md = ""
|
95
96
|
for identities in my_profiles["userIdentities"]:
|
96
|
-
id_list_md +=
|
97
|
+
id_list_md += (
|
98
|
+
f"* {identities['userIdentity']['properties']['userId']}\n"
|
99
|
+
f"* {identities['userIdentity']['elementHeader']['guid']}\n"
|
100
|
+
)
|
97
101
|
t2 = tree.add(Panel(Markdown(id_list_md), title="Identities", expand=False))
|
98
102
|
|
99
103
|
contact_methods = my_profiles["contactMethods"]
|
@@ -144,8 +144,8 @@ def display_my_todos(
|
|
144
144
|
if type(my_roles) is list:
|
145
145
|
for role in my_roles:
|
146
146
|
role_guid = role["elementHeader"]["guid"]
|
147
|
-
|
148
|
-
add_rows(table, role_guid,
|
147
|
+
role_id = role["properties"].get("roleId", "No Role Id")
|
148
|
+
add_rows(table, role_guid, role_id)
|
149
149
|
|
150
150
|
# m_client.close_session()
|
151
151
|
return table
|
@@ -14,9 +14,11 @@ import time
|
|
14
14
|
import sys
|
15
15
|
from rich import box
|
16
16
|
from rich.live import Live
|
17
|
+
from rich.markdown import Markdown
|
17
18
|
from rich.table import Table
|
18
19
|
from rich.console import Console
|
19
20
|
|
21
|
+
from pyegeria import EgeriaTech
|
20
22
|
from pyegeria._exceptions import (
|
21
23
|
InvalidParameterException,
|
22
24
|
PropertyServerException,
|
@@ -57,7 +59,7 @@ def display_todos(
|
|
57
59
|
):
|
58
60
|
console = Console(width=width, force_terminal=not jupyter)
|
59
61
|
|
60
|
-
m_client =
|
62
|
+
m_client = EgeriaTech(server, url, user_id=user)
|
61
63
|
token = m_client.create_egeria_bearer_token(user, user_pass)
|
62
64
|
|
63
65
|
def generate_table(search_string: str = "*") -> Table:
|
@@ -81,7 +83,7 @@ def display_todos(
|
|
81
83
|
table.add_column("Due")
|
82
84
|
table.add_column("Completion")
|
83
85
|
table.add_column("Status")
|
84
|
-
table.add_column("
|
86
|
+
table.add_column("Assigned Actors")
|
85
87
|
|
86
88
|
todo_items = m_client.find_to_do("*", starts_with=True)
|
87
89
|
if type(todo_items) is str:
|
@@ -95,7 +97,7 @@ def display_todos(
|
|
95
97
|
due = " "
|
96
98
|
completed = " "
|
97
99
|
status = " "
|
98
|
-
|
100
|
+
assigned = " "
|
99
101
|
else:
|
100
102
|
for item in todo_items:
|
101
103
|
props = item["properties"]
|
@@ -106,9 +108,15 @@ def display_todos(
|
|
106
108
|
due = props.get("dueTime", " ")
|
107
109
|
completed = props.get("completionTime", " ")
|
108
110
|
status = props.get("toDoStatus", "---")
|
109
|
-
|
110
|
-
|
111
|
-
|
111
|
+
assigned_actors = item["assignedActors"]
|
112
|
+
|
113
|
+
assigned = ""
|
114
|
+
if type(assigned_actors) is list:
|
115
|
+
for actor in assigned_actors:
|
116
|
+
actor_guid = actor["guid"]
|
117
|
+
assigned += f"* {m_client.get_actor_for_guid(actor_guid)}\n"
|
118
|
+
assigned_out = Markdown(assigned)
|
119
|
+
|
112
120
|
if status in ("WAITING", "OPEN"):
|
113
121
|
status = f"[yellow]{status}"
|
114
122
|
elif status in ("INPROGRESS", "COMPLETE"):
|
@@ -117,7 +125,14 @@ def display_todos(
|
|
117
125
|
status = f"[red]{status}"
|
118
126
|
|
119
127
|
table.add_row(
|
120
|
-
name,
|
128
|
+
name,
|
129
|
+
type_name,
|
130
|
+
created,
|
131
|
+
priority,
|
132
|
+
due,
|
133
|
+
completed,
|
134
|
+
status,
|
135
|
+
assigned_out,
|
121
136
|
)
|
122
137
|
|
123
138
|
return table
|
@@ -21,9 +21,9 @@ from pyegeria._exceptions import (
|
|
21
21
|
print_exception_response,
|
22
22
|
)
|
23
23
|
|
24
|
-
erins_guid = "
|
25
|
-
peter_guid = "
|
26
|
-
tanya_guid = "
|
24
|
+
erins_guid = "dcfd7e32-8074-4cdf-bdc5-9a6f28818a9d"
|
25
|
+
peter_guid = "59f0232c-f834-4365-8e06-83695d238d2d"
|
26
|
+
tanya_guid = "a987c2d2-c8b6-4882-b344-c47956d2de97"
|
27
27
|
|
28
28
|
EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
|
29
29
|
EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
|
@@ -7,7 +7,7 @@ pyegeria/_globals.py,sha256=1Uc8392wjbiVN5L__RzxC1-U97RMXj77_iUsMSgeAjQ,638
|
|
7
7
|
pyegeria/_validators.py,sha256=rnZelHJnjHaLZ8UhUTDyB59MfIUJifhALtkYoHBaos4,12736
|
8
8
|
pyegeria/asset_catalog_omvs.py,sha256=Bgw5pRO8wUdVlLTRQ9ySd34Rl_FFoeDnEoybBBVNNhU,24576
|
9
9
|
pyegeria/automated_curation_omvs.py,sha256=BwNuF7XQJAV-POvzaWwFh0TS5yRnHZZPhlayvtIMlwY,130243
|
10
|
-
pyegeria/classification_manager_omvs.py,sha256=
|
10
|
+
pyegeria/classification_manager_omvs.py,sha256=trEpViTjjA10md57szMuCr0TSPHT3W2b1euRadGAtuA,187086
|
11
11
|
pyegeria/collection_manager_omvs.py,sha256=kye2kjthNnmwxMZhHQKV0xoHbxcNPWjNzRAYOItj_gY,99201
|
12
12
|
pyegeria/commands/README.md,sha256=zNfWZppDxoKqTJeRtcewzku9z1m6_hKacCyQUQw1iq4,1974
|
13
13
|
pyegeria/commands/__init__.py,sha256=IBYAvBbuGneZ06YSFjZsU-Zxx-b-Qo4ZV_Vd4zz4AI0,844
|
@@ -41,13 +41,14 @@ pyegeria/commands/cli/egeria_my.py,sha256=Memyxzhrn_i3nMNRor-5N40_SKJJMzylA4iQgB
|
|
41
41
|
pyegeria/commands/cli/egeria_ops.py,sha256=p15SOjimPAY8hv_NmsU4Ff2iPEP32p_hVMBwxlnLM_I,12214
|
42
42
|
pyegeria/commands/cli/egeria_tech.py,sha256=o6g_xwP8S-ehwgpkl-0BD_-FyGfyr90bEiKWNvHj9xk,13303
|
43
43
|
pyegeria/commands/cli/ops_config.py,sha256=m4AfPjf-fR4EBTx8Dc2mcgrfWwAxb30YGeV-v79bg4U,1450
|
44
|
+
pyegeria/commands/doc/command-overview.md,sha256=mxZnETYs7DV0sWrsce9xR1Wi8iKzd6Z_i0chW6Or864,6456
|
44
45
|
pyegeria/commands/my/README.md,sha256=ZheFhj_VoPMhcWjW3pGchHB0vH_A9PklSmrSkzKdrcQ,844
|
45
46
|
pyegeria/commands/my/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
46
|
-
pyegeria/commands/my/list_my_profile.py,sha256=
|
47
|
-
pyegeria/commands/my/list_my_roles.py,sha256=
|
48
|
-
pyegeria/commands/my/monitor_my_todos.py,sha256=
|
49
|
-
pyegeria/commands/my/monitor_open_todos.py,sha256=
|
50
|
-
pyegeria/commands/my/todo_actions.py,sha256=
|
47
|
+
pyegeria/commands/my/list_my_profile.py,sha256=7oZ-rT1WuRSatlthJP_Qlvlgf66z3PetdLYsiqrYSko,5788
|
48
|
+
pyegeria/commands/my/list_my_roles.py,sha256=ItwkKgweF4NIx_5AqkHFTiNHZlXejCgfd0eq5KaehHE,5176
|
49
|
+
pyegeria/commands/my/monitor_my_todos.py,sha256=Sqvvn5rOQsRquPEHmBigJTvrgfHb03kE18UkrCbXoSw,6598
|
50
|
+
pyegeria/commands/my/monitor_open_todos.py,sha256=iNC3XWQhbmnhA94w3caV3LxTA4RWQRZsWfNll1hixMY,5898
|
51
|
+
pyegeria/commands/my/todo_actions.py,sha256=RPdJ-N3nmHU9jMCBYP0CZZWwZdcvAgMPQdWSwMs5MX4,8372
|
51
52
|
pyegeria/commands/ops/README.md,sha256=PJsSDcvMv6E6og6y-cwvxFX5lhCII0UCwgKiM1T17MQ,1595
|
52
53
|
pyegeria/commands/ops/__init__.py,sha256=GyDGBYodxuJ-7k87z2farDs9vhR__RNrYeAe94HWGPM,764
|
53
54
|
pyegeria/commands/ops/gov_server_actions.py,sha256=zdawX-yfPFakc3Xf5V6j7e-csMbRLzJ-tdt_FkIhG34,5689
|
@@ -108,8 +109,8 @@ pyegeria/template_manager_omvs.py,sha256=heqbKeum5hPCHap4r1RUZU8YB3QaQlxVNbq4GZi
|
|
108
109
|
pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
|
109
110
|
pyegeria/valid_metadata_omvs.py,sha256=tfCGXed5LLt59YA8uZNNtd9UJ-lRZfPU_uZxK31Yux0,65069
|
110
111
|
pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
|
111
|
-
pyegeria-1.5.1.1.
|
112
|
-
pyegeria-1.5.1.1.
|
113
|
-
pyegeria-1.5.1.1.
|
114
|
-
pyegeria-1.5.1.1.
|
115
|
-
pyegeria-1.5.1.1.
|
112
|
+
pyegeria-1.5.1.1.43.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
113
|
+
pyegeria-1.5.1.1.43.dist-info/METADATA,sha256=8ZBQlCC2nyfxn52Aa8U0OkYuUBQg692pFhWahqsuRPA,2998
|
114
|
+
pyegeria-1.5.1.1.43.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
115
|
+
pyegeria-1.5.1.1.43.dist-info/entry_points.txt,sha256=GDsJt24awMzNAbVAWdMoeZTQb5oMcMCqjvIAemqOwVQ,5105
|
116
|
+
pyegeria-1.5.1.1.43.dist-info/RECORD,,
|
@@ -39,6 +39,7 @@ list_gov_action_processes=pyegeria.commands.tech.list_gov_action_processes:main
|
|
39
39
|
list_gov_eng_status=pyegeria.commands.ops.monitor_gov_eng_status:main_paging
|
40
40
|
list_integ_daemon_status=pyegeria.commands.ops.monitor_integ_daemon_status:main_paging
|
41
41
|
list_my_profile=pyegeria.commands.my.list_my_profile:main
|
42
|
+
list_my_roles=pyegeria.commands.my.list_my_roles:main
|
42
43
|
list_projects=pyegeria.commands.cat.list_projects:main
|
43
44
|
list_registered_services=pyegeria.commands.tech.list_registered_services:main
|
44
45
|
list_related_elements=pyegeria.commands.tech.list_related_elements:main
|
File without changes
|
File without changes
|