pyegeria 0.8.4.4__py3-none-any.whl → 0.8.4.7__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/__init__.py CHANGED
@@ -61,7 +61,6 @@ from .collection_manager_omvs import CollectionManager
61
61
  from .project_manager_omvs import ProjectManager
62
62
  from .valid_metadata_omvs import ValidMetadataManager
63
63
  from .asset_catalog_omvs import AssetCatalog
64
- from .Xloaded_resources_omvs import LoadedResources
65
64
  from ._deprecated_gov_engine import GovEng
66
65
  from .runtime_manager_omvs import RuntimeManager
67
66
  from .action_author_omvs import ActionAuthor
@@ -180,3 +179,6 @@ INTEGRATION_GUIDS["OpenLineageKafkaListener"] = "980b989c-de78-4e6a-a58d-51049d7
180
179
  INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
181
180
  INTEGRATION_GUIDS["ContentPacksCataloguer"] = "6bb2181e-7724-4515-ba3c-877cded55980"
182
181
  INTEGRATION_GUIDS["OpenLineageCataloguer"] = "3347ac71-8dd2-403a-bc16-75a71be64bd7"
182
+
183
+ if __name__ == "__main__":
184
+ print("Main-Init")
pyegeria/_client.py CHANGED
@@ -10,6 +10,7 @@ import asyncio
10
10
  import inspect
11
11
  import json
12
12
  import os
13
+
13
14
  import httpx
14
15
  from httpx import AsyncClient, Response
15
16
 
@@ -21,10 +22,7 @@ from pyegeria._exceptions import (
21
22
  )
22
23
  from pyegeria._globals import (
23
24
  max_paging_size,
24
- TEMPLATE_GUIDS,
25
- INTEGRATION_GUIDS,
26
25
  enable_ssl_check,
27
- disable_ssl_warnings,
28
26
  )
29
27
  from pyegeria._validators import (
30
28
  validate_name,
@@ -655,9 +653,4 @@ class Client:
655
653
 
656
654
 
657
655
  if __name__ == "__main__":
658
- try:
659
- connection = Client(
660
- "active-metadata-store", "https://127.0.0.1:9443", "garygeeke", "foo"
661
- )
662
- except Exception as e:
663
- print(e)
656
+ print("Main-__client")
@@ -197,9 +197,4 @@ class ActionAuthor(AutomatedCuration):
197
197
 
198
198
 
199
199
  if __name__ == "__main__":
200
- p = AutomatedCuration(
201
- "meow", "https://127.0.0.1:9443", "garygeeke", verify_flag=False
202
- )
203
- response = p.get_active_service_list_for_server()
204
- out = response.json()["result"]
205
- print(out)
200
+ print("Main-Action Author")
@@ -728,12 +728,4 @@ class AssetCatalog(Client):
728
728
 
729
729
 
730
730
  if __name__ == "__main__":
731
- p = AssetCatalog(
732
- "active-metadata-store",
733
- "https://127.0.0.1:9443",
734
- "garygeeke",
735
- verify_flag=False,
736
- )
737
- response = p.get_assets_by_metadata_collection_id()
738
- out = response.json()
739
- print(out)
731
+ print("Main-asset-catalog")
@@ -4071,3 +4071,7 @@ class AutomatedCuration(Client):
4071
4071
  )
4072
4072
  )
4073
4073
  return response
4074
+
4075
+
4076
+ if __name__ == "__main__":
4077
+ print("Main-Automated Curation")
@@ -5036,3 +5036,7 @@ class ClassificationManager(Client):
5036
5036
  time_out,
5037
5037
  )
5038
5038
  )
5039
+
5040
+
5041
+ if __name__ == "__main__":
5042
+ print("Main-Classification Manager")
@@ -10,9 +10,6 @@ import time
10
10
 
11
11
  # import json
12
12
  from pyegeria._client import Client
13
- from pyegeria._exceptions import (
14
- InvalidParameterException,
15
- )
16
13
  from pyegeria._validators import (
17
14
  validate_guid,
18
15
  validate_search_string,
@@ -51,14 +48,7 @@ class CollectionManager(Client):
51
48
  token: str = None,
52
49
  ):
53
50
  self.command_base: str = f"/api/open-metadata/collection-manager/collections"
54
- Client.__init__(
55
- self,
56
- server_name,
57
- platform_url,
58
- user_id=user_id,
59
- user_pwd=user_pwd,
60
- token=token,
61
- )
51
+ Client.__init__(self, server_name, platform_url, user_id, user_pwd, token)
62
52
 
63
53
  #
64
54
  # Retrieving Collections - https://egeria-project.org/concepts/collection
@@ -2728,13 +2718,13 @@ class CollectionManager(Client):
2728
2718
  return
2729
2719
 
2730
2720
  async def _async_get_member_list(
2731
- self, root_collection_name: str, server_name: str = None
2721
+ self, root_collection_guid: str, server_name: str = None
2732
2722
  ) -> list | bool:
