pyegeria 0.8.4.3__py3-none-any.whl → 0.8.4.6__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
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,
@@ -85,10 +83,10 @@ class Client:
85
83
  platform_url: str,
86
84
  user_id: str = None,
87
85
  user_pwd: str = None,
88
- api_key: str = None,
89
- page_size: int = max_paging_size,
90
86
  token: str = None,
91
87
  token_src: str = None,
88
+ api_key: str = None,
89
+ page_size: int = max_paging_size,
92
90
  ):
93
91
  self.server_name = None
94
92
  self.platform_url = None
@@ -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,
@@ -46,19 +43,12 @@ class CollectionManager(Client):
46
43
  self,
47
44
  server_name: str,
48
45
  platform_url: str,
49
- user_id: str = None,
46
+ user_id: str,
50
47
  user_pwd: str = None,
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,6 @@ 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
@@ -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()
@@ -54,18 +54,14 @@ class EgeriaCat(
54
54
  user_pwd: str = None,
55
55
  token: str = None,
56
56
  ):
57
- AssetCatalog.__init__(
58
- self, server_name, platform_url, user_id, user_pwd, token=token
59
- )
57
+ AssetCatalog.__init__(self, server_name, platform_url, user_id, user_pwd, token)
60
58
  CollectionManager.__init__(
61
59
  self, server_name, platform_url, user_id, user_pwd, token
62
60
  )
63
- EgeriaMy.__init__(
64
- self, server_name, platform_url, user_id, user_pwd, token=token
65
- )
61
+ EgeriaMy.__init__(self, server_name, platform_url, user_id, user_pwd, token)
66
62
 
67
63
  GlossaryManager.__init__(
68
- self, server_name, platform_url, user_id, user_pwd, token=token
64
+ self, server_name, platform_url, user_id, user_pwd, token
69
65
  )
70
66
 
71
67
  ProjectManager.__init__(
@@ -43,5 +43,5 @@ class EgeriaMy(MyProfile, FeedbackManager):
43
43
  ):
44
44
  MyProfile.__init__(self, server_name, platform_url, user_id, user_pwd, token)
45
45
  FeedbackManager.__init__(
46
- self, server_name, platform_url, token, user_id, user_pwd
46
+ self, server_name, platform_url, user_id, user_pwd, token
47
47
  )
@@ -108,10 +108,9 @@ class FeedbackManager(Client):
108
108
  doesn't pass the user_id on a method call.
109
109
  user_pwd: str
110
110
  The password associated with the user_id. Defaults to None
111
- verify_flag: bool
112
- Flag to indicate if SSL Certificates should be verified in the HTTP
113
- requests.
114
- Defaults to False.
111
+
112
+ token: str, optional
113
+ bearer token
115
114
 
