pyegeria 0.7.45.1__py3-none-any.whl → 0.8.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. 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 +6 -2
  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.1.dist-info}/METADATA +1 -1
  43. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.1.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.1.dist-info}/LICENSE +0 -0
  46. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.1.dist-info}/WHEEL +0 -0
  47. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.1.dist-info}/entry_points.txt +0 -0
@@ -15,7 +15,7 @@ from pyegeria._client import Client
15
15
 
16
16
 
17
17
  class RegisteredInfo(Client):
18
- """ Client to discover Egeria services and capabilities
18
+ """Client to discover Egeria services and capabilities
19
19
 
20
20
  Parameters:
21
21
  ----------
@@ -48,44 +48,45 @@ class RegisteredInfo(Client):
48
48
  admin_command_root: str
49
49
 
50
50
  def __init__(
51
- self,
52
- server_name: str,
53
- platform_url: str,
54
- user_id: str,
55
- user_pwd: str = None,
56
- verify_flag: bool = False,
51
+ self,
52
+ server_name: str,
53
+ platform_url: str,
54
+ user_id: str,
55
+ user_pwd: str = None,
56
+ token: str = None,
57
57
  ):
58
58
  if server_name is None:
59
59
  server_name = "NA"
60
- Client.__init__(self, server_name, platform_url,
61
- user_id, user_pwd, verify_flag)
62
- self.admin_command_root = (f"{self.platform_url}/open-metadata/platform-services/users/"
63
- f"{self.user_id}/server-platform/registered-services")
60
+ Client.__init__(self, server_name, platform_url, user_id, user_pwd)
61
+ self.admin_command_root = (
62
+ f"{self.platform_url}/open-metadata/platform-services/users/"
63
+ f"{self.user_id}/server-platform/registered-services"
64
+ )
64
65
 
65
66
  def list_registered_svcs(self, kind: str = None) -> list | str:
66
- """ Get the registered services for the OMAG Server Platform
67
-
68
- Parameters
69
- ----------
70
- kind: str, optional
71
- The kind of service to return information for. If None, then provide back a list of service kinds.
72
-
73
- Returns
74
- -------
75
- dict | str
76
- Returns JSON dict of the requested information or a help string if input is 'help'.
77
- Raises
78
- ------
79
- InvalidParameterException
80
- If the response code is not 200.
81
- PropertyServerException:
82
- Raised by the server when an issue arises in processing a valid request
83
- NotAuthorizedException:
84
- The principle specified by the user_id does not have authorization for the requested action
85
-
86
- """
67
+ """Get the registered services for the OMAG Server Platform
68
+
69
+ Parameters
70
+ ----------
71
+ kind: str, optional
72
+ The kind of service to return information for. If None, then provide back a list of service kinds.
73
+
74
+ Returns
75
+ -------
76
+ dict | str
77
+ Returns JSON dict of the requested information or a help string if input is 'help'.
78
+ Raises
79
+ ------
80
+ InvalidParameterException
81
+ If the response code is not 200.
82
+ PropertyServerException:
83
+ Raised by the server when an issue arises in processing a valid request
84
+ NotAuthorizedException:
85
+ The principle specified by the user_id does not have authorization for the requested action
86
+
87
+ """
87
88
  if kind is None or kind == "help":
88
- return ("""
89
+ return """
89
90
  The kinds of services that you can get more information include:
90
91
  all.....................lists all registered services
91
92
  access-services.........lists all registered access services
@@ -97,7 +98,7 @@ class RegisteredInfo(Client):
97
98
 
98
99
  Pass in a parameter from the left-hand column into the function to
99
100
  get more details on the specified service category.
100
- """)
101
+ """
101
102
  if kind == "all":
102
103
  url = f"{self.admin_command_root}"
103
104
  else:
@@ -107,55 +108,56 @@ class RegisteredInfo(Client):
107
108
  return response.json().get("services", "No services found")
108
109
 
109
110
  def list_severity_definitions(self) -> list | str:
110
- """ Get the registered severities for the OMAG Server
111
-
112
- Parameters
113
- ----------
114
-
115
- Returns
116
- -------
117
- dict | str
118
- Return a dictionary containing the registered services for the specified platform.
119
- Raises
120
- ------
121
- InvalidParameterException
122
- If the response code is not 200.
123
- PropertyServerException:
124
- Raised by the server when an issue arises in processing a valid request
125
- NotAuthorizedException:
126
- The principle specified by the user_id does not have authorization for the requested action
111
+ """Get the registered severities for the OMAG Server
112
+
113
+ Parameters
114
+ ----------
115
+
116
+ Returns
117
+ -------
118
+ dict | str
119
+ Return a dictionary containing the registered services for the specified platform.
120
+ Raises
121
+ ------
122
+ InvalidParameterException
123
+ If the response code is not 200.
124
+ PropertyServerException:
125
+ Raised by the server when an issue arises in processing a valid request
126
+ NotAuthorizedException:
127
+ The principle specified by the user_id does not have authorization for the requested action
127
128
 
128
129
  """
129
- url = (f"{self.platform_url}/servers/{self.server_name}/open-metadata/repository-services"
130
- f"/users/{self.user_id}/audit-log/severity-definitions"
131
- )
130
+ url = (
131
+ f"{self.platform_url}/servers/{self.server_name}/open-metadata/repository-services"
132
+ f"/users/{self.user_id}/audit-log/severity-definitions"
133
+ )
132
134
  response = self.make_request("GET", url)
133
135
  return response.json().get("severities", "No severities found")
134
136
 
135
137
  def list_asset_types(self, server: str = None) -> list | str:
136
- """ Get the registered severities for the OMAG Server
137
-
138
- Parameters
139
- ----------
140
- server: str, optional, default = None
141
-
142
- Returns
143
- -------
144
- dict | str
145
- Returns a list of the asset types.
146
-
147
- Raises
148
- ------
149
- InvalidParameterException
150
- If the response code is not 200.
151
- PropertyServerException:
152
- Raised by the server when an issue arises in processing a valid request
153
- NotAuthorizedException:
154
- The principle specified by the user_id does not have authorization for the requested action
138
+ """Get the registered severities for the OMAG Server
139
+
140
+ Parameters
141
+ ----------
142
+ server: str, optional, default = None
143
+
144
+ Returns
145
+ -------
146
+ dict | str
147
+ Returns a list of the asset types.
148
+
149
+ Raises
150
+ ------
151
+ InvalidParameterException
152
+ If the response code is not 200.
153
+ PropertyServerException:
154
+ Raised by the server when an issue arises in processing a valid request
155
+ NotAuthorizedException:
156
+ The principle specified by the user_id does not have authorization for the requested action
155
157
 
156
158
  """
157
159
  server = self.server_name if server is None else server
158
160
  url = f"{self.platform_url}/servers/{server}/api/open-metadata/asset-catalog/assets/types"
159
161
 
160
162
  response = self.make_request("GET", url)
161
- return response.json().get('types', 'no types found')
163
+ return response.json().get("types", "no types found")