2733
2723
  """Get the member list for the collection - async version.
2734
2724
  Parameters
2735
2725
  ----------
2736
- root_collection_name : str
2737
- The name of the root collection.
2726
+ root_collection_guid : str
2727
+ The unique GUID of the root collection.
2738
2728
 
2739
2729
  server_name : str, optional
2740
2730
  The name of the server. If not provided, the default server name will be used.
@@ -2753,18 +2743,10 @@ class CollectionManager(Client):
2753
2743
  if server_name is None:
2754
2744
  server_name = self.server_name
2755
2745
  # first find the guid for the collection we are using as root
2756
- root_guids = await self._async_get_collections_by_name(root_collection_name)
2757
- if type(root_guids) is str:
2758
- return False
2759
- if len(root_guids) != 1:
2760
- raise InvalidParameterException(
2761
- "root_collection_name must have exactly one root collection for this method"
2762
- )
2763
- root = root_guids[0]["elementHeader"]["guid"]
2764
2746
 
2765
2747
  # now find the members of the collection
2766
2748
  member_list = []
2767
- members = await self._async_get_collection_members(root)
2749
+ members = await self._async_get_collection_members(root_collection_guid)
2768
2750
  if type(members) is str:
2769
2751
  return False
2770
2752
  # finally, construct a list of member information
@@ -2785,13 +2767,13 @@ class CollectionManager(Client):
2785
2767
  return member_list
2786
2768
 
2787
2769
  def get_member_list(
2788
- self, root_collection_name: str, server_name: str = None
2770
+ self, root_collection_guid: str, server_name: str = None
2789
2771
  ) -> list | bool:
2790
2772
  """Get the member list for the collection.
2791
2773
  Parameters
2792
2774
  ----------
2793
- root_collection_name : str
2794
- The name of the root collection.
2775
+ root_collection_guid : str
2776
+ The GUID of the root collection.
2795
2777
 
2796
2778
  server_name : str, optional
2797
2779
  The name of the server. If not provided, the default server name will be used.
@@ -2809,6 +2791,10 @@ class CollectionManager(Client):
2809
2791
  """
2810
2792
  loop = asyncio.get_event_loop()
2811
2793
  resp = loop.run_until_complete(
2812
- self._async_get_member_list(root_collection_name, server_name)
2794
+ self._async_get_member_list(root_collection_guid, server_name)
2813
2795
  )
2814
2796
  return resp
2797
+
2798
+
2799
+ if __name__ == "__main__":
2800
+ print("Main-Collection Manager")
@@ -2650,3 +2650,7 @@ class CoreServerConfig(Client):
2650
2650
  """
2651
2651
  url = f"{self.admin_command_root}/stores/placeholder-variables"
2652
2652
  self.make_request("DELETE", url)
2653
+
2654
+
2655
+ if __name__ == "__main__":
2656
+ print("Main-Core OMAG server config")
@@ -6,9 +6,8 @@ Script to create a new file to initiate tech guids.
6
6
  These GUIDS should be copied into the __init__.py.
7
7
 