116
115
  """
117
116
 
@@ -119,19 +118,17 @@ class FeedbackManager(Client):
119
118
  self,
120
119
  server_name: str,
121
120
  platform_url: str,
122
- token: str = None,
123
- user_id: str = None,
121
+ user_id: str,
124
122
  user_pwd: str = None,
125
- verify_flag: bool = enable_ssl_check,
126
- sync_mode: bool = True,
123
+ token: str = None,
127
124
  ):
128
125
  self.admin_command_root: str
129
126
  Client.__init__(
130
127
  self,
131
128
  server_name,
132
129
  platform_url,
133
- user_id=user_id,
134
- user_pwd=user_pwd,
130
+ user_id,
131
+ user_pwd,
135
132
  token=token,
136
133
  )
137
134
 
@@ -42,12 +42,12 @@ class GlossaryBrowser(Client):
42
42
  self,
43
43
  server_name: str,
44
44
  platform_url: str,
45
- user_id: str = None,
45
+ user_id: str,
46
46
  user_pwd: str = None,
47
47
  token: str = None,
48
48
  ):
49
49
  self.admin_command_root: str
50
- Client.__init__(self, server_name, platform_url, user_id, user_pwd, token=token)
50
+ Client.__init__(self, server_name, platform_url, user_id, user_pwd, token)
51
51
 
52
52
  #
53
53
  # Get Valid Values for Enumerations
@@ -48,12 +48,12 @@ class GlossaryManager(GlossaryBrowser):
48
48
  self,
49
49
  server_name: str,
50
50
  platform_url: str,
51
- user_id: str = None,
51
+ user_id: str,
52
52
  user_pwd: str = None,
53
53
  token: str = None,
54
54
  ):
55
55
  self.admin_command_root: str
56
- Client.__init__(self, server_name, platform_url, user_id=user_id, token=token)
56
+ Client.__init__(self, server_name, platform_url, user_id, user_pwd, token)
57
57
 
58
58
  #
59
59
  # Get Valid Values for Enumerations
@@ -40,12 +40,12 @@ class ProjectManager(Client):
40
40
  self,
41
41
  server_name: str,
42
42
  platform_url: str,
43
- user_id: str = None,
43
+ user_id: str,
44
44
  user_pwd: str = None,
45
45
  token: str = None,
46
46
  ):
47
47
  self.command_base: str = f"/api/open-metadata/project-manager/metadata-elements"
48
- Client.__init__(self, server_name, platform_url, user_id=user_id, token=token)
48
+ Client.__init__(self, server_name, platform_url, user_id, user_pwd, token)
49
49
 
50
50
  #
51
51
  # Retrieving Projects= Information - https://egeria-project.org/concepts/project
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.8.4.3
3
+ Version: 0.8.4.6
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,9 +63,8 @@ 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=d1cG5p7yfZDwau3O4kvlHuB-XAey-mcT3Kz3wKwtHis,26164
66
+ pyegeria/__init__.py,sha256=-qQMCOjEcMQwvjI7-TnFL8EWyRXlIugoGBeCISl2Ugg,9446
67
+ pyegeria/_client.py,sha256=smwXSig45E0c4IbrzZp_0JLZER4d5g-TfeL2fOUj6jQ,26096
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
@@ -74,31 +73,30 @@ pyegeria/action_author_omvs.py,sha256=QZ2wMkQEvAmnr0mcgO8gnB1k95YghIgI1OBykO76O5
74
73
  pyegeria/asset_catalog_omvs.py,sha256=ss_nUCUQA0wixUeUZxZQYLcxJ_FVIhK__jn99qvyq4k,24543
75
74
  pyegeria/automated_curation_omvs.py,sha256=JdHppsoGH8bBvSRar_scEzYSVMqhOnN0Mg3PSkMOycE,150352
76
75
  pyegeria/classification_manager_omvs.py,sha256=XQ6VKz6NHtSMPr5BUnamzCBJKKVnoROoVxgz4f1N7IQ,186133
77
- pyegeria/collection_manager_omvs.py,sha256=VF0Oh1_UAncfaVWtPUJRo7qmJKMbf9bPKImVUVUyjq0,110194
76
+ pyegeria/collection_manager_omvs.py,sha256=4JVldwLym5-XHyi_bxAb9pPI4BdQhuteHqy45QJmziI,109651
78
77
  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=zpcYczfSkEL-Nd47Gw6gU2n0Zb_ZKjSAaHkUjo1uRGY,1879
78
+ pyegeria/create_tech_guid_lists.py,sha256=RYRWdXm2bhCMkbUlOdMJ8cKZnamJvSkY5XMK2RjLX4M,4631
79
+ pyegeria/egeria_cat_client.py,sha256=hFow2KjftvYou_022yyBUQcZb9OboYlT1hm1lw6VaBs,1817
81
80
  pyegeria/egeria_client.py,sha256=t1SZcM4aftc86G0ZcU4pk7H4Hd4LfjhlRrDraqOnQBY,3360
82
81
  pyegeria/egeria_config_client.py,sha256=oJ3Q4ts9ZayFJFB2cKGHaTqDyAZmsvx0GUzc35fEhdk,1030
83
- pyegeria/egeria_my_client.py,sha256=a-KHdqEwdaTwxrdpSNDy8vjDI26iZDqGSB_UFqvdoME,1340
82
+ pyegeria/egeria_my_client.py,sha256=ebZBj39MMhzseUC7FmSUHJclknEnHrYSXSEVXmOJ4v8,1340
84
83
  pyegeria/egeria_ops_client.py,sha256=9w9CcYkzXAHZCrq-YuUS30Z13DXVNTdVntpSHBccKBY,2030
85
84
  pyegeria/egeria_tech_client.py,sha256=SIm1Crh2EzjzmYHxiP-tE3dKJp8UpNkJRppVVsixPlQ,2179
86
- pyegeria/feedback_manager_omvs.py,sha256=Snd2Vx3OgzGl3JY-ZhcCdg0U9qb1xeiDZXet_WbWWmk,162239
85
+ pyegeria/feedback_manager_omvs.py,sha256=Dby7r7ujeyKVZb9WKOgDdopRluHIQEtAoszEvwGe3Ak,162034
87
86
  pyegeria/full_omag_server_config.py,sha256=LFexyOaEsE3GOY2zyUc2rCQcDFPc177BzzWgT7uED7k,46941
88
- pyegeria/glossary_browser_omvs.py,sha256=v2axH6uVIpApSwOid0OLEi0LYUnwZsOFLOs3R-hdFFo,103147
89
- pyegeria/glossary_manager_omvs.py,sha256=IKslnsc72IqlVBEokYi919M49DjCG_vU8Uc74_mBOhE,129788
87
+ pyegeria/glossary_browser_omvs.py,sha256=cDmX7RO9NLlK7VVUmQDCct1-AIfYAqe5WwTN8B9duVI,103134
88
+ pyegeria/glossary_manager_omvs.py,sha256=mcaYZUrjpoV5bmsVR4kou-Uw-7HtlTggpk_xcURjKVg,129777
90
89
  pyegeria/mermaid_utilities.py,sha256=-0u2_rR4QTUU7hDFxNam-T5zRWMJOKSHzbW_2gUgMsM,8251
91
90
  pyegeria/my_profile_omvs.py,sha256=OcexVwHGLV0JKHN257Un1BZLwcolSS7F6U6jj5uEmQM,40824
92
91
  pyegeria/platform_services.py,sha256=nwuQxnnuf0bpV4LOTAdvpFUKAIUlqtYeXETMsOzFHRg,41710
93
- pyegeria/project_manager_omvs.py,sha256=v71B_SOTuaUDiVaC-xhH4v8lDb6cEo53oyVLTycCfY4,74469
92
+ pyegeria/project_manager_omvs.py,sha256=ZChS42UEYRn_SDy9GpmLcW62O1H-JcuYFPoOOGvaMjY,74458
94
93
  pyegeria/registered_info.py,sha256=QcOpQUZaM_6sAvdXM09Plxx-tBSJuNq9aD_yoqnL_Zg,6293
95
94
  pyegeria/runtime_manager_omvs.py,sha256=tl8uePe8gjOkg5J1mZQ5e_kh9LEXn2bfeAMTro02oHQ,35778
96
95
  pyegeria/server_operations.py,sha256=mtl3P6D9LdquBrOzvPr1zapDxSJ-97RerPUJn_NiAto,16722
97
- pyegeria/tech_guids_06-09-2024 11:07.py,sha256=B3fytBw9dmjnlEaCKgt6oQoGh-8HUBG0mFQeyDoUEYQ,6229
98
96
  pyegeria/utils.py,sha256=pkVmS3RrbjaS9yz7FtOCwaOfV5FMqz-__Rt5koCnd9c,5374
99
97
  pyegeria/valid_metadata_omvs.py,sha256=3NjdRkcKWQclGcELJIJPtz7RuenjoVWOXazgU70uCrY,36115
100
- pyegeria-0.8.4.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
101
- pyegeria-0.8.4.3.dist-info/METADATA,sha256=iSSrd9U1P9qzLpsaXrDDJ1C0TrOcs0GCiPfMyOtcwe4,2819
102
- pyegeria-0.8.4.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
103
- pyegeria-0.8.4.3.dist-info/entry_points.txt,sha256=5Q9bDxIqPgdhd3lDnzdRSCYy9hZtNm_BL49bcmbBpGQ,3808
104
- pyegeria-0.8.4.3.dist-info/RECORD,,
98
+ pyegeria-0.8.4.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
99
+ pyegeria-0.8.4.6.dist-info/METADATA,sha256=0_TtdlhfgQZrdNv9xXQbA7OkbsMU5LvBFhkI62mkYu8,2819
100
+ pyegeria-0.8.4.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
101
+ pyegeria-0.8.4.6.dist-info/entry_points.txt,sha256=5Q9bDxIqPgdhd3lDnzdRSCYy9hZtNm_BL49bcmbBpGQ,3808
102
+ pyegeria-0.8.4.6.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'