pyegeria 0.5.8.7__py3-none-any.whl → 0.5.8.9__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.
@@ -16,6 +16,7 @@ from rich import box
16
16
  from rich.console import Console
17
17
  from rich.table import Table
18
18
  from rich.prompt import Prompt
19
+ from rich.markdown import Markdown
19
20
 
20
21
  from pyegeria import (
21
22
  InvalidParameterException,
@@ -52,26 +53,46 @@ def display_catalog_targets(connector:str, server: str, url: str, username: str,
52
53
  show_lines=True,
53
54
  box=box.ROUNDED,
54
55
  caption=f"Catalog Targets for '{server}' @ Platform - {url}",
55
- expand=True
56
+ expand=True,
57
+ # width = 200
56
58
  )
57
59
  table.add_column("Connector Name")
58
60
  table.add_column("Catalog Target Name")
61
+ table.add_column('Metadata Source Qualified Name')
59
62
  table.add_column("Relationship GUID", no_wrap=True)
63
+ table.add_column('Configuration Properties')
64
+ table.add_column('Template Properties')
60
65
  table.add_column("Synchronization")
61
66
  table.add_column("Delete Method")
62
67
 
63
68
 
64
-
65
69
  if type(cat_targets) is list:
66
70
  for target in cat_targets:
67
71
  target_name = target.get('catalogTargetName','---')
72
+ target_source = target.get('metadataSourceQualifiedName', '---')
68
73
  target_rel = target.get('relationshipGUID','---')
69
74
  target_sync = target.get('permittedSynchronization')
70
75
  target_delete = target.get('deleteMethod','---')
71
76
  # target_guid = target['catalogTargetElement']['guid']
72
77
  connector_unique = target['catalogTargetElement']['uniqueName']
78
+
79
+ config_props = target.get('configurationProperties','---')
80
+ if type(config_props) is dict:
81
+ config_props_md = ''
82
+ for prop in config_props:
83
+ config_props_md += f"* {prop}: {config_props[prop]}\n"
84
+ config_props_out = Markdown(config_props_md)
85
+
86
+ template_props = target.get('templateProperties','---')
87
+ if type(template_props) is dict:
88
+ template_props_md = ''
89
+ for prop in template_props:
90
+ template_props_md += f"* {prop}: {template_props[prop]}\n"
91
+ template_props_out = Markdown(template_props_md)
92
+
73
93
  table.add_row(
74
- connector_unique, target_name, target_rel, target_sync, target_delete,
94
+ connector_unique, target_name, target_source, target_rel,
95
+ config_props_out, template_props_out, target_sync, target_delete,
75
96
  )
76
97
 
77
98
  return table
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.5.8.7
3
+ Version: 0.5.8.9
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -25,7 +25,7 @@ examples/widgets/operational/README.md,sha256=PJsSDcvMv6E6og6y-cwvxFX5lhCII0UCwg
25
25
  examples/widgets/operational/__init__.py,sha256=SCfzF3-aMx8EpqLWmH7JQf13gTmMAtHRbg69oseLvi8,480
26
26
  examples/widgets/operational/engine_actions.py,sha256=j4OL-Gpo4n8CAqcwdCRI8nnAm0F7NOEpX6Bp6FB-Pmg,3064
27
27
  examples/widgets/operational/integration_daemon_actions.py,sha256=SacZaweJWYIUKgEu2B1y0iQXg0Aj4zeJjX4Jhs93TpM,3942
28
- examples/widgets/operational/list_catalog_targets.py,sha256=6_DRwnNZ6rwNYEPdh5yCQAurTLU6wNCTr8L6EnlE2vc,4521
28
+ examples/widgets/operational/list_catalog_targets.py,sha256=q1SfVPOXflOTJSgmuLuelIC-hlpqtm0EdriS-1d-1xw,5616
29
29
  examples/widgets/operational/load_archive.py,sha256=j9K4uPpUzvqEyvsUMZoY0-1NVuljAwqcMg8Lhin_p1E,2280
30
30
  examples/widgets/operational/monitor_asset_events.py,sha256=eERSZaL-F_3OYFfao4qfsLtFLZoLFkxUJHH9XVt5hDM,3731
31
31
  examples/widgets/operational/monitor_coco_status.py,sha256=ERz3OJ0TXImNKHGD4gJvgT3pl2gS23ewAdUuYVLUhEE,3299
@@ -69,8 +69,8 @@ pyegeria/runtime_manager_omvs.py,sha256=WekK7Yeyn6Qu9YmbSDo3m57MN0xOsIm9M8kGHfRO
69
69
  pyegeria/server_operations.py,sha256=ZX7FlJRrAC7RK4bq4wHWepEsYbbWlqkUZdsJrTplVVU,16534
70
70
  pyegeria/utils.py,sha256=pkVmS3RrbjaS9yz7FtOCwaOfV5FMqz-__Rt5koCnd9c,5374
71
71
  pyegeria/valid_metadata_omvs.py,sha256=aisdRodIwJSkyArAzfm_sEnBELh69xE8k4Nea-vHu8M,36745
72
- pyegeria-0.5.8.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
73
- pyegeria-0.5.8.7.dist-info/METADATA,sha256=IfXDRa_zB-gbZcez5XC6ayCow5PFFJhcuschjQgpGY8,2688
74
- pyegeria-0.5.8.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
75
- pyegeria-0.5.8.7.dist-info/entry_points.txt,sha256=5aexqWL8P1vQZrEK4bQLfelOnFfZtXFmWYS0pLa4NmE,2772
76
- pyegeria-0.5.8.7.dist-info/RECORD,,
72
+ pyegeria-0.5.8.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
73
+ pyegeria-0.5.8.9.dist-info/METADATA,sha256=147mm4_Fn78X6KwLsI7klk6Ael5chkZzrEHdY4JubgM,2688
74
+ pyegeria-0.5.8.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
75
+ pyegeria-0.5.8.9.dist-info/entry_points.txt,sha256=5aexqWL8P1vQZrEK4bQLfelOnFfZtXFmWYS0pLa4NmE,2772
76
+ pyegeria-0.5.8.9.dist-info/RECORD,,