pyegeria 0.3.9__py3-none-any.whl → 0.4.0__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/Xfeedback_manager_omvs.py +2 -15
- pyegeria/__init__.py +11 -4
- pyegeria/_globals.py +3 -1
- pyegeria/{Xasset_catalog_omvs.py → asset_catalog_omvs.py} +242 -109
- pyegeria/automated_curation_omvs.py +324 -61
- pyegeria/core_guids.py +128 -0
- pyegeria/{Xglossary_manager_omvs.py → glossary_manager_omvs.py} +70 -69
- pyegeria/runtime_manager_omvs.py +967 -0
- pyegeria/valid_metadata_omvs.py +193 -20
- pyegeria-0.4.0.data/scripts/get_guid_info.py +86 -0
- {pyegeria-0.3.9.data → pyegeria-0.4.0.data}/scripts/get_tech_details.py +1 -37
- pyegeria-0.4.0.data/scripts/get_tech_type_elements.py +137 -0
- pyegeria-0.4.0.data/scripts/get_tech_type_template.py +137 -0
- pyegeria-0.4.0.data/scripts/list_assets.py +138 -0
- pyegeria-0.3.9.data/scripts/project_list_viewer.py → pyegeria-0.4.0.data/scripts/list_projects.py +1 -1
- pyegeria-0.3.9.data/scripts/get_relationship_types.py → pyegeria-0.4.0.data/scripts/list_relationship_types.py +9 -8
- pyegeria-0.4.0.data/scripts/list_tech_templates.py +134 -0
- pyegeria-0.3.9.data/scripts/find_todos.py → pyegeria-0.4.0.data/scripts/list_todos.py +2 -1
- pyegeria-0.4.0.data/scripts/list_valid_metadata_values.py +144 -0
- pyegeria-0.4.0.data/scripts/view_asset_graph.py +236 -0
- pyegeria-0.3.9.data/scripts/engine_action_status.py → pyegeria-0.4.0.data/scripts/view_eng_action_status.py +8 -3
- pyegeria-0.3.9.data/scripts/integration_daemon_status.py → pyegeria-0.4.0.data/scripts/view_integ_daemon_status.py +30 -42
- pyegeria-0.4.0.data/scripts/view_platform_status.py +123 -0
- {pyegeria-0.3.9.dist-info → pyegeria-0.4.0.dist-info}/METADATA +5 -2
- pyegeria-0.4.0.dist-info/RECORD +58 -0
- {pyegeria-0.3.9.dist-info → pyegeria-0.4.0.dist-info}/WHEEL +1 -1
- pyegeria-0.3.9.data/scripts/multi-server_status.py +0 -120
- pyegeria-0.3.9.dist-info/RECORD +0 -49
- /pyegeria/{Xaction_author_omvs.py → action_author_omvs.py} +0 -0
- {pyegeria-0.3.9.data → pyegeria-0.4.0.data}/scripts/Create_Collection_Sample.py +0 -0
- {pyegeria-0.3.9.data → pyegeria-0.4.0.data}/scripts/Create_Sustainability_Collection_Sample.py +0 -0
- /pyegeria-0.3.9.data/scripts/view_my_profile.py → /pyegeria-0.4.0.data/scripts/get_my_profile.py +0 -0
- {pyegeria-0.3.9.data → pyegeria-0.4.0.data}/scripts/list_asset_types.py +0 -0
- /pyegeria-0.3.9.data/scripts/get_registered_services.py → /pyegeria-0.4.0.data/scripts/list_registered_services.py +0 -0
- /pyegeria-0.3.9.data/scripts/get_tech_types.py → /pyegeria-0.4.0.data/scripts/list_tech_types.py +0 -0
- /pyegeria-0.3.9.data/scripts/coco_status.py → /pyegeria-0.4.0.data/scripts/view_coco_status.py +0 -0
- /pyegeria-0.3.9.data/scripts/collection_viewer.py → /pyegeria-0.4.0.data/scripts/view_collection.py +0 -0
- /pyegeria-0.3.9.data/scripts/glossary_view.py → /pyegeria-0.4.0.data/scripts/view_glossary.py +0 -0
- /pyegeria-0.3.9.data/scripts/gov_engine_status.py → /pyegeria-0.4.0.data/scripts/view_gov_eng_status.py +0 -0
- /pyegeria-0.3.9.data/scripts/my_todos.py → /pyegeria-0.4.0.data/scripts/view_my_todos.py +0 -0
- /pyegeria-0.3.9.data/scripts/open_todos.py → /pyegeria-0.4.0.data/scripts/view_open_todos.py +0 -0
- /pyegeria-0.3.9.data/scripts/server_status_widget.py → /pyegeria-0.4.0.data/scripts/view_server_list.py +0 -0
- /pyegeria-0.3.9.data/scripts/server_status.py → /pyegeria-0.4.0.data/scripts/view_server_status.py +0 -0
- {pyegeria-0.3.9.dist-info → pyegeria-0.4.0.dist-info}/LICENSE +0 -0
- {pyegeria-0.3.9.dist-info → pyegeria-0.4.0.dist-info}/top_level.txt +0 -0
@@ -1,120 +0,0 @@
|
|
1
|
-
#!python
|
2
|
-
"""
|
3
|
-
SPDX-License-Identifier: Apache-2.0
|
4
|
-
Copyright Contributors to the ODPi Egeria project.
|
5
|
-
|
6
|
-
An example of displaying the status of two platforms concurrently.
|
7
|
-
"""
|
8
|
-
|
9
|
-
import time
|
10
|
-
import argparse
|
11
|
-
|
12
|
-
from rich.box import Box
|
13
|
-
|
14
|
-
from pyegeria._exceptions import (
|
15
|
-
InvalidParameterException,
|
16
|
-
PropertyServerException,
|
17
|
-
UserNotAuthorizedException,
|
18
|
-
print_exception_response,
|
19
|
-
)
|
20
|
-
from rich.table import Table
|
21
|
-
from rich.live import Live
|
22
|
-
from rich import print
|
23
|
-
from rich.console import Group
|
24
|
-
from rich.panel import Panel
|
25
|
-
from rich import box, align
|
26
|
-
from rich.layout import Layout
|
27
|
-
import rich
|
28
|
-
from pyegeria.server_operations import ServerOps
|
29
|
-
|
30
|
-
disable_ssl_warnings = True
|
31
|
-
|
32
|
-
good_platform1_url = "https://127.0.0.1:9443"
|
33
|
-
good_platform2_url = "https://egeria.pdr-associates.com:9443"
|
34
|
-
bad_platform1_url = "https://localhost:9443"
|
35
|
-
|
36
|
-
|
37
|
-
good_user_1 = "garygeeke"
|
38
|
-
good_user_2 = "erinoverview"
|
39
|
-
bad_user_1 = "eviledna"
|
40
|
-
bad_user_2 = ""
|
41
|
-
|
42
|
-
good_server_1 = "active-metadata-store"
|
43
|
-
good_server_2 = "simple-metadata-store"
|
44
|
-
good_server_3 = "view-server"
|
45
|
-
good_server_4 = "engine-host"
|
46
|
-
bad_server_1 = "coco"
|
47
|
-
bad_server_2 = ""
|
48
|
-
|
49
|
-
|
50
|
-
def test_display_status(server: str = good_server_1, url: str = good_platform2_url, username: str = good_user_1):
|
51
|
-
layout = Layout()
|
52
|
-
print(layout)
|
53
|
-
|
54
|
-
print(layout)
|
55
|
-
p_client1 = ServerOps(server, "https://cray.local:9443", username)
|
56
|
-
p_client2 = ServerOps('ecosystem-monitor', "https://cray.local:9446", username)
|
57
|
-
|
58
|
-
|
59
|
-
def generate_table(p_client) -> Table:
|
60
|
-
"""Make a new table."""
|
61
|
-
table = Table(
|
62
|
-
title=f"Server Status for Platform - {time.asctime()}",
|
63
|
-
# style = "black on grey66",
|
64
|
-
header_style="white on dark_blue",
|
65
|
-
caption=f"Server Status for Platform - '{url}'",
|
66
|
-
# show_lines=True,
|
67
|
-
)
|
68
|
-
|
69
|
-
table.add_column("Known Server")
|
70
|
-
table.add_column("Status")
|
71
|
-
|
72
|
-
known_server_list = p_client.get_known_servers()
|
73
|
-
active_server_list = p_client.get_active_server_list()
|
74
|
-
if len(known_server_list) == 0:
|
75
|
-
return table
|
76
|
-
|
77
|
-
for server in known_server_list:
|
78
|
-
if server in active_server_list:
|
79
|
-
status = "Active"
|
80
|
-
else:
|
81
|
-
status = "Inactive"
|
82
|
-
|
83
|
-
table.add_row(server,
|
84
|
-
"[red]Inactive" if status == "Inactive" else "[green]Active",
|
85
|
-
)
|
86
|
-
# p_client.close_session()
|
87
|
-
return table
|
88
|
-
|
89
|
-
try:
|
90
|
-
# panel_group = Group(
|
91
|
-
# rich.align.Align(Panel(, generate_table(p_client2)), box.ROUNDED))
|
92
|
-
#
|
93
|
-
# )
|
94
|
-
layout.split_row(
|
95
|
-
Layout(Panel(generate_table(p_client1), box.ROUNDED)),
|
96
|
-
Layout(Panel(generate_table(p_client2), box.ROUNDED))
|
97
|
-
)
|
98
|
-
with Live(layout, refresh_per_second=4, screen=True) as live:
|
99
|
-
while True:
|
100
|
-
time.sleep(2)
|
101
|
-
live.update(layout)
|
102
|
-
|
103
|
-
|
104
|
-
except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
|
105
|
-
print_exception_response(e)
|
106
|
-
assert e.related_http_code != "200", "Invalid parameters"
|
107
|
-
|
108
|
-
|
109
|
-
if __name__ == "__main__":
|
110
|
-
parser = argparse.ArgumentParser()
|
111
|
-
parser.add_argument("--server", help="Name of the server to display status for")
|
112
|
-
parser.add_argument("--url", help="URL Platform to connect to")
|
113
|
-
parser.add_argument("--userid", help="User Id")
|
114
|
-
args = parser.parse_args()
|
115
|
-
|
116
|
-
server = args.server if args.server is not None else "active-metadata-store"
|
117
|
-
url = args.url if args.url is not None else "https://cray.local:9443"
|
118
|
-
userid = args.userid if args.userid is not None else 'garygeeke'
|
119
|
-
|
120
|
-
test_display_status(server, url, userid)
|
pyegeria-0.3.9.dist-info/RECORD
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
pyegeria/Xaction_author_omvs.py,sha256=m0wsfmyO-VxRDaPpACeIDw8eVAFu3RVbo45RPCUel9M,6340
|
2
|
-
pyegeria/Xasset_catalog_omvs.py,sha256=8CtzNlI20oMjTVTZVngff_hEgFBgwsy-Di-VMaZmMPA,20387
|
3
|
-
pyegeria/Xfeedback_manager_omvs.py,sha256=0hpPE8jBIdwE-THU5puw-SGBgtzpcOJfxRpkE7Y7rXk,9917
|
4
|
-
pyegeria/Xglossary_manager_omvs.py,sha256=bWEWvP2cpqXvviwW7cqCaX7VTgWz2QsnmGw2FYwiRhU,133408
|
5
|
-
pyegeria/Xloaded_resources_omvs.py,sha256=_1RKeIfq3ga6nvtOzZ5dWcDFgxNiUOPJhnyMv1iCm9s,3377
|
6
|
-
pyegeria/__init__.py,sha256=RJylDbn6Lr3G0cEfLWySOcsj7jnxHgJ6bxk71GsXg6w,1808
|
7
|
-
pyegeria/_client.py,sha256=uQqfjf0JPacEWcDvbKpCvCypbDmAmGHaFQf_UTPK7VQ,23524
|
8
|
-
pyegeria/_deprecated_gov_engine.py,sha256=_DAEHsksnTKGqL9-TaaMVrfnNOrvatNACfg7pJ-ZX4w,17600
|
9
|
-
pyegeria/_exceptions.py,sha256=NJ7vAhmvusK1ENvY2MMrBB6A6TgpYjzS9QJxFH56b8c,18470
|
10
|
-
pyegeria/_globals.py,sha256=pgmydGorNceuAaq6l5Oxv1LkPGLdA3oSelJo2MKOtB8,559
|
11
|
-
pyegeria/_validators.py,sha256=DQuMsATRGxGSBtOrVtXlCgWXGhj6Nh-uqPtCsrUGLxk,12703
|
12
|
-
pyegeria/automated_curation_omvs.py,sha256=qVtBBG5GTQqfBPKJ8jsbLzmpUT8mwUjh4XvIVfsfacE,106615
|
13
|
-
pyegeria/collection_manager_omvs.py,sha256=IyGCbqx2Blm0OwCsC2071EeoNWHXyWGl_6pEtacizAs,112642
|
14
|
-
pyegeria/core_omag_server_config.py,sha256=A-xec_ivX7YMLZynzIMB7l-aYKNkqQHrUBMznoUuiNU,93098
|
15
|
-
pyegeria/full_omag_server_config.py,sha256=zzIyhCDolbLEJrc9JoBK308Mcq_96swYJopBN7_o4n8,45358
|
16
|
-
pyegeria/glossary_browser_omvs.py,sha256=nUCDSQ8cw8vuYgjfcaj1zLIefVI5j51evxPyXCIc4X8,101716
|
17
|
-
pyegeria/my_profile_omvs.py,sha256=w-3aL9s7VlonUGtdKgfMSCeYIbCtJn0zDLTuqUxAYFc,42265
|
18
|
-
pyegeria/platform_services.py,sha256=T2UiAl7tPfOBGL_H2b73XyyHtR0Y36irgbaljZTjD4I,41808
|
19
|
-
pyegeria/project_manager_omvs.py,sha256=_U6m2vquu4eEV7aY8X3hsvfm2zX0EBica1reGWX9amY,77078
|
20
|
-
pyegeria/registered_info.py,sha256=GfMcYz3IO0aNquf8qCrYQ9cA5KplhPx1kNt0_nMMpTM,6475
|
21
|
-
pyegeria/server_operations.py,sha256=YBdQJjPOmA1uhrUvzrjUKNGUc5nju9bhvCjF3AbdyWk,16164
|
22
|
-
pyegeria/utils.py,sha256=H0mew9IRcbsEi-pZfaT9HGuPO9CMOwnhOgIltyNvqTY,5240
|
23
|
-
pyegeria/valid_metadata_omvs.py,sha256=YpRiqwCa35P4UB6vExvcCEFrH0ZGV1mFUIJo9uloGJ4,29259
|
24
|
-
pyegeria-0.3.9.data/scripts/Create_Collection_Sample.py,sha256=Peoacgx0RRNwL_ZfMUynRcqttp6fdbSi5LZu38ghpD0,11865
|
25
|
-
pyegeria-0.3.9.data/scripts/Create_Sustainability_Collection_Sample.py,sha256=iLBm1LwRLi42Gayyb-wcWZ5NySQ6sc4kVSmwIAzP2Po,5049
|
26
|
-
pyegeria-0.3.9.data/scripts/coco_status.py,sha256=CR0_vwTBrKN7MSf1_OQ9MNi_RfmEcC-JucKLiRUZdqg,3188
|
27
|
-
pyegeria-0.3.9.data/scripts/collection_viewer.py,sha256=zLeQc5KQa_1Hw7zb46EoWwBbXzc1nzbnrPpuBqsxE6E,3233
|
28
|
-
pyegeria-0.3.9.data/scripts/engine_action_status.py,sha256=mv-FKnq8NdRRFeWOtqdflmXzEpLgw6SLfFrcMt6Rz84,4694
|
29
|
-
pyegeria-0.3.9.data/scripts/find_todos.py,sha256=TYp9z3wCbryNVlHAAJFpgFtY5fWA346QaA7-9_7Hnk4,4153
|
30
|
-
pyegeria-0.3.9.data/scripts/get_registered_services.py,sha256=NzlyItgcsoXgvV8vjaB3cMAR9GlVkbd6KcOiJ5rxUvs,5085
|
31
|
-
pyegeria-0.3.9.data/scripts/get_relationship_types.py,sha256=hVWd14zFqGvEn2YwUeS9ouAcdsKSZukSDSdELkU1Gvw,4162
|
32
|
-
pyegeria-0.3.9.data/scripts/get_tech_details.py,sha256=Tg4UCazeEh7He9-l7yQbCuJso7ZcpaLhdmMUT866RzU,6843
|
33
|
-
pyegeria-0.3.9.data/scripts/get_tech_types.py,sha256=xZoCrnmBXa-_WXDW3tBG6dt6IxH-aeQfg07pXM2IrsA,3924
|
34
|
-
pyegeria-0.3.9.data/scripts/glossary_view.py,sha256=cEQOo-lfrulbcmvr8zBv0bVBdBzqcqCZWORUzUW1nE0,4614
|
35
|
-
pyegeria-0.3.9.data/scripts/gov_engine_status.py,sha256=iPr_rYkczY2yVLCKlLMBvLugUAVJ6kro81Gr4c9fzCM,3961
|
36
|
-
pyegeria-0.3.9.data/scripts/integration_daemon_status.py,sha256=9XRQKdjmYqwfxwNoo4EUhX8vrplR0etS-5Yq89lXGMw,4575
|
37
|
-
pyegeria-0.3.9.data/scripts/list_asset_types.py,sha256=CxK2IETXIzDlMQbVUcP1WFMvUpFYiyJrfXDgGZVGCko,2810
|
38
|
-
pyegeria-0.3.9.data/scripts/multi-server_status.py,sha256=XlBaIERVqYXjHO2x18WY64Oo0fUZS1onpOLAJcIlJk0,3690
|
39
|
-
pyegeria-0.3.9.data/scripts/my_todos.py,sha256=MmG8pJATR2mbt1tmuo7VPHkVNe_QmyRNdQKBEp4sz_A,5672
|
40
|
-
pyegeria-0.3.9.data/scripts/open_todos.py,sha256=RW_yCnzVdAOHvIW4nAaCD5sxYPPGZQN9KTa54MN3YCE,3957
|
41
|
-
pyegeria-0.3.9.data/scripts/project_list_viewer.py,sha256=iUNrNOhKOrcx9m6PZmdEC3eiohTnInArJLTkGQlK6xY,4991
|
42
|
-
pyegeria-0.3.9.data/scripts/server_status.py,sha256=YFLRz6qx8WoNRbRGhHyVvokaxXjnNSDeG-cTxo22jO0,2836
|
43
|
-
pyegeria-0.3.9.data/scripts/server_status_widget.py,sha256=tyx1I7olr6e5kJF22ou9rqsztrRDdrPCq5uVa3hhPBU,3088
|
44
|
-
pyegeria-0.3.9.data/scripts/view_my_profile.py,sha256=XSUxLgcL4sYSoZshnMrHVoRf42ePlmk08v6_24uVQHo,3705
|
45
|
-
pyegeria-0.3.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
46
|
-
pyegeria-0.3.9.dist-info/METADATA,sha256=OmQU6fMcdPs9hKB812Ih9tgW5uxcsranS8hC7oJrVJE,2336
|
47
|
-
pyegeria-0.3.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
48
|
-
pyegeria-0.3.9.dist-info/top_level.txt,sha256=tHowU8jow7WJGmbr4QdIk7gJWdslRgbWBiF2lMeduLQ,9
|
49
|
-
pyegeria-0.3.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{pyegeria-0.3.9.data → pyegeria-0.4.0.data}/scripts/Create_Sustainability_Collection_Sample.py
RENAMED
File without changes
|
/pyegeria-0.3.9.data/scripts/view_my_profile.py → /pyegeria-0.4.0.data/scripts/get_my_profile.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
/pyegeria-0.3.9.data/scripts/get_tech_types.py → /pyegeria-0.4.0.data/scripts/list_tech_types.py
RENAMED
File without changes
|
/pyegeria-0.3.9.data/scripts/coco_status.py → /pyegeria-0.4.0.data/scripts/view_coco_status.py
RENAMED
File without changes
|
/pyegeria-0.3.9.data/scripts/collection_viewer.py → /pyegeria-0.4.0.data/scripts/view_collection.py
RENAMED
File without changes
|
/pyegeria-0.3.9.data/scripts/glossary_view.py → /pyegeria-0.4.0.data/scripts/view_glossary.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
/pyegeria-0.3.9.data/scripts/open_todos.py → /pyegeria-0.4.0.data/scripts/view_open_todos.py
RENAMED
File without changes
|
File without changes
|
/pyegeria-0.3.9.data/scripts/server_status.py → /pyegeria-0.4.0.data/scripts/view_server_status.py
RENAMED
File without changes
|
File without changes
|
File without changes
|