pyegeria 0.7.45.1__py3-none-any.whl → 0.8.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 (47) hide show
  1. examples/widgets/cat/list_cert_types.py +61 -43
  2. examples/widgets/cat/list_projects.py +1 -1
  3. examples/widgets/my/my_profile_actions.py +51 -32
  4. examples/widgets/ops/engine_actions.py +35 -23
  5. examples/widgets/ops/integration_daemon_actions.py +51 -32
  6. examples/widgets/tech/get_element_info.py +63 -38
  7. examples/widgets/tech/get_guid_info.py +50 -27
  8. examples/widgets/tech/list_asset_types.py +33 -23
  9. examples/widgets/tech/list_elements.py +44 -34
  10. examples/widgets/tech/list_elements_x.py +69 -49
  11. examples/widgets/tech/list_registered_services.py +44 -24
  12. examples/widgets/tech/list_related_specification.py +70 -45
  13. examples/widgets/tech/list_relationship_types.py +50 -31
  14. examples/widgets/tech/list_valid_metadata_values.py +57 -28
  15. examples/widgets/tech/x_list_related_elements.py +54 -34
  16. pyegeria/Xloaded_resources_omvs.py +43 -41
  17. pyegeria/__init__.py +5 -1
  18. pyegeria/_client.py +142 -102
  19. pyegeria/_deprecated_gov_engine.py +218 -167
  20. pyegeria/action_author_omvs.py +107 -88
  21. pyegeria/asset_catalog_omvs.py +467 -395
  22. pyegeria/automated_curation_omvs.py +2 -2
  23. pyegeria/classification_manager_omvs.py +3 -9
  24. pyegeria/collection_manager_omvs.py +1957 -1519
  25. pyegeria/core_omag_server_config.py +310 -192
  26. pyegeria/egeria_cat_client.py +88 -0
  27. pyegeria/egeria_config_client.py +37 -0
  28. pyegeria/egeria_my_client.py +47 -0
  29. pyegeria/egeria_ops_client.py +67 -0
  30. pyegeria/egeria_tech_client.py +77 -0
  31. pyegeria/feedback_manager_omvs.py +633 -631
  32. pyegeria/full_omag_server_config.py +330 -158
  33. pyegeria/glossary_browser_omvs.py +927 -474
  34. pyegeria/glossary_manager_omvs.py +1033 -543
  35. pyegeria/my_profile_omvs.py +714 -574
  36. pyegeria/platform_services.py +228 -176
  37. pyegeria/project_manager_omvs.py +1158 -903
  38. pyegeria/registered_info.py +76 -74
  39. pyegeria/runtime_manager_omvs.py +749 -670
  40. pyegeria/server_operations.py +123 -85
  41. pyegeria/valid_metadata_omvs.py +268 -168
  42. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.0.dist-info}/METADATA +1 -1
  43. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.0.dist-info}/RECORD +46 -42
  44. pyegeria/tech_guids_31-08-2024 14:33.py +0 -79
  45. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.0.dist-info}/LICENSE +0 -0
  46. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.0.dist-info}/WHEEL +0 -0
  47. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.0.dist-info}/entry_points.txt +0 -0
@@ -16,7 +16,7 @@ from pyegeria import Platform, AutomatedCuration
16
16
  import asyncio
17
17
 
18
18
 
19
- class GovernanceAuthor(AutomatedCuration):
19
+ class ActionAuthor(AutomatedCuration):
20
20
  """
21
21
  Client to issue Curation requests.
22
22
 
@@ -40,48 +40,56 @@ class GovernanceAuthor(AutomatedCuration):
40
40
  """
41
41
 
42
42
  def __init__(
43
- self,
44
- server_name: str,
45
- platform_url: str,
46
- user_id: str,
47
- user_pwd: str = None,
48
- verify_flag: bool = False,
49
- ):
50
- AutomatedCuration.__init__(self, server_name, platform_url, user_id,
51
- user_pwd, verify_flag)
43
+ self,
44
+ server_name: str,
45
+ platform_url: str,
46
+ user_id: str,
47
+ user_pwd: str = None,
48
+ token: str = None,
49
+ ):
50
+ AutomatedCuration.__init__(
51
+ self, server_name, platform_url, user_id, user_pwd, token=token
52
+ )
52
53
  self.cur_command_root = f"{platform_url}/servers/"
53
54
 
