pyegeria 0.5.5.15__py3-none-any.whl → 0.5.5.17__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.
@@ -34,37 +34,16 @@ from pyegeria._deprecated_gov_engine import GovEng
34
34
  from pyegeria.glossary_browser_omvs import GlossaryBrowser
35
35
  disable_ssl_warnings = True
36
36
 
37
- good_platform1_url = "https://127.0.0.1:9443"
38
- good_platform2_url = "https://egeria.pdr-associates.com:7443"
39
- bad_platform1_url = "https://localhost:9443"
40
-
41
- # good_platform1_url = "https://127.0.0.1:30080"
42
- # good_platform2_url = "https://127.0.0.1:30081"
43
- # bad_platform1_url = "https://localhost:9443"
44
-
45
- good_user_1 = "garygeeke"
46
- good_user_2 = "erinoverview"
47
- bad_user_1 = "eviledna"
48
- bad_user_2 = ""
49
-
50
- good_server_1 = "active-metadata-store"
51
- good_server_2 = "simple-metadata-store"
52
- good_server_3 = "view-server"
53
- good_server_4 = "engine-host"
54
- bad_server_1 = "coco"
55
- bad_server_2 = ""
56
-
57
-
58
- def display_assets(search_string: str, guid: str=None, server: str = good_server_3, url: str = good_platform1_url, username: str = good_user_2):
37
+ def display_assets(search_string: str, guid: str, server: str, url: str, username: str):
59
38
 
60
39
  g_client = AssetCatalog(server, url, username)
61
40
  token = g_client.create_egeria_bearer_token(username, "secret")
62
41
 
63
42
 
64
- def generate_table(search_string:str = '*') -> Table:
43
+ def generate_table(search_string:str = 'Enter Your Tech Type') -> Table:
65
44
  """Make a new table."""