8
8
  """
9
- import json
10
- from rich import print, print_json
11
9
  from datetime import datetime
10
+
12
11
  from rich.console import Console
13
12
 
14
13
  from pyegeria import AutomatedCuration, ServerOps
@@ -16,12 +15,17 @@ from pyegeria import AutomatedCuration, ServerOps
16
15
  console = Console(width=200)
17
16
 
18
17
 
19
- def build_global_guid_lists(server:str = "view-server",url: str = "https://localhost:9443",
20
- user_id: str = "erinoverview", user_pwd:str = "secret") -> None:
18
+ def build_global_guid_lists(
19
+ server: str = "view-server",
20
+ url: str = "https://localhost:9443",
21
+ user_id: str = "erinoverview",
22
+ user_pwd: str = "secret",
23
+ ) -> None:
24
+ """This is a utility function that builds arrays of guid lists for Templates & Connectors"""
25
+
21
26
  cur_time = datetime.now().strftime("%d-%m-%Y %H:%M")
22
27
  file_name = f"./tech_guids_{cur_time}.py"
23
- a_client = AutomatedCuration(server, url, user_id=user_id,
24
- user_pwd=user_pwd)
28
+ a_client = AutomatedCuration(server, url, user_id=user_id, user_pwd=user_pwd)
25
29
  token = a_client.create_egeria_bearer_token()
26
30
  # get all technology types
27
31
 
@@ -43,48 +47,59 @@ def build_global_guid_lists(server:str = "view-server",url: str = "https://local
43
47
 
44
48
  if type(templates) is list:
45
49
  for template in templates:
46
- template_name = template.get("name", None).replace(' template', '')
50
+ template_name = template.get("name", None).replace(
51
+ " template", ""
52
+ )
47
53
  template_guid = template["relatedElement"]["guid"]
48
54
  out = f"TEMPLATE_GUIDS['{template_name}'] = '{template_guid}'\n"
49
- console.print(f"Added {template_name} template with GUID {template_guid}")
55
+ console.print(
56
+ f"Added {template_name} template with GUID {template_guid}"
57
+ )
50
58
  f.write(out)
51
59
  else:
52
60
  console.print(f"{display_name} technology type has no templates")
53
61
  # Now find the integration connector guids
54
- resource_list = details.get('resourceList', ' ')
62
+ resource_list = details.get("resourceList", " ")
55
63
  if type(resource_list) is list:
56
64
  for resource in resource_list:
57
- resource_guid = resource['relatedElement']['guid']
58
- resource_type = resource['relatedElement']['type']['typeName']
65
+ resource_guid = resource["relatedElement"]["guid"]
66
+ resource_type = resource["relatedElement"]["type"]["typeName"]
59
67
  if resource_type == "IntegrationConnector":
60
- if resource['resourceUse'] == "Catalog Resource":
61
- int_con = resource['relatedElement']['uniqueName']
62
- int_con_name = int_con.split(':')[-1].replace('IntegrationConnector', '')
68
+ if resource["resourceUse"] == "Catalog Resource":
69
+ int_con = resource["relatedElement"]["uniqueName"]
70
+ int_con_name = int_con.split(":")[-1].replace(
71
+ "IntegrationConnector", ""
72
+ )
63
73
 
64
74
  out = f"INTEGRATION_GUIDS['{int_con_name}'] = '{resource_guid}'\n"
65
- console.print(f"Added {int_con_name} integration connector with GUID {resource_guid}")
75
+ console.print(
76
+ f"Added {int_con_name} integration connector with GUID {resource_guid}"
77
+ )
66
78
  f.write(out)
67
79
  else:
68
- console.print(f"{display_name} technology type has no integration connectors")
80
+ console.print(
81
+ f"{display_name} technology type has no integration connectors"
82
+ )
69
83
  #
70
84
  # Ok - now lets harvest integration connectors using get_integration_daemon_status from ServerOps
71
85
  # Assume that integration daemon called integration-daemon
72
86
  #
73
- s_client = ServerOps('integration-daemon', url, user_id=user_id,
74
- user_pwd=user_pwd)
87
+ s_client = ServerOps(
88
+ "integration-daemon", url, user_id=user_id, user_pwd=user_pwd
89
+ )
75
90
  integ_status = s_client.get_integration_daemon_status()
76
91
 
77
92
  if type(integ_status) is dict:
78
- connections = integ_status['integrationConnectorReports']
93
+ connections = integ_status["integrationConnectorReports"]
79
94
  for connection in connections:
80
- int_con_name = connection['connectorName']
81
- resource_guid = connection['connectorGUID']
95
+ int_con_name = connection["connectorName"]
96
+ resource_guid = connection["connectorGUID"]
82
97
  out = f"INTEGRATION_GUIDS['{int_con_name}'] = '{resource_guid}'\n"
83
- console.print(f"Added {int_con_name} integration connector with GUID {resource_guid}")
98
+ console.print(
99
+ f"Added {int_con_name} integration connector with GUID {resource_guid}"
100
+ )
84
101
  f.write(out)
85
102
 
86
103
 
87
-
88
-
89
104
  if __name__ == "__main__":
90
- build_global_guid_lists()
105
+ build_global_guid_lists()
@@ -67,3 +67,7 @@ class EgeriaCat(
67
67
  ProjectManager.__init__(
68
68
  self, server_name, platform_url, user_id, user_pwd, token
69
69
  )
70
+
71
+
72
+ if __name__ == "__main__":
73
+ print("Egeria Cat Client")
@@ -35,3 +35,7 @@ class EgeriaConfig(FullServerConfig):
35
35
  self, server_name: str, platform_url: str, user_id: str, user_pwd: str = None
36
36
  ):
37
37
  FullServerConfig.__init__(self, server_name, platform_url, user_id, user_pwd)
38
+
39
+
40
+ if __name__ == "__main__":
41
+ print("Main-Config Client")
@@ -45,3 +45,7 @@ class EgeriaMy(MyProfile, FeedbackManager):
45
45
  FeedbackManager.__init__(
46
46
  self, server_name, platform_url, user_id, user_pwd, token
47
47
  )
48
+
49
+
50
+ if __name__ == "__main__":
51
+ print("Main-Egeria My Client")
@@ -69,3 +69,7 @@ class EgeriaOps(RuntimeManager, EgeriaConfig, ServerOps, EgeriaMy):
69
69
  EgeriaMy.__init__(
70
70
  self, server_name, platform_url, user_id, user_pwd, token=token
71
71
  )
72
+
73
+
74
+ if __name__ == "__main__":
75
+ print("Main-Ops Client")
@@ -75,3 +75,7 @@ class EgeriaTech(
75
75
  ValidMetadataManager.__init__(
76
76
  self, server_name, platform_url, user_id, user_pwd, token
77
77
  )
78
+
79
+
80
+ if __name__ == "__main__":
81
+ print("Main-Tech Client")
@@ -4807,3 +4807,7 @@ class FeedbackManager(Client):
4807
4807
  )
4808
4808
  )
4809
4809
  return response
4810
+
4811
+
4812
+ if __name__ == "__main__":
4813
+ print("Main-Feedback Manager")
@@ -1327,3 +1327,7 @@ class FullServerConfig(CoreServerConfig):
1327
1327
  def remove_lineage_warehouse_services(self, lineage_server: str = None) -> None:
1328
1328
  url = f"{self.admin_command_root}/servers/{lineage_server}/lineage-warehouse/configuration"
1329
1329
  self.make_request("DELETE", url)
1330
+
1331
+
1332
+ if __name__ == "__main__":
1333
+ print("Main-Full OMAG Server Config")
@@ -2658,3 +2658,7 @@ class GlossaryBrowser(Client):
2658
2658
 
2659
2659
  response = await self._async_make_request("POST", url, body)
2660
2660
  return response.json().get("elementList", "No terms found")
2661
+
2662
+
2663
+ if __name__ == "__main__":
2664
+ print("Main-Glosssary Browser")
@@ -3386,3 +3386,7 @@ class GlossaryManager(GlossaryBrowser):
3386
3386
  )
3387
3387
 
3388
3388
  return response
3389
+
3390
+
3391
+ if __name__ == "__main__":
3392
+ print("Main-Glossary Manager")
@@ -1111,3 +1111,7 @@ class MyProfile(Client):
1111
1111
  )
1112
1112
  )
1113
1113
  return
1114
+
1115
+
1116
+ if __name__ == "__main__":
1117
+ print("Main-My Profile")
@@ -1120,7 +1120,4 @@ class Platform(Client):
1120
1120
 
1121
1121
 
1122
1122
  if __name__ == "__main__":
1123
- p = Platform("meow", "https://127.0.0.1:9443", "garygeeke")
1124
- response = p.get_known_servers()
1125
-
1126
- print(response)
1123
+ print("Main-Platform Services")
@@ -1935,3 +1935,7 @@ class ProjectManager(Client):
1935
1935
  )
1936
1936
  )
1937
1937
  return
1938
+
1939
+
1940
+ if __name__ == "__main__":
1941
+ print("Main-Project Manager")
@@ -161,3 +161,7 @@ class RegisteredInfo(Client):
161
161
 
162
162
  response = self.make_request("GET", url)
163
163
  return response.json().get("types", "no types found")
164
+
165
+
166
+ if __name__ == "__main__":
167
+ print("Main-Registered Info")
@@ -1074,3 +1074,7 @@ class RuntimeManager(Client):
1074
1074
 
1075
1075
  """
