pyegeria 0.3.8__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.
Files changed (59) hide show
  1. pyegeria/Xfeedback_manager_omvs.py +238 -0
  2. pyegeria/Xloaded_resources_omvs.py +91 -0
  3. pyegeria/__init__.py +15 -12
  4. pyegeria/_client.py +4 -6
  5. pyegeria/{gov_engine.py → _deprecated_gov_engine.py} +2 -59
  6. pyegeria/_exceptions.py +5 -6
  7. pyegeria/_globals.py +3 -1
  8. pyegeria/asset_catalog_omvs.py +672 -0
  9. pyegeria/automated_curation_omvs.py +627 -359
  10. pyegeria/collection_manager_omvs.py +187 -248
  11. pyegeria/core_guids.py +128 -0
  12. pyegeria/core_omag_server_config.py +1 -5
  13. pyegeria/full_omag_server_config.py +53 -83
  14. pyegeria/glossary_browser_omvs.py +2208 -0
  15. pyegeria/glossary_manager_omvs.py +3002 -0
  16. pyegeria/my_profile_omvs.py +2 -7
  17. pyegeria/platform_services.py +0 -3
  18. pyegeria/project_manager_omvs.py +9 -15
  19. pyegeria/registered_info.py +12 -52
  20. pyegeria/runtime_manager_omvs.py +967 -0
  21. pyegeria/server_operations.py +1 -5
  22. pyegeria/valid_metadata_omvs.py +204 -43
  23. pyegeria-0.4.0.data/scripts/Create_Collection_Sample.py +292 -0
  24. pyegeria-0.4.0.data/scripts/Create_Sustainability_Collection_Sample.py +115 -0
  25. pyegeria-0.4.0.data/scripts/get_guid_info.py +86 -0
  26. pyegeria-0.3.8.data/scripts/view_my_profile.py → pyegeria-0.4.0.data/scripts/get_my_profile.py +8 -34
  27. {pyegeria-0.3.8.data → pyegeria-0.4.0.data}/scripts/get_tech_details.py +1 -37
  28. pyegeria-0.4.0.data/scripts/get_tech_type_elements.py +137 -0
  29. pyegeria-0.4.0.data/scripts/get_tech_type_template.py +137 -0
  30. {pyegeria-0.3.8.data → pyegeria-0.4.0.data}/scripts/list_asset_types.py +3 -25
  31. pyegeria-0.4.0.data/scripts/list_assets.py +138 -0
  32. pyegeria-0.3.8.data/scripts/project_list_viewer.py → pyegeria-0.4.0.data/scripts/list_projects.py +13 -27
  33. pyegeria-0.4.0.data/scripts/list_registered_services.py +135 -0
  34. pyegeria-0.3.8.data/scripts/get_relationship_types.py → pyegeria-0.4.0.data/scripts/list_relationship_types.py +25 -43
  35. pyegeria-0.4.0.data/scripts/list_tech_templates.py +134 -0
  36. pyegeria-0.3.8.data/scripts/find_todos.py → pyegeria-0.4.0.data/scripts/list_todos.py +11 -39
  37. pyegeria-0.4.0.data/scripts/list_valid_metadata_values.py +144 -0
  38. pyegeria-0.4.0.data/scripts/view_asset_graph.py +236 -0
  39. pyegeria-0.3.8.data/scripts/multi-server_status.py → pyegeria-0.4.0.data/scripts/view_coco_status.py +17 -39
  40. pyegeria-0.3.8.data/scripts/collection_viewer.py → pyegeria-0.4.0.data/scripts/view_collection.py +12 -31
  41. pyegeria-0.3.8.data/scripts/engine_action_status.py → pyegeria-0.4.0.data/scripts/view_eng_action_status.py +17 -31
  42. pyegeria-0.3.8.data/scripts/glossary_view.py → pyegeria-0.4.0.data/scripts/view_glossary.py +2 -2
  43. pyegeria-0.3.8.data/scripts/gov_engine_status.py → pyegeria-0.4.0.data/scripts/view_gov_eng_status.py +0 -1
  44. pyegeria-0.3.8.data/scripts/integration_daemon_status.py → pyegeria-0.4.0.data/scripts/view_integ_daemon_status.py +30 -42
  45. pyegeria-0.3.8.data/scripts/my_todos.py → pyegeria-0.4.0.data/scripts/view_my_todos.py +1 -1
  46. pyegeria-0.3.8.data/scripts/open_todos.py → pyegeria-0.4.0.data/scripts/view_open_todos.py +3 -24
  47. pyegeria-0.4.0.data/scripts/view_platform_status.py +123 -0
  48. pyegeria-0.3.8.data/scripts/server_status.py → pyegeria-0.4.0.data/scripts/view_server_status.py +1 -20
  49. {pyegeria-0.3.8.dist-info → pyegeria-0.4.0.dist-info}/METADATA +5 -4
  50. pyegeria-0.4.0.dist-info/RECORD +58 -0
  51. {pyegeria-0.3.8.dist-info → pyegeria-0.4.0.dist-info}/WHEEL +1 -1
  52. pyegeria/glossary_omvs.py +0 -789
  53. pyegeria/loaded_resources_omvs.py +0 -159
  54. pyegeria-0.3.8.dist-info/RECORD +0 -42
  55. /pyegeria/{governance_author.py → action_author_omvs.py} +0 -0
  56. /pyegeria-0.3.8.data/scripts/get_tech_types.py → /pyegeria-0.4.0.data/scripts/list_tech_types.py +0 -0
  57. /pyegeria-0.3.8.data/scripts/server_status_widget.py → /pyegeria-0.4.0.data/scripts/view_server_list.py +0 -0
  58. {pyegeria-0.3.8.dist-info → pyegeria-0.4.0.dist-info}/LICENSE +0 -0
  59. {pyegeria-0.3.8.dist-info → pyegeria-0.4.0.dist-info}/top_level.txt +0 -0
@@ -1,159 +0,0 @@
1
- """
2
- SPDX-License-Identifier: Apache-2.0
3
- Copyright Contributors to the ODPi Egeria project.
4
-
5
-
6
-
7
- This module allows users to query the available (registered) capabilities of Egeria. Detailed information is returned
8
- to provide both insight and understanding in how to use these capabilities. For example, when configuring an Egeria
9
- integration service, it is importregistered_info.pyant to know what companion service it depends on so that you can make sure the
10
- companion service is also configured and running.
11
-
12
- """
13
-
14
- import pandas as pd
15
- from tabulate import tabulate
16
-
17
- from pyegeria._client import Client
18
- from pyegeria.utils import wrap_text
19
-
20
-
21
- class LoadedResources(Client):
22
- """ Client to search and retrieve currently loaded information about connectors, templates, governance actions,
23
- etc.
24
-
25
- Attributes:
26
- ----------
27
- server_name: str
28
- Name of the server to use.
29
- platform_url : str
30
- URL of the server platform to connect to
31
- user_id : str
32
- The identity of the user calling the method - this sets a default optionally used by the methods
33
- when the user doesn't pass the user_id on a method call.
34
- user_pwd: str
35
- The password associated with the user_id. Defaults to None
36
- verify_flag: bool
37
- Flag to indicate if SSL Certificates should be verified in the HTTP requests.
38
- Defaults to False.
39
-
40
- Methods:
41
- -------
42
-
43
- """
44
-
45
- admin_command_root: str
46
-
47
- def __init__(
48
- self,
49
- server_name: str,
50
- platform_url: str,
51
- user_id: str,
52
- user_pwd: str = None,
53
- verify_flag: bool = False,
54
- ):
55
- if server_name is None:
56
- server_name = "NA"
57
- Client.__init__(self, server_name, platform_url,
58
- user_id, user_pwd, verify_flag)
59
-
60
- def get_all_templates(self, server: str = None, start_from: int = 0, page_size: int = 0) -> list | str:
61
- """ Get Loaded templates for the Server.
62
-
63
- Parameters
64
- ----------
65
-
66
- Returns
67
- -------
68
- dict | str
69
- A dictionary containing a simplified list of key template attributes.
70
-
71
- Raises
72
- ------
73
- InvalidParameterException
74
- If the response code is not 200.
75
- PropertyServerException:
76
- Raised by the server when an issue arises in processing a valid request
77
- NotAuthorizedException:
78
- The principle specified by the user_id does not have authorization for the requested action
79
-
80
- """
81
- server = self.server_name if server is None else server
82
- url = (f"{self.platform_url}/servers/{server}/open-metadata/framework-services/asset-owner/open-metadata-store/"
83
- f"users/{self.user_id}/metadata-elements/by-search-string?startFrom=start_from&pageSize=page_size")
84
- body = {
85
- "class" : "SearchStringRequestBody",
86
- "searchString" : ".*Template.*"
87
- }
88
- response = self.make_request("POST", url, body)
89
- return response.json().get("elementList", "No elements")
90
-
91
- def list_severity_definitions(self, fmt: str = 'json', skinny: bool = True, wrap_len: int = 30) -> list | str:
92
- """ Get the registered severities for the OMAG Server
93
-
94
- Parameters
95
- ----------
96
- fmt: str, optional, default = 'json'
97
- If fmt is 'json', then return the result as a JSON string. If fmt is 'table', then
98
- return the result as a nicely formatted table string.
99
- skinny: bool, optional, default = True
100
- If a table is being created and `skinny` is true, then return a subset of the information,
101
- if false return all columns.
102
- wrap_len: int, optional, default = 30
103
- If a table is being created, the width of the column to wrap text to.
104
-
105
- Returns
106
- -------
107
- dict | str
108
- If fmt is 'JSON' then return a dictionary containing the registered services for the specified
109
- platform. If fmt is 'table' then return the result as a nicely formatted printable table string.
110
-
111
- Raises
112
- ------
113
- InvalidParameterException
114
- If the response code is not 200.
115
- PropertyServerException:
116
- Raised by the server when an issue arises in processing a valid request
117
- NotAuthorizedException:
118
- The principle specified by the user_id does not have authorization for the requested action
119
-
120
- """
121
- url = (f"{self.platform_url}/servers/{self.server_name}/open-metadata/repository-services"
122
- f"/users/{self.user_id}/audit-log/severity-definitions"
123
- )
124
- response = self.make_request("GET", url)
125
- if fmt == 'json':
126
- return response.json().get("severities", "No severities found")
127
- elif fmt == 'table':
128
- df = pd.DataFrame(response.json().get("severities", []))
129
- if skinny:
130
- df = df.drop(columns=['ordinal'])
131
- return tabulate(wrap_text(df, wrap_len=wrap_len), headers='keys', tablefmt='psql')
132
-
133
- def list_asset_types(self, server: str = None) -> list | str:
134
- """ Get the registered severities for the OMAG Server
135
-
136
- Parameters
137
- ----------
138
- server: str, optional, default = None
139
-
140
- Returns
141
- -------
142
- dict | str
143
- Returns a list of the asset types.
144
-
145
- Raises
146
- ------
147
- InvalidParameterException
148
- If the response code is not 200.
149
- PropertyServerException:
150
- Raised by the server when an issue arises in processing a valid request
151
- NotAuthorizedException:
152
- The principle specified by the user_id does not have authorization for the requested action
153
-
154
- """
155
- server = self.server_name if server is None else server
156
- url = f"{self.platform_url}/servers/{self.server_name}/api/open-metadata/asset-catalog/assets/types"
157
-
158
- response = self.make_request("GET", url)
159
- return response.json().get('types', 'no types found')
@@ -1,42 +0,0 @@
1
- pyegeria/__init__.py,sha256=81gLQyRhtYqk5Sx5M7OD4nl0De4KeTAVCQonNpx8cTE,1821
2
- pyegeria/_client.py,sha256=8-8r1-_fACDEGgmfJdkeODlPmftcdiKwb-bmrSA3ac4,23606
3
- pyegeria/_exceptions.py,sha256=LImJPHy7MVgoH17LfqEL4ytLKcOhV7oCe66wZiDBzec,18399
4
- pyegeria/_globals.py,sha256=WgJ6O7_ACiAG8CUUHT_AbGgahLhO0APU8Y4rCwv9DRw,558
5
- pyegeria/_validators.py,sha256=DQuMsATRGxGSBtOrVtXlCgWXGhj6Nh-uqPtCsrUGLxk,12703
6
- pyegeria/automated_curation_omvs.py,sha256=jaYA1H9r6vCldExPBXEkWYcbppfk9i2TrefnPopZUGQ,102487
7
- pyegeria/collection_manager_omvs.py,sha256=iTKN_MJFj2s1M8LyXDkSy8KUBS2uaPAikCz3ncE_3sE,114200
8
- pyegeria/core_omag_server_config.py,sha256=jhtSlGx43X0x7-UGuWHZA0i6HT4_6MAF-wviMRekrWQ,93244
9
- pyegeria/full_omag_server_config.py,sha256=sVBeG40Hp6ZG7dsz2BZqzO3bluPeu-j0fGTuinQ-SsY,46146
10
- pyegeria/glossary_omvs.py,sha256=KcKRMNgm53suqbFLqsnThln5-zzAEJ8OseexiJ8BSsk,36500
11
- pyegeria/gov_engine.py,sha256=3SBSZlbUTVG4x8OhlEIqipe8mB8_KEYOacHmxk7loSM,19697
12
- pyegeria/governance_author.py,sha256=m0wsfmyO-VxRDaPpACeIDw8eVAFu3RVbo45RPCUel9M,6340
13
- pyegeria/loaded_resources_omvs.py,sha256=ACRftAkI4Uy9HL8rMnuPO4ZWT7vVhLymKQOqbon2tcA,6226
14
- pyegeria/my_profile_omvs.py,sha256=0yOpGYstIDvGgFuoNFBg19ec-vRtR_84d9lFPAyN6ss,42489
15
- pyegeria/platform_services.py,sha256=_povbV9ezjKv9TE-QE0iceuyI8aHqzJS_am1jjLlvHs,41955
16
- pyegeria/project_manager_omvs.py,sha256=j-rlfoKZArghS1NPQT_sawn8Z-qvaV4MW7mwoRNeDoA,77305
17
- pyegeria/registered_info.py,sha256=j4kNzgKVWVuDBNFr3j2bA7tGSg2GBYGMDcDQm3jvFDU,8793
18
- pyegeria/server_operations.py,sha256=iMBfIgPGqFM1TkABqFFJDt8tVUSY2qwSrRURrmWuma0,16323
19
- pyegeria/utils.py,sha256=H0mew9IRcbsEi-pZfaT9HGuPO9CMOwnhOgIltyNvqTY,5240
20
- pyegeria/valid_metadata_omvs.py,sha256=Li_XLLIXJTN9gUqB_H1WbVpnDMSgc7ne6yuzKoBW7sU,29710
21
- pyegeria-0.3.8.data/scripts/collection_viewer.py,sha256=KWyOt4XeJ5ZaPrzNeMIH-qA3BeV9G7P64kAPceMsRmk,3628
22
- pyegeria-0.3.8.data/scripts/engine_action_status.py,sha256=mosVQ5vI_vcGpi0gZDVZP8cQqgKVVf4jrJSHdsS5A9s,5359
23
- pyegeria-0.3.8.data/scripts/find_todos.py,sha256=VU6pJBJpn5O7ML2gclh1BqmppVLllVJ6lbQw-NpZsb4,5169
24
- pyegeria-0.3.8.data/scripts/get_relationship_types.py,sha256=STySVwdbSo_nMcpYlBRqmF0DNxKwrb3621GU688jhXM,4933
25
- pyegeria-0.3.8.data/scripts/get_tech_details.py,sha256=Tg4UCazeEh7He9-l7yQbCuJso7ZcpaLhdmMUT866RzU,6843
26
- pyegeria-0.3.8.data/scripts/get_tech_types.py,sha256=xZoCrnmBXa-_WXDW3tBG6dt6IxH-aeQfg07pXM2IrsA,3924
27
- pyegeria-0.3.8.data/scripts/glossary_view.py,sha256=tZvdX9Sc7Q2rL9oiEjRIFFt-saqwMs8PQ3BCgp-v710,4594
28
- pyegeria-0.3.8.data/scripts/gov_engine_status.py,sha256=ZTVbhrvGsfzmN4j9Xz95rEMTjqTNvKi9Ojvy43Z5sI8,4000
29
- pyegeria-0.3.8.data/scripts/integration_daemon_status.py,sha256=9XRQKdjmYqwfxwNoo4EUhX8vrplR0etS-5Yq89lXGMw,4575
30
- pyegeria-0.3.8.data/scripts/list_asset_types.py,sha256=09xmGyEoScq4OeSflElhI-ThJL2RUPV6mb9zRA7UzEA,3485
31
- pyegeria-0.3.8.data/scripts/multi-server_status.py,sha256=XlBaIERVqYXjHO2x18WY64Oo0fUZS1onpOLAJcIlJk0,3690
32
- pyegeria-0.3.8.data/scripts/my_todos.py,sha256=wzGKekUAT-DfzE-R8O1_byvh0trB_FMd0YvdNkTw10Q,5660
33
- pyegeria-0.3.8.data/scripts/open_todos.py,sha256=f02BXZ-LgqjUOe5QiK1SKA9RDSH9m6-u_x0HTCQAD8E,4649
34
- pyegeria-0.3.8.data/scripts/project_list_viewer.py,sha256=yTZR0KS-PTCxDjbjkIRniWk7DR1qvUzuTGQ3eN37-7o,5434
35
- pyegeria-0.3.8.data/scripts/server_status.py,sha256=BgBLjYeMDN41zk9ADyPWZFBaQX0TqiCZ9pjesnByUhM,3346
36
- pyegeria-0.3.8.data/scripts/server_status_widget.py,sha256=tyx1I7olr6e5kJF22ou9rqsztrRDdrPCq5uVa3hhPBU,3088
37
- pyegeria-0.3.8.data/scripts/view_my_profile.py,sha256=KFeGAkR-DHX01jcOPOP7HMCTrAyY3i4mQKhq1dG86vE,4605
38
- pyegeria-0.3.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
39
- pyegeria-0.3.8.dist-info/METADATA,sha256=IpiRLomvSvYR48yEKcqJN9Yi1lIsQvfIhwVLsjCrHWQ,2398
40
- pyegeria-0.3.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
41
- pyegeria-0.3.8.dist-info/top_level.txt,sha256=tHowU8jow7WJGmbr4QdIk7gJWdslRgbWBiF2lMeduLQ,9
42
- pyegeria-0.3.8.dist-info/RECORD,,