66
45
  table = Table(
67
- title=f"Asset Definitions for assets like {search_string} @ {time.asctime()}",
46
+ title=f"Asset Definitions contining the string {search_string} @ {time.asctime()}",
68
47
  # style = "black on grey66",
69
48
  header_style="white on dark_blue",
70
49
  show_lines=True,
@@ -75,7 +54,8 @@ def display_assets(search_string: str, guid: str=None, server: str = good_server
75
54
  table.add_column("Display Name")
76
55
  table.add_column("Type Name")
77
56
  table.add_column("GUID", no_wrap=True)
78
- table.add_column("Network Address/Path")
57
+ table.add_column("Technology Type")
58
+ table.add_column("Path")
79
59
  table.add_column("Qualified Name")
80
60
 
81
61
 
@@ -85,9 +65,10 @@ def display_assets(search_string: str, guid: str=None, server: str = good_server
85
65
  return table
86
66
 
87
67
  for element in assets:
88
- display_name = element["displayName"]
68
+ display_name = element.get("resourceName",'---')
89
69
  qualified_name = element["qualifiedName"]
90
70
  type_name = element["type"]["typeName"]
71
+ tech_type = element.get("deployedImplementationType",'---')
91
72
  guid = element["guid"]
92
73
  path_name = element.get("extendedProperties", None)
93
74
  if path_name:
@@ -98,7 +79,7 @@ def display_assets(search_string: str, guid: str=None, server: str = good_server
98
79
 
99
80
 
100
81
  table.add_row(
101
- display_name, type_name,guid, path, qualified_name
82
+ display_name, type_name,guid, tech_type, path, qualified_name
102
83
  )
103
84
 
104
85
  g_client.close_session()
@@ -134,7 +115,7 @@ def main():
134
115
  guid = args.guid if args.guid is not None else None
135
116
  guid = sus_guid if args.sustainability else None
136
117
 
137
- search_string = Prompt.ask("Enter the asset you are searching for:", default="*")
118
+ search_string = Prompt.ask("Enter a search string:", default="*")
138
119
  display_assets(search_string, guid,server, url, userid)
139
120
 
140
121
  if __name__ == "__main__":
@@ -32,9 +32,6 @@ from rich import print
32
32
  disable_ssl_warnings = True
33
33
  console = Console(width=200)
34
34
 
35
- platform = "https://127.0.0.1:9443"
36
- user = "erinoverview"
37
- view_server = "view-server"
38
35
 
39
36
  guid_list = []
40
37
 
@@ -89,7 +86,7 @@ def asset_viewer(asset_guid: str, server_name:str, platform_url:str, user:str):
89
86
 
90
87
  console = Console(width=200)
91
88
 
92
- a_client = AssetCatalog(view_server, platform,
89
+ a_client = AssetCatalog(server_name, platform_url,
93
90
  user_id=user)
94
91
 
95
92
  token = a_client.create_egeria_bearer_token(user, "secret")
@@ -27,11 +27,6 @@ nest_asyncio.apply()
27
27
  console = Console()
28
28
  disable_ssl_warnings = True
29
29
 
30
- platform = "https://127.0.0.1:9443"
31
- user = "erinoverview"
32
- view_server = "view-server"
33
-
34
-
35
30
  def tech_viewer(tech: str, server_name:str, platform_url:str, user:str):
36
31
 
37
32
  def view_tech_details(a_client: AutomatedCuration, root_collection_name: str, tree: Tree) -> Tree:
@@ -78,7 +73,7 @@ def tech_viewer(tech: str, server_name:str, platform_url:str, user:str):
78
73
 
79
74
  try:
80
75
  tree = Tree(f"[bold bright green]{tech}", guide_style="bold bright_blue")
81
- a_client = AutomatedCuration(view_server, platform,
76
+ a_client = AutomatedCuration(server_name, platform_url,
82
77
  user_id=user)
83
78
 
84
79
  token = a_client.create_egeria_bearer_token(user, "secret")
@@ -102,7 +97,7 @@ def main():
102
97
  args = parser.parse_args()
103
98
 
104
99
  server = args.server if args.server is not None else "view-server"
105
- url = args.url if args.url is not None else "https://127.0.0.1:9443"
100
+ url = args.url if args.url is not None else "https://localhost:9443"
106
101
  userid = args.userid if args.userid is not None else 'erinoverview'
107
102
 
108
103
  tech = Prompt.ask("Enter the Technology to start from:", default="PostgreSQL Server")
@@ -32,10 +32,6 @@ from rich import print
32
32
  disable_ssl_warnings = True
33
33
  console = Console(width=200)
34
34
 
35
- platform = "https://127.0.0.1:9443"
36
- user = "erinoverview"
37
- view_server = "view-server"
38
-
39
35
  guid_list = []
40
36
 
41
37
  def tech_viewer(tech_name: str, server_name:str, platform_url:str, user:str):
@@ -63,7 +59,7 @@ def tech_viewer(tech_name: str, server_name:str, platform_url:str, user:str):
63
59
 
64
60
  console = Console()
65
61
 
66
- a_client = AutomatedCuration(view_server, platform,
62
+ a_client = AutomatedCuration(server_name, platform_url,
67
63
  user_id=user)
68
64
 
69
65
  token = a_client.create_egeria_bearer_token(user, "secret")
@@ -26,10 +26,6 @@ from pyegeria import (
26
26
  disable_ssl_warnings = True
27
27
  console = Console(width=200)
28
28
 
29
- platform = "https://127.0.0.1:9443"
30
- user = "erinoverview"
31
- view_server = "view-server"
32
-
33
29
  guid_list = []
34
30
 
35
31
  def tech_viewer(tech_name: str, server_name:str, platform_url:str, user:str):
@@ -57,7 +53,7 @@ def tech_viewer(tech_name: str, server_name:str, platform_url:str, user:str):
57
53
 
58
54
  console = Console()
59
55
 
60
- a_client = AutomatedCuration(view_server, platform,
56
+ a_client = AutomatedCuration(server_name, platform_url,
61
57
  user_id=user)
62
58
 
63
59
  token = a_client.create_egeria_bearer_token(user, "secret")
@@ -28,28 +28,7 @@ from pyegeria.server_operations import ServerOps
28
28
 
29
29
  disable_ssl_warnings = True
30
30
 
31
- good_platform1_url = "https://127.0.0.1:9443"
32
- good_platform2_url = "https://egeria.pdr-associates.com:7443"
33
- bad_platform1_url = "https://localhost:9443"
34
-
35
- # good_platform1_url = "https://127.0.0.1:30080"
36
- # good_platform2_url = "https://127.0.0.1:30081"
37
- # bad_platform1_url = "https://localhost:9443"
38
-
39
- good_user_1 = "garygeeke"
40
- good_user_2 = "erinoverview"
41
- bad_user_1 = "eviledna"
42
- bad_user_2 = ""
43
-
44
- good_server_1 = "active-metadata-store"
45
- good_server_2 = "simple-metadata-store"
46
- good_server_3 = "engine-host"
47
- good_server_4 = "engine-host"
48
- bad_server_1 = "coco"
49
- bad_server_2 = ""
50
-
51
-
52
- def display_gov_actions_status(server: str = good_server_3, url: str = good_platform1_url, username: str = good_user_1):
31
+ def display_gov_actions_status(server: str, url: str, username: str):
53
32
  server_name = server
54
33
  s_client = ServerOps(server_name, url, username)
55
34
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.5.5.15
3
+ Version: 0.5.5.17
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -2,14 +2,14 @@ examples/doc_samples/Create_Collection_Sample.py,sha256=D8nhc4qLXIzAqVdJQjmFIS-j
2
2
  examples/doc_samples/Create_Sustainability_Collection_Sample.py,sha256=iLBm1LwRLi42Gayyb-wcWZ5NySQ6sc4kVSmwIAzP2Po,5049
3
3
  examples/widgets/catalog_user/README.md,sha256=aCCVo7iqyE-XGEvmoYXnkIGM0VskF95JTj6Egzec7LM,883
4
4
  examples/widgets/catalog_user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- examples/widgets/catalog_user/list_assets.py,sha256=s-Uje62lRYhpnPXt3Bl31IJ5YXcs8mp4-alPYAMMIqk,4701
6
- examples/widgets/catalog_user/view_asset_graph.py,sha256=1B0v4YEix35anTgg5_h5q2lkVe_2wyibJatjROMA-uw,9688
5
+ examples/widgets/catalog_user/list_assets.py,sha256=vNGMFa6QT-J71KM09U-QAwb3oO0oLQzyU-yKaX2a8BE,4197
6
+ examples/widgets/catalog_user/view_asset_graph.py,sha256=sP-PWXNrcabqAJCh-Vmw5udZs-wd5U9Bu4aKPJ1tr7E,9606
7
7
  examples/widgets/catalog_user/view_collection.py,sha256=RWvq_HT5e6JBAiQBc3w94SM6DYJJEJluVen3vX-PqGo,3270
8
8
  examples/widgets/catalog_user/view_glossary.py,sha256=uDAZHJ1WPkkl9S1fzVKJOISjU8LDMPQO9KP4qdmaRnY,4652
9
9
  examples/widgets/developer/README.md,sha256=nxDnfr3BCiGgW5G1VxWxiwUWJXIe5wreNuUeRyIt_hY,1343
10
10
  examples/widgets/developer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  examples/widgets/developer/get_guid_info.py,sha256=-vOlZfC1lka_evpcwnnNmFU1A88x49kwKIJyYIJzQSg,2549
12
- examples/widgets/developer/get_tech_details.py,sha256=C1pmfgsp8tjR3uvAg60iFnSDw6owjsQ8kJQQbz33Bz0,4528
12
+ examples/widgets/developer/get_tech_details.py,sha256=cUxsHLzNCRWGpqN3YI_NUFbX0iAtwaJGGy4cbeLUT_0,4444
13
13
  examples/widgets/developer/list_asset_types.py,sha256=iIA0TX9C_W5u_Bh3RzRMX0x2CdEdH7RFCkUOOP2ZzQw,2847
14
14
  examples/widgets/developer/list_registered_services.py,sha256=oIrE3bSG92C107Q_gFoo7CWYy5LBliQWXElFyiVmRzg,5122
15
15
  examples/widgets/developer/list_relationship_types.py,sha256=ruXH_6vIcnCuJvLc-zokvjnbIit1WQ33uRGSpipRuPo,4216
@@ -18,12 +18,12 @@ examples/widgets/developer/list_tech_types.py,sha256=K8lBr6o0-rk3niyRAe76E1X5M70
18
18
  examples/widgets/developer/list_valid_metadata_values.py,sha256=JMfkJe-hscrNJAqgQO7ehA6BaiB71r9Fs2eWvwUBheE,5275
19
19
  examples/widgets/operational/README.md,sha256=PJsSDcvMv6E6og6y-cwvxFX5lhCII0UCwgKiM1T17MQ,1595
20
20
  examples/widgets/operational/__init__.py,sha256=8ebdyTD7i-XXyZr0vDx6jnXalE6QjhCvu7n6YXxwgL0,112
21
- examples/widgets/operational/get_tech_type_elements.py,sha256=ZxE6_-LqAEHffizKL_R3q3vGFM858VRsAqgQwt3Sbak,4985
22
- examples/widgets/operational/get_tech_type_template.py,sha256=SXSQtOisz3qDqRVWiB8vIVbavBSGz1Dn-IXSnX8NJUE,5015
21
+ examples/widgets/operational/get_tech_type_elements.py,sha256=3hrVRVXm7HnzcEhQSUuKMtidXM-fgMcUh69nbqORQ2w,4902
22
+ examples/widgets/operational/get_tech_type_template.py,sha256=3BVnvAAB01n69UAAwJxTnh_uS2PKNsEEeEqs2cSbysc,4932
23
23
  examples/widgets/operational/view_asset_events.py,sha256=rQoti3barirB2hdKl9Sm2liUWaAtaB-sbYh0wkoO3vA,2634
24
24
  examples/widgets/operational/view_coco_status.py,sha256=QloMgVcXL2Fx2XHyk71PKCwmzRfc_Q_cAvpyomcYi_Y,3322
25
25
  examples/widgets/operational/view_eng_action_status.py,sha256=sCkQh5XRDq0u6ZObxmUA0-wUhUoVMdV6_ho_d4PAdqw,4973
26
- examples/widgets/operational/view_gov_eng_status.py,sha256=rcZv82l7q8jccUVIb-K2vazQorcKP86SAtES0--SQns,3998
26
+ examples/widgets/operational/view_gov_eng_status.py,sha256=EApPezGh6p_WkejmLLm9OudgJnMGGagu7UCU2HwLZb4,3369
27
27
  examples/widgets/operational/view_integ_daemon_status.py,sha256=9GEqKl_ZYmnEa4-WmBjoTefaxFhqt0ShcyxybqC7lmA,5850
28
28
  examples/widgets/operational/view_platform_status.py,sha256=lqZnObLgJ0qf8hdcRwETXTGd8A8FbFc-rg_ckg86GfE,4457
29
29
  examples/widgets/operational/view_server_list.py,sha256=j1V5RJ8kwGkyQO8nbygtD5W-85TVO4TsR3SbnKD2eDM,3125
@@ -60,8 +60,8 @@ pyegeria/runtime_manager_omvs.py,sha256=WekK7Yeyn6Qu9YmbSDo3m57MN0xOsIm9M8kGHfRO
60
60
  pyegeria/server_operations.py,sha256=hEaU6YC0iNEQFvcXYvcE4J6BQKlqMJk33nViCNIEBE4,16349
61
61
  pyegeria/utils.py,sha256=lWd0FrHh7DFR1UeOzk3Y1I_xR_zmlFYWL1Pci-ZuZmw,5342
62
62
  pyegeria/valid_metadata_omvs.py,sha256=aisdRodIwJSkyArAzfm_sEnBELh69xE8k4Nea-vHu8M,36745
63
- pyegeria-0.5.5.15.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
64
- pyegeria-0.5.5.15.dist-info/METADATA,sha256=wrnT-0YKNYdIiMQ6-9SxvflsH2x5tS39SvpG-RI9MHA,2612
65
- pyegeria-0.5.5.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
66
- pyegeria-0.5.5.15.dist-info/entry_points.txt,sha256=yR22RzRO974vzRMeo7_ysc-_5pxHmgnvyk8FHTZviOw,1950
67
- pyegeria-0.5.5.15.dist-info/RECORD,,
63
+ pyegeria-0.5.5.17.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
64
+ pyegeria-0.5.5.17.dist-info/METADATA,sha256=LEjID3KEbfFeP2TApkxpJKMwmuBgFPRnTcC2xVTW01M,2612
65
+ pyegeria-0.5.5.17.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
66
+ pyegeria-0.5.5.17.dist-info/entry_points.txt,sha256=yR22RzRO974vzRMeo7_ysc-_5pxHmgnvyk8FHTZviOw,1950
67
+ pyegeria-0.5.5.17.dist-info/RECORD,,