1076
1076
  pass
1077
+
1078
+
1079
+ if __name__ == "__main__":
1080
+ print("Main-Runtime Manager")
@@ -461,7 +461,8 @@ class ServerOps(Platform):
461
461
 
462
462
 
463
463
  if __name__ == "__main__":
464
- p = ServerOps("meow", "https://127.0.0.1:9443", "garygeeke", verify_flag=False)
465
- response = p.get_active_service_list_for_server()
466
- out = response.json()["result"]
467
- print(out)
464
+ # p = ServerOps("meow", "https://127.0.0.1:9443", "garygeeke", verify_flag=False)
465
+ # response = p.get_active_service_list_for_server()
466
+ # out = response.json()["result"]
467
+ # print(out)
468
+ print("Main-Server Operations")
pyegeria/utils.py CHANGED
@@ -125,9 +125,7 @@ def print_response(response):
125
125
  print(" ")
126
126
 
127
127
 
128
- def print_unexpected_response(
129
- server_name, platform_name, platform_url, response
130
- ):
128
+ def print_unexpected_response(server_name, platform_name, platform_url, response):
131
129
  """
132
130
 
133
131
  Args:
@@ -178,7 +176,7 @@ def get_last_guid(guids):
178
176
 
179
177
 
180
178
  def body_slimmer(body: dict) -> dict:
181
- """ body_slimmer is a little function to remove unused keys from a dict
179
+ """body_slimmer is a little function to remove unused keys from a dict
182
180
 
183
181
  Parameters
184
182
  ----------
@@ -192,3 +190,6 @@ def body_slimmer(body: dict) -> dict:
192
190
  slimmed = {key: value for key, value in body.items() if value}
193
191
  return slimmed
194
192
 
193
+
194
+ if __name__ == "__main__":
195
+ print("Main-Utils")
@@ -1038,3 +1038,7 @@ class ValidMetadataManager(Client):
1038
1038
  self._async_get_typedef_by_name(entity_type, server_name)
1039
1039
  )
1040
1040
  return resp
1041
+
1042
+
1043
+ if __name__ == "__main__":
1044
+ print("Main-Valid Metadata Manager")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.8.4.4
3
+ Version: 0.8.4.7
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -63,42 +63,40 @@ examples/widgets/tech/list_relationship_types.py,sha256=BlVzrPznZXqMVLN2-2vYEVRG
63
63
  examples/widgets/tech/list_tech_templates.py,sha256=RiyA8a4fIL9BGeGf37Bkk471mK5ECkDJMN9QVNReC1M,6192
64
64
  examples/widgets/tech/list_valid_metadata_values.py,sha256=N3D0_BmREPszgde3uvvYdfzq7DJ46uMOv2t1vtncGsw,6333
65
65
  examples/widgets/tech/x_list_related_elements.py,sha256=qBsf1619cecaMCTzG0MG22fAT32WNH2Z3CXrjo9z-5Y,5853
66
- pyegeria/Xloaded_resources_omvs.py,sha256=xNLlmEXG8njFyiN08WKkT3D_9iLWzObM_2u5GTirjEo,3276
67
- pyegeria/__init__.py,sha256=WyvV-B3BzaMjGBcvrL4hGttuaXcMEpJ3FTQvXsJvqF8,9498
68
- pyegeria/_client.py,sha256=qfwwkahIlFT0zxuIzFQFuPJPkMf-W4kgYyM9KVQqJws,26164
66
+ pyegeria/__init__.py,sha256=D9faohPWxwMT2yfGz5SDzh37pTFq8WJwkHHLIAxmFU8,9497
67
+ pyegeria/_client.py,sha256=pzndEJKN0tcnT7gQFa0r3pzXm9pK4zJKANZOXO79aOs,25949
69
68
  pyegeria/_deprecated_gov_engine.py,sha256=dWNcwVsE5__dF2u4QiIyQrssozzzOjBbLld8MdpmVCQ,17264
70
69
  pyegeria/_exceptions.py,sha256=NJ7vAhmvusK1ENvY2MMrBB6A6TgpYjzS9QJxFH56b8c,18470
71
70
  pyegeria/_globals.py,sha256=1Uc8392wjbiVN5L__RzxC1-U97RMXj77_iUsMSgeAjQ,638
72
71
  pyegeria/_validators.py,sha256=DQuMsATRGxGSBtOrVtXlCgWXGhj6Nh-uqPtCsrUGLxk,12703
73
- pyegeria/action_author_omvs.py,sha256=QZ2wMkQEvAmnr0mcgO8gnB1k95YghIgI1OBykO76O5c,6630
74
- pyegeria/asset_catalog_omvs.py,sha256=ss_nUCUQA0wixUeUZxZQYLcxJ_FVIhK__jn99qvyq4k,24543
75
- pyegeria/automated_curation_omvs.py,sha256=JdHppsoGH8bBvSRar_scEzYSVMqhOnN0Mg3PSkMOycE,150352
76
- pyegeria/classification_manager_omvs.py,sha256=XQ6VKz6NHtSMPr5BUnamzCBJKKVnoROoVxgz4f1N7IQ,186133
77
- pyegeria/collection_manager_omvs.py,sha256=IbUjKR2skHowHWwA0928KNKxXXJwDLxeVe8266jS7E4,110187
78
- pyegeria/core_omag_server_config.py,sha256=qp1mpTm8q6QrP1IOiXIDOpAGGyIG6fJJ0Kqu-XagF88,93659
79
- pyegeria/create_tech_guid_lists.py,sha256=jClpvURy20o4UV83LOwhGg3TZdHGzfjZ9y0MNZyG2To,4282
80
- pyegeria/egeria_cat_client.py,sha256=hFow2KjftvYou_022yyBUQcZb9OboYlT1hm1lw6VaBs,1817
72
+ pyegeria/action_author_omvs.py,sha256=LbJ8dTHrjy2OHvP1sHCCIRgRU2AD3IV-49kB1UCoQPc,6451
73
+ pyegeria/asset_catalog_omvs.py,sha256=GzTYJjeXh3rY5Ykok0ZcJ3H1bGyQcubI0ZWjFF78iCU,24335
74
+ pyegeria/automated_curation_omvs.py,sha256=DhSrDX_uS0SfmzRRNi1Th0jmdQa9N4S42mIunxrih9s,150418
75
+ pyegeria/classification_manager_omvs.py,sha256=8QIjjFb-dVYySFnccp6sSe6TyEPhML0b-rAl1DXOh-c,186203
76
+ pyegeria/collection_manager_omvs.py,sha256=C8cfgGsx6MpG1Nds3JahyqXel8zpb-9iwXsXCAuzmg0,109717
77
+ pyegeria/core_omag_server_config.py,sha256=_GstDYb6XYNCt59l1mMxTR8EoUvwlBi3RK93wKvrcWk,93730
78
+ pyegeria/create_tech_guid_lists.py,sha256=RYRWdXm2bhCMkbUlOdMJ8cKZnamJvSkY5XMK2RjLX4M,4631
79
+ pyegeria/egeria_cat_client.py,sha256=WyxDYklm2eDpsiHLXVJi4WP5BBeXlvWWX5h5CLevdcE,1877
81
80
  pyegeria/egeria_client.py,sha256=t1SZcM4aftc86G0ZcU4pk7H4Hd4LfjhlRrDraqOnQBY,3360
82
- pyegeria/egeria_config_client.py,sha256=oJ3Q4ts9ZayFJFB2cKGHaTqDyAZmsvx0GUzc35fEhdk,1030
83
- pyegeria/egeria_my_client.py,sha256=ebZBj39MMhzseUC7FmSUHJclknEnHrYSXSEVXmOJ4v8,1340
84
- pyegeria/egeria_ops_client.py,sha256=9w9CcYkzXAHZCrq-YuUS30Z13DXVNTdVntpSHBccKBY,2030
85
- pyegeria/egeria_tech_client.py,sha256=SIm1Crh2EzjzmYHxiP-tE3dKJp8UpNkJRppVVsixPlQ,2179
86
- pyegeria/feedback_manager_omvs.py,sha256=Dby7r7ujeyKVZb9WKOgDdopRluHIQEtAoszEvwGe3Ak,162034
87
- pyegeria/full_omag_server_config.py,sha256=LFexyOaEsE3GOY2zyUc2rCQcDFPc177BzzWgT7uED7k,46941
88
- pyegeria/glossary_browser_omvs.py,sha256=cDmX7RO9NLlK7VVUmQDCct1-AIfYAqe5WwTN8B9duVI,103134
89
- pyegeria/glossary_manager_omvs.py,sha256=mcaYZUrjpoV5bmsVR4kou-Uw-7HtlTggpk_xcURjKVg,129777
81
+ pyegeria/egeria_config_client.py,sha256=n2qkE7RiNd7aKf6U9MkVjo_ItothM3zKhgZC4__hxOg,1091
82
+ pyegeria/egeria_my_client.py,sha256=VnUQHLdk-Lbzi25UfutSSfKFUs1xP6U5T_2N5EZ0PWU,1404
83
+ pyegeria/egeria_ops_client.py,sha256=JhnyX3yiPCICrfb3QIBxaDJbO-2VXrs2ZiBYDUBEKuE,2088
84
+ pyegeria/egeria_tech_client.py,sha256=1za9EIYqO1DKBfLRwxdoKSpdEznKCCPmaUpezkEZKro,2238
85
+ pyegeria/feedback_manager_omvs.py,sha256=U0wzb5kU24vaMqhGinZ2Z5UJkhqEylhXWnnHeaS-yDU,162098
86
+ pyegeria/full_omag_server_config.py,sha256=EMVdjsOoGkunV_aiHU4hbzAUMw8DfaZg3604kkcJCqM,47012
87
+ pyegeria/glossary_browser_omvs.py,sha256=PUdZHEc-OKO9z1mBSEb5J0RVszDhsdS6d8OciSAsOHI,103199
88
+ pyegeria/glossary_manager_omvs.py,sha256=B0BZvDN8Dn-gm8oZ68P405UPehjfmdMvpFCFXdNG8kU,129841
90
89
  pyegeria/mermaid_utilities.py,sha256=-0u2_rR4QTUU7hDFxNam-T5zRWMJOKSHzbW_2gUgMsM,8251
91
- pyegeria/my_profile_omvs.py,sha256=OcexVwHGLV0JKHN257Un1BZLwcolSS7F6U6jj5uEmQM,40824
92
- pyegeria/platform_services.py,sha256=nwuQxnnuf0bpV4LOTAdvpFUKAIUlqtYeXETMsOzFHRg,41710
93
- pyegeria/project_manager_omvs.py,sha256=ZChS42UEYRn_SDy9GpmLcW62O1H-JcuYFPoOOGvaMjY,74458
94
- pyegeria/registered_info.py,sha256=QcOpQUZaM_6sAvdXM09Plxx-tBSJuNq9aD_yoqnL_Zg,6293
95
- pyegeria/runtime_manager_omvs.py,sha256=tl8uePe8gjOkg5J1mZQ5e_kh9LEXn2bfeAMTro02oHQ,35778
96
- pyegeria/server_operations.py,sha256=mtl3P6D9LdquBrOzvPr1zapDxSJ-97RerPUJn_NiAto,16722
97
- pyegeria/tech_guids_06-09-2024 11:07.py,sha256=B3fytBw9dmjnlEaCKgt6oQoGh-8HUBG0mFQeyDoUEYQ,6229
98
- pyegeria/utils.py,sha256=pkVmS3RrbjaS9yz7FtOCwaOfV5FMqz-__Rt5koCnd9c,5374
99
- pyegeria/valid_metadata_omvs.py,sha256=3NjdRkcKWQclGcELJIJPtz7RuenjoVWOXazgU70uCrY,36115
100
- pyegeria-0.8.4.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
101
- pyegeria-0.8.4.4.dist-info/METADATA,sha256=QlV4Et5dslM-YKQQtjQtzdI08x5D8X5q1mXXp4yikfg,2819
102
- pyegeria-0.8.4.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
103
- pyegeria-0.8.4.4.dist-info/entry_points.txt,sha256=5Q9bDxIqPgdhd3lDnzdRSCYy9hZtNm_BL49bcmbBpGQ,3808
104
- pyegeria-0.8.4.4.dist-info/RECORD,,
90
+ pyegeria/my_profile_omvs.py,sha256=vxi0Dr0qwHV4auqKCjYvWYpF-BAUbLQt58fXGYcqEu4,40882
91
+ pyegeria/platform_services.py,sha256=4BfyGdQwGwi2cd9mJdNoUB3LNFNbiyC2_ZQhGtpcxTA,41624
92
+ pyegeria/project_manager_omvs.py,sha256=f8ahjdPxFv90JEE0fc2AV7Kc0hd9jazGQbx5KVe7gQM,74521
93
+ pyegeria/registered_info.py,sha256=WWWxkQJbHnu6KItVpMjOqLerq5thP35qih7rFgW8v9w,6356
94
+ pyegeria/runtime_manager_omvs.py,sha256=OlrJ3xO7-qYZcHS0YKWo57QLt5x_CZ1bOVcrNRlmvMg,35841
95
+ pyegeria/server_operations.py,sha256=ciH890hYT85YQ6OpByn4w7s3a7TtvWZpIG5rkRqbcI0,16766
96
+ pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
97
+ pyegeria/valid_metadata_omvs.py,sha256=6Hc4g9BOS8w1ILfTG3_A1tfIX3HLtpgZZvcC-z9GePU,36185
98
+ pyegeria-0.8.4.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
99
+ pyegeria-0.8.4.7.dist-info/METADATA,sha256=9GY5T8yGKinKO0UipLrFjzR5aA5gbcDroCrMyl-0aHs,2819
100
+ pyegeria-0.8.4.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
101
+ pyegeria-0.8.4.7.dist-info/entry_points.txt,sha256=5Q9bDxIqPgdhd3lDnzdRSCYy9hZtNm_BL49bcmbBpGQ,3808
102
+ pyegeria-0.8.4.7.dist-info/RECORD,,
@@ -1,94 +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
- from pyegeria import (
15
- Client,
16
- max_paging_size,
17
- InvalidParameterException,
18
- PropertyServerException,
19
- UserNotAuthorizedException,
20
- print_exception_response,
21
- )
22
-
23
-
24
- class LoadedResources(Client):
25
- """Client to search and retrieve currently loaded information about connectors, templates, governance actions,
26
- etc.
27
-
28
- Attributes:
29
- ----------
30
- server_name: str
31
- Name of the server to use.
32
- platform_url : str
33
- URL of the server platform to connect to
34
- user_id : str
35
- The identity of the user calling the method - this sets a default optionally used by the methods
36
- when the user doesn't pass the user_id on a method call.
37
- user_pwd: str
38
- The password associated with the user_id. Defaults to None
39
- verify_flag: bool
40
- Flag to indicate if SSL Certificates should be verified in the HTTP requests.
41
- Defaults to False.
42
-
43
- Methods:
44
- -------
45
-
46
- """
47
-
48
- admin_command_root: str
49
-
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,
57
- ):
58
- if server_name is None:
59
- server_name = "NA"
60
- Client.__init__(self, server_name, platform_url, user_id, user_pwd)
61
-
62
- def get_all_templates(
63
- self, server: str = None, start_from: int = 0, page_size: int = max_paging_size
64
- ) -> list | str:
65
- """Get Loaded templates for the Server.
66
-
67
- Parameters
68
- ----------
69
-
70
- Returns
71
- -------
72
- dict | str
73
- A dictionary containing a simplified list of key template attributes.
74
-
75
- Raises
76
- ------
77
- InvalidParameterException
78
- If the response code is not 200.
79
- PropertyServerException:
80
- Raised by the server when an issue arises in processing a valid request
81
- NotAuthorizedException:
82
- The principle specified by the user_id does not have authorization for the requested action
83
-
84
- """
85
- server = self.server_name if server is None else server
86
- url = (
87
- f"{self.platform_url}/servers/{server}/open-metadata/framework-services/asset-owner/open-metadata-store/"
88
- f"users/{self.user_id}/metadata-elements/by-search-string?startFrom=start_from&pageSize=page_size"
89
- )
90
- body = {"class": "SearchStringRequestBody", "searchString": ".*Template.*"}
91
- response = self.make_request("POST", url, body)
92
- return response.json().get("elementList", "No elements")
93
-
94
- # def get_all_assets_in_archives(self, asset_type: str = None, archive_id: str = None, server: str= None, page_start:int = 0, page_size = max_paging_size):
@@ -1,79 +0,0 @@
1
- global template_guids, integration_guids
2
- TEMPLATE_GUIDS['CSV Data File'] = '13770f93-13c8-42be-9bb8-e0b1b1e52b1f'
3
- TEMPLATE_GUIDS['Keystore File'] = 'fbcfcc0c-1652-421f-b49b-c3e1c108768f'
4
- TEMPLATE_GUIDS['Unity Catalog Server'] = 'dcca9788-b30f-4007-b1ac-ec634aff6879'
5
- INTEGRATION_GUIDS['UnityCatalogInsideCatalog'] = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
6
- INTEGRATION_GUIDS['UnityCatalogServer'] = '06d068d9-9e08-4e67-8c59-073bbf1013af'
7
- INTEGRATION_GUIDS['JDBC'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
8
- TEMPLATE_GUIDS['Data File'] = '66d8dda9-00cf-4e59-938c-4b0583596b1e'
9
- TEMPLATE_GUIDS['View Server'] = 'fd61ca01-390d-4aa2-a55d-426826aa4e1b'
10
- TEMPLATE_GUIDS['Archive File'] = '7578e504-d00f-406d-a194-3fc0a351cdf9'
11
- TEMPLATE_GUIDS['Unity Catalog Catalog'] = '5ee006aa-a6d6-411b-9b8d-5f720c079cae'
12
- TEMPLATE_GUIDS['PostgreSQL Relational Database'] = '3d398b3f-7ae6-4713-952a-409f3dea8520'
13
- INTEGRATION_GUIDS['JDBC'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
14
- TEMPLATE_GUIDS['Program File'] = '32d27e9c-1fdf-455a-ad2a-42b4d7d99108'
15
- TEMPLATE_GUIDS['FileFolder'] = 'fbdd8efd-1b69-474c-bb6d-0a304b394146'
16
- INTEGRATION_GUIDS['ContentPacksMonitor'] = '6bb2181e-7724-4515-ba3c-877cded55980'
17
- INTEGRATION_GUIDS['GeneralFilesMonitor'] = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
18
- INTEGRATION_GUIDS['SampleDataFilesMonitor'] = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
19
- INTEGRATION_GUIDS['OpenLineageFilePublisher'] = '6271b678-7d22-4cdf-87b1-45b366beaf4e'
20
- TEMPLATE_GUIDS['JDBC Endpoint'] = '3d79ce50-1887-4627-ad71-ba4649aba2bc'
21
- TEMPLATE_GUIDS['PostgreSQL Server'] = '542134e6-b9ce-4dce-8aef-22e8daf34fdb'
22
- INTEGRATION_GUIDS['PostgreSQLServer'] = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
23
- TEMPLATE_GUIDS['Audio Data File'] = '39b4b670-7f15-4744-a5ba-62e8edafbcee'
24
- TEMPLATE_GUIDS['Document File'] = 'eb6f728d-fa54-4350-9807-1199cbf96851'
25
- TEMPLATE_GUIDS['Integration Daemon'] = '6b3516f0-dd13-4786-9601-07215f995197'
26
- TEMPLATE_GUIDS['XML Data File'] = 'ea67ae71-c674-473e-b38b-689879d2a7d9'
27
- TEMPLATE_GUIDS['REST API Endpoint'] = '9ea4bff4-d193-492f-bcad-6e68c07c6f9e'
28
- TEMPLATE_GUIDS['Unity Catalog Schema'] = '5bf92b0f-3970-41ea-b0a3-aacfbf6fd92e'
29
- TEMPLATE_GUIDS['Parquet Data File'] = '7f6cd744-79c3-4d25-a056-eeb1a91574c3'
30
- TEMPLATE_GUIDS['3D Image Data File'] = '0059ea2b-6292-4cac-aa6f-a80a605f1114'
31
- TEMPLATE_GUIDS['YAML File'] = '2221855b-2b64-4b45-a2ee-c40adc5e2a64'
32
- TEMPLATE_GUIDS['Metadata Access Server'] = 'bd8de890-fa79-4c24-aab8-20b41b5893dd'
33
- TEMPLATE_GUIDS['Properties File'] = '3b281111-a0ef-4fc4-99e7-9a0ef84a7636'
34
- TEMPLATE_GUIDS['Vector Data File'] = 'db1bec7f-55a9-40d3-91c0-a57b76d422e2'
35
- TEMPLATE_GUIDS['Apache Kafka Server'] = '5e1ff810-5418-43f7-b7c4-e6e062f9aff7'
36
- INTEGRATION_GUIDS['KafkaTopic'] = 'fa1f711c-0b34-4b57-8e6e-16162b132b0c'
37
- TEMPLATE_GUIDS['Executable File'] = '3d99a163-7a13-4576-a212-784010a8302a'
38
- INTEGRATION_GUIDS['OpenLineageAPIPublisher'] = '2156bc98-973a-4859-908d-4ccc96f53cc5'
39
- TEMPLATE_GUIDS['Unity Catalog Table'] = '6cc1e5f5-4c1e-4290-a80e-e06643ffb13d'
40
- TEMPLATE_GUIDS['JSON Data File'] = 'c4836635-7e9e-446a-83b5-15e206b1aff3'
41
- TEMPLATE_GUIDS['File System'] = '522f228c-097c-4f90-9efc-26c1f2696f87'
42
- TEMPLATE_GUIDS['Source Code File'] = '9c7013ef-f29b-4b01-a8ea-5ea14f64c67a'
43
- TEMPLATE_GUIDS['Apple MacBook Pro'] = '32a9fd56-85c9-47fe-a211-9da3871bf4da'
44
- TEMPLATE_GUIDS['Build Instruction File'] = 'fbb2fa2e-8bcb-402e-9be7-5c6db9f2c504'
45
- TEMPLATE_GUIDS['Spreadsheet Data File'] = 'e4fabff5-2ba9-4050-9076-6ed917970b4c'
46
- TEMPLATE_GUIDS['UNIX File System'] = '27117270-8667-41d0-a99a-9118f9b60199'
47
- TEMPLATE_GUIDS['Video Data File'] = '93b2b722-ec0f-4da4-960a-b8d4922f8bf5'
48
- TEMPLATE_GUIDS['Unity Catalog Function'] = 'a490ba65-6104-4213-9be9-524e16fed8aa'
49
- TEMPLATE_GUIDS['PostgreSQL Relational Database Schema'] = '82a5417c-d882-4271-8444-4c6a996a8bfc'
50
- TEMPLATE_GUIDS['Engine Host'] = '1764a891-4234-45f1-8cc3-536af40c790d'
51
- TEMPLATE_GUIDS['Avro Data File'] = '9f5be428-058e-41dd-b506-3a222283b579'
52
- TEMPLATE_GUIDS['Unity Catalog Volume'] = '92d2d2dc-0798-41f0-9512-b10548d312b7'
53
- TEMPLATE_GUIDS['File'] = 'ae3067c7-cc72-4a18-88e1-746803c2c86f'
54
- TEMPLATE_GUIDS['Apache Kafka Topic'] = 'ea8f81c9-c59c-47de-9525-7cc59d1251e5'
55
- TEMPLATE_GUIDS['Script File'] = 'dbd5e6bb-1ff8-46f4-a007-fb0485f68c92'
56
- TEMPLATE_GUIDS['Apache Atlas Server'] = 'fe6dce45-a978-4417-ab55-17f05b8bcea7'
57
- TEMPLATE_GUIDS['Raster Data File'] = '47211156-f03f-4881-8526-015e695a3dac'
58
- TEMPLATE_GUIDS['Data Folder'] = '372a0379-7060-4c9d-8d84-bc709b31794c'
59
- INTEGRATION_GUIDS['MaintainDataFolderLastUpdateDate'] = 'fd26f07c-ae44-4bc5-b457-37b43112224f'
60
- INTEGRATION_GUIDS['OpenLineageFilePublisher'] = '6271b678-7d22-4cdf-87b1-45b366beaf4e'
61
- TEMPLATE_GUIDS['OMAG Server Platform'] = '9b06c4dc-ddc8-47ae-b56b-28775d3a96f0'
62
- INTEGRATION_GUIDS['OpenAPI'] = 'b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e'
63
- INTEGRATION_GUIDS['OMAGServerPlatform'] = 'dee84e6e-7a96-4975-86c1-152fb3ab759b'
64
- INTEGRATION_GUIDS['PostgreSQLServerCataloguer'] = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
65
- INTEGRATION_GUIDS['UnityCatalogInsideCatalogSynchronizer'] = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
66
- INTEGRATION_GUIDS['OpenLineageAPIPublisher'] = '2156bc98-973a-4859-908d-4ccc96f53cc5'
67
- INTEGRATION_GUIDS['JDBCDatabaseCataloguer'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
68
- INTEGRATION_GUIDS['FilesCataloguer'] = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
69
- INTEGRATION_GUIDS['SampleDataCataloguer'] = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
70
- INTEGRATION_GUIDS['OpenLineageGovernanceActionPublisher'] = '206f8faf-04da-4b6f-8280-eeee3943afeb'
71
- INTEGRATION_GUIDS['OpenAPICataloguer'] = 'b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e'
72
- INTEGRATION_GUIDS['OMAGServerPlatformCataloguer'] = 'dee84e6e-7a96-4975-86c1-152fb3ab759b'
73
- INTEGRATION_GUIDS['ApacheKafkaCataloguer'] = 'fa1f711c-0b34-4b57-8e6e-16162b132b0c'
74
- INTEGRATION_GUIDS['UnityCatalogServerSynchronizer'] = '06d068d9-9e08-4e67-8c59-073bbf1013af'
75
- INTEGRATION_GUIDS['MaintainLastUpdateDate'] = 'fd26f07c-ae44-4bc5-b457-37b43112224f'
76
- INTEGRATION_GUIDS['OpenLineageKafkaListener'] = '980b989c-de78-4e6a-a58d-51049d7381bf'
77
- INTEGRATION_GUIDS['OpenLineageFilePublisher'] = '6271b678-7d22-4cdf-87b1-45b366beaf4e'
78
- INTEGRATION_GUIDS['ContentPacksCataloguer'] = '6bb2181e-7724-4515-ba3c-877cded55980'
79
- INTEGRATION_GUIDS['OpenLineageCataloguer'] = '3347ac71-8dd2-403a-bc16-75a71be64bd7'