54
- async def _async_create_element_from_template(self, body:str, server:str = None)-> str:
55
- """ Create a metadata element from a template. Async version.
56
- Parameters
57
- ----------
58
- body : str
59
- The json body used to instantiate the template.
60
- server : str, optional
61
- The name of the server to get governance engine summaries from. If not provided, the default server name will be used.
62
-
63
- Returns
64
- -------
65
- Response
66
- The guid of the resulting element
55
+ async def _async_create_element_from_template(
56
+ self, body: str, server: str = None
57
+ ) -> str:
58
+ """Create a metadata element from a template. Async version.
59
+ Parameters
60
+ ----------
61
+ body : str
62
+ The json body used to instantiate the template.
63
+ server : str, optional
64
+ The name of the server to get governance engine summaries from. If not provided, the default server name will be used.
65
+
66
+ Returns
67
+ -------
68
+ Response
69
+ The guid of the resulting element
67
70
 
68
71
  """
69
72
  if server is None:
70
- server = self.server_name
73
+ server = self.server_name
71
74
 
72
75
  url = f"{self.platform_url}/servers/{server}/open-metadata/automate-curation/catalog-templates/new-element"
73
76
 
74
77
  response = await self._async_make_request("POST", url, body)
75
78
  return response.json().get("guid")
76
79
 
77
-
78
- async def _async_find_gov_action_types(self, search_string: str='*', server_name:str=None)-> dict | str:
80
+ async def _async_find_gov_action_types(
81
+ self, search_string: str = "*", server_name: str = None
82
+ ) -> dict | str:
79
83
  pass
80
84
 
81
- async def _async_get_gov_action_types_by_name(self, server_name:str=None) -> dict | str:
85
+ async def _async_get_gov_action_types_by_name(
86
+ self, server_name: str = None
87
+ ) -> dict | str:
82
88
  pass
83
89
 
84
- async def _async_find_gov_action_types_by_guid(self, guid: str, server_name:str=None) -> dict | str:
90
+ async def _async_find_gov_action_types_by_guid(
91
+ self, guid: str, server_name: str = None
92
+ ) -> dict | str:
85
93
  pass
86
94
 
87
95
  # Governance Action Processes
@@ -101,86 +109,97 @@ class GovernanceAuthor(AutomatedCuration):
101
109
  # async def _async_remove_gov_action_process(self, process_id: str, server_name: str = None) -> None:
102
110
  # pass
103
111
 
104
- async def _async_find_gov_action_processes(self, search_string:str, server_name:str=None) -> dict | str:
112
+ async def _async_find_gov_action_processes(
113
+ self, search_string: str, server_name: str = None
114
+ ) -> dict | str:
105
115
  pass
106
116
 
107
- async def _async_get_gov_action_processes_by_name(self, name:str, server_name:str=None) -> dict | str:
117
+ async def _async_get_gov_action_processes_by_name(
118
+ self, name: str, server_name: str = None
119
+ ) -> dict | str:
108
120
  pass
109
121
 
110
- async def _async_get_gov_action_processes_by_guid(self, guid:str, server_name:str=None) -> dict | str:
122
+ async def _async_get_gov_action_processes_by_guid(
123
+ self, guid: str, server_name: str = None
124
+ ) -> dict | str:
111
125
  pass
112
126
 
113
- async def _async_get_gov_action_process_graph(self, guid:str, server_name:str=None) -> dict | str:
127
+ async def _async_get_gov_action_process_graph(
128
+ self, guid: str, server_name: str = None
129
+ ) -> dict | str:
114
130
  pass
115
131
 
116
- # Process Steps
117
- # async def _async_create_gov_action_process_step(self, body: dict, server_name:str=None) -> None:
118
- # pass
119
- #
120
- # async def _async_update_gov_action_process_step(self, guid: str, body: dict, server_name:str=None) -> None:
121
- # pass
122
- #
123
- # async def _async_remove_gov_action_process_step(self, guid: str, server_name:str=None) -> None:
124
- # pass
125
- #
126
- #
127
- # async def _async_find_gov_action_process_step(self, search_string: str, server_name: str = None) -> dict | str:
128
- # pass
129
- #
130
- #
131
- # async def _async_get_gov_action_process_step_by_name(self, name: str, server_name: str = None) -> dict | str:
132
- # pass
133
- #
134
- #
135
- # async def _async_get_gov_action_process_step_by_guid(self, guid: str, server_name: str = None) -> dict | str:
136
- # pass
137
- #
138
- #
139
- # async def _async_setup_first_action_process_step(self, process_guid: str, process_step_guid:str,
140
- # server_name: str = None) -> dict | str:
141
- # pass
142
- #
143
- # async def _async_get_first_action_process_step(self, process_guid: str, server_name: str = None) -> dict | str:
144
- # pass
145
- #
146
- # async def _async_remove_first_action_process_step(self, process_guid: str, server_name: str = None) -> None:
147
- # pass
148
- #
149
- # async def _async_setup_next_action_process_step(self, process_guid: str, process_step_guid:str,
150
- # next_process_step_guid:str, server_name: str = None) -> None:
151
- # pass
152
- #
153
- #
154
- # async def _async_update_next_action_process_step(self, guid: str, body: dict, server_name: str = None) -> None:
155
- # pass
156
- #
157
- #
158
- # async def _async_remove_next_action_process_step(self, guid: str, server_name: str = None) -> None:
159
- # pass
160
- #
161
- #
162
- # async def _async_get_next_action_process_step(self, guid: str, server_name: str = None) -> dict | str:
163
- # pass
132
+ # Process Steps
133
+ # async def _async_create_gov_action_process_step(self, body: dict, server_name:str=None) -> None:
134
+ # pass
135
+ #
136
+ # async def _async_update_gov_action_process_step(self, guid: str, body: dict, server_name:str=None) -> None:
137
+ # pass
138
+ #
139
+ # async def _async_remove_gov_action_process_step(self, guid: str, server_name:str=None) -> None:
140
+ # pass
141
+ #
142
+ #
143
+ # async def _async_find_gov_action_process_step(self, search_string: str, server_name: str = None) -> dict | str:
144
+ # pass
145
+ #
146
+ #
147
+ # async def _async_get_gov_action_process_step_by_name(self, name: str, server_name: str = None) -> dict | str:
148
+ # pass
149
+ #
150
+ #
151
+ # async def _async_get_gov_action_process_step_by_guid(self, guid: str, server_name: str = None) -> dict | str:
152
+ # pass
153
+ #
154
+ #
155
+ # async def _async_setup_first_action_process_step(self, process_guid: str, process_step_guid:str,
156
+ # server_name: str = None) -> dict | str:
157
+ # pass
158
+ #
159
+ # async def _async_get_first_action_process_step(self, process_guid: str, server_name: str = None) -> dict | str:
160
+ # pass
161
+ #
162
+ # async def _async_remove_first_action_process_step(self, process_guid: str, server_name: str = None) -> None:
163
+ # pass
164
+ #
165
+ # async def _async_setup_next_action_process_step(self, process_guid: str, process_step_guid:str,
166
+ # next_process_step_guid:str, server_name: str = None) -> None:
167
+ # pass
168
+ #
169
+ #
170
+ # async def _async_update_next_action_process_step(self, guid: str, body: dict, server_name: str = None) -> None:
171
+ # pass
172
+ #
173
+ #
174
+ # async def _async_remove_next_action_process_step(self, guid: str, server_name: str = None) -> None:
175
+ # pass
176
+ #
177
+ #
178
+ # async def _async_get_next_action_process_step(self, guid: str, server_name: str = None) -> dict | str:
179
+ # pass
164
180
 
165
181
  # Engine Actions
166
182
 
167
- async def _async_initiate_Engine_action(self, gov_eng_name: str, body: dict, server_name: str = None) -> None:
183
+ async def _async_initiate_Engine_action(
184
+ self, gov_eng_name: str, body: dict, server_name: str = None
185
+ ) -> None:
168
186
  pass
169
187
 
170
-
171
- async def _async_initiate_gov_action_type(self, body: dict, server_name: str = None) -> None:
188
+ async def _async_initiate_gov_action_type(
189
+ self, body: dict, server_name: str = None
190
+ ) -> None:
172
191
  pass
173
- #implement
192
+
193
+ # implement
174
194
 
175
195
  async def _async_initiate_gov_action_processes(self):
176
196
  pass
177
197
 
178
198
 
179
-
180
-
181
-
182
199
  if __name__ == "__main__":
183
- p = AutomatedCuration("meow", "https://127.0.0.1:9443", "garygeeke", verify_flag=False)
200
+ p = AutomatedCuration(
201
+ "meow", "https://127.0.0.1:9443", "garygeeke", verify_flag=False
202
+ )
184
203
  response = p.get_active_service_list_for_server()
185
204
  out = response.json()["result"]
186
205
  print(out)