pyegeria 0.3.9__py3-none-any.whl → 0.4.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 (47) hide show
  1. pyegeria/Xfeedback_manager_omvs.py +2 -15
  2. pyegeria/__init__.py +11 -4
  3. pyegeria/_globals.py +3 -1
  4. pyegeria/{Xasset_catalog_omvs.py → asset_catalog_omvs.py} +242 -109
  5. pyegeria/automated_curation_omvs.py +324 -61
  6. pyegeria/core_guids.py +128 -0
  7. pyegeria/core_omag_server_config.py +1 -1
  8. pyegeria/{Xglossary_manager_omvs.py → glossary_manager_omvs.py} +70 -69
  9. pyegeria/runtime_manager_omvs.py +967 -0
  10. pyegeria/valid_metadata_omvs.py +193 -20
  11. pyegeria-0.4.1.data/scripts/get_guid_info.py +86 -0
  12. {pyegeria-0.3.9.data → pyegeria-0.4.1.data}/scripts/get_tech_details.py +1 -37
  13. pyegeria-0.4.1.data/scripts/get_tech_type_elements.py +137 -0
  14. pyegeria-0.4.1.data/scripts/get_tech_type_template.py +137 -0
  15. pyegeria-0.4.1.data/scripts/list_assets.py +138 -0
  16. pyegeria-0.3.9.data/scripts/project_list_viewer.py → pyegeria-0.4.1.data/scripts/list_projects.py +1 -1
  17. pyegeria-0.3.9.data/scripts/get_relationship_types.py → pyegeria-0.4.1.data/scripts/list_relationship_types.py +9 -8
  18. pyegeria-0.4.1.data/scripts/list_tech_templates.py +134 -0
  19. pyegeria-0.3.9.data/scripts/find_todos.py → pyegeria-0.4.1.data/scripts/list_todos.py +2 -1
  20. pyegeria-0.4.1.data/scripts/list_valid_metadata_values.py +144 -0
  21. pyegeria-0.4.1.data/scripts/view_asset_graph.py +245 -0
  22. pyegeria-0.3.9.data/scripts/coco_status.py → pyegeria-0.4.1.data/scripts/view_coco_status.py +10 -9
  23. pyegeria-0.3.9.data/scripts/engine_action_status.py → pyegeria-0.4.1.data/scripts/view_eng_action_status.py +8 -3
  24. pyegeria-0.4.1.data/scripts/view_integ_daemon_status.py +140 -0
  25. pyegeria-0.4.1.data/scripts/view_platform_status.py +123 -0
  26. {pyegeria-0.3.9.dist-info → pyegeria-0.4.1.dist-info}/METADATA +5 -2
  27. pyegeria-0.4.1.dist-info/RECORD +58 -0
  28. {pyegeria-0.3.9.dist-info → pyegeria-0.4.1.dist-info}/WHEEL +1 -1
  29. pyegeria-0.3.9.data/scripts/integration_daemon_status.py +0 -130
  30. pyegeria-0.3.9.data/scripts/multi-server_status.py +0 -120
  31. pyegeria-0.3.9.dist-info/RECORD +0 -49
  32. /pyegeria/{Xaction_author_omvs.py → action_author_omvs.py} +0 -0
  33. {pyegeria-0.3.9.data → pyegeria-0.4.1.data}/scripts/Create_Collection_Sample.py +0 -0
  34. {pyegeria-0.3.9.data → pyegeria-0.4.1.data}/scripts/Create_Sustainability_Collection_Sample.py +0 -0
  35. /pyegeria-0.3.9.data/scripts/view_my_profile.py → /pyegeria-0.4.1.data/scripts/get_my_profile.py +0 -0
  36. {pyegeria-0.3.9.data → pyegeria-0.4.1.data}/scripts/list_asset_types.py +0 -0
  37. /pyegeria-0.3.9.data/scripts/get_registered_services.py → /pyegeria-0.4.1.data/scripts/list_registered_services.py +0 -0
  38. /pyegeria-0.3.9.data/scripts/get_tech_types.py → /pyegeria-0.4.1.data/scripts/list_tech_types.py +0 -0
  39. /pyegeria-0.3.9.data/scripts/collection_viewer.py → /pyegeria-0.4.1.data/scripts/view_collection.py +0 -0
  40. /pyegeria-0.3.9.data/scripts/glossary_view.py → /pyegeria-0.4.1.data/scripts/view_glossary.py +0 -0
  41. /pyegeria-0.3.9.data/scripts/gov_engine_status.py → /pyegeria-0.4.1.data/scripts/view_gov_eng_status.py +0 -0
  42. /pyegeria-0.3.9.data/scripts/my_todos.py → /pyegeria-0.4.1.data/scripts/view_my_todos.py +0 -0
  43. /pyegeria-0.3.9.data/scripts/open_todos.py → /pyegeria-0.4.1.data/scripts/view_open_todos.py +0 -0
  44. /pyegeria-0.3.9.data/scripts/server_status_widget.py → /pyegeria-0.4.1.data/scripts/view_server_list.py +0 -0
  45. /pyegeria-0.3.9.data/scripts/server_status.py → /pyegeria-0.4.1.data/scripts/view_server_status.py +0 -0
  46. {pyegeria-0.3.9.dist-info → pyegeria-0.4.1.dist-info}/LICENSE +0 -0
  47. {pyegeria-0.3.9.dist-info → pyegeria-0.4.1.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,130 +0,0 @@
1
- #!python
2
- """
3
- SPDX-License-Identifier: Apache-2.0
4
- Copyright Contributors to the ODPi Egeria project.
5
-
6
- Unit tests for the Utils helper functions using the Pytest framework.
7
-
8
-
9
- A simple status display for Engine Actions
10
- """
11
-
12
- import argparse
13
- import json
14
- import time
15
-
16
- from rich import box
17
- from rich.live import Live
18
- from rich.table import Table
19
- from rich import console
20
-
21
- from pyegeria._exceptions import (
22
- InvalidParameterException,
23
- PropertyServerException,
24
- UserNotAuthorizedException,
25
- print_exception_response,
26
- )
27
- from pyegeria.server_operations import ServerOps
28
-
29
- disable_ssl_warnings = True
30
-
31
- good_platform1_url = "https://127.0.0.1:9443"
32
- good_platform2_url = "https://egeria.pdr-associates.com:7443"
33
- bad_platform1_url = "https://localhost:9443"
34
-
35
- good_user_1 = "garygeeke"
36
- good_user_2 = "erinoverview"
37
- bad_user_1 = "eviledna"
38
- bad_user_2 = ""
39
-
40
- good_server_1 = "active-metadata-store"
41
- good_server_2 = "simple-metadata-store"
42
- good_server_3 = "view-server"
43
- good_server_4 = "engine-host"
44
- bad_server_1 = "coco"
45
- bad_server_2 = ""
46
-
47
-
48
- def display_integration_daemon_status(server: str = good_server_4, url: str = good_platform1_url,
49
- user: str = good_user_1):
50
- s_client = ServerOps(server, url, user)
51
-
52
- def generate_table() -> Table:
53
- """Make a new table."""
54
- table = Table(
55
- title=f"Integration Daemon Status @ {time.asctime()}",
56
- # style = "black on grey66",
57
- header_style="white on dark_blue",
58
- show_lines=True,
59
- box=box.ROUNDED,
60
- caption=f"Integration Daemon Status for Server '{server}' @ Platform - {url}",
61
- expand=True
62
- )
63
- table.add_column("Connector Name")
64
- table.add_column("Connector Status")
65
-
66
- table.add_column("Last Refresh Time")
67
- table.add_column("Minimum Refresh Interval (min)")
68
- table.add_column("Target Element")
69
- table.add_column("Exception Message")
70
-
71
- daemon_status = s_client.get_integration_daemon_status()
72
- connector_reports = daemon_status["integrationConnectorReports"]
73
- for connector in connector_reports:
74
- connector_name = connector["connectorName"]
75
- connector_status = connector["connectorStatus"]
76
- last_refresh_time = connector.get("lastRefreshTime","---")
77
- refresh_interval = str(connector.get("minMinutesBetweenRefresh","---"))
78
- target_element = " "
79
- exception_msg = " "
80
-
81
- if connector_name is None:
82
- connector_name = "connector name"
83
- if connector_status is None:
84
- connector_status = "connector status"
85
-
86
- if connector_status in ("RUNNING", "REFRESHING", "WAITING"):
87
- connector_status = f"[green]{connector_status}"
88
- elif connector_status in ("INITIALIZE FAILED","CONFIG_FAILED","FAILED"):
89
- connector_status = f"[red]{connector_status}"
90
- else:
91
- connector_status = f"[yellow]{connector_status}"
92
-
93
- # target= action.get("actionTargetElements","Empty")
94
- # if type(target) is list:
95
- # target_element = json.dumps(target[0]["targetElement"]["elementProperties"]["propertiesAsStrings"])
96
- # else:
97
- # target_element = " "
98
-
99
- table.add_row(
100
- connector_name,connector_status,last_refresh_time,refresh_interval,
101
- target_element, exception_msg
102
- )
103
- return table
104
-
105
- try:
106
- with Live(generate_table(), refresh_per_second=4, screen=True) as live:
107
- while True:
108
- time.sleep(2)
109
- live.update(generate_table())
110
- live.console.pager()
111
-
112
- except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
113
- print_exception_response(e)
114
- assert e.related_http_code != "200", "Invalid parameters"
115
-
116
- finally:
117
- s_client.close_session()
118
-
119
-
120
- if __name__ == "__main__":
121
- parser = argparse.ArgumentParser()
122
- parser.add_argument("--server", help="Name of the server to display status for")
123
- parser.add_argument("--url", help="URL Platform to connect to")
124
- parser.add_argument("--userid", help="User Id")
125
- args = parser.parse_args()
126
-
127
- server = args.server if args.server is not None else "integration-daemon"
128
- url = args.url if args.url is not None else "https://localhost:9443"
129
- userid = args.userid if args.userid is not None else 'garygeeke'
130
- display_integration_daemon_status(server=server, url=url, user=userid)
@@ -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)
@@ -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,,