pyegeria 0.5.5__py3-none-any.whl → 0.5.5.2__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.
@@ -74,10 +74,10 @@ def asset_viewer(asset_guid: str, server_name:str, platform_url:str, user:str):
74
74
 
75
75
  ne_prop_md = ""
76
76
  for prop in ne_props.keys():
77
- ne_prop_md += f"* {prop}: {ne_props[prop]}\n"
77
+ ne_prop_md += f"\t* {prop}: {ne_props[prop]}\n"
78
78
  ne_md = (f"Nested Element of Type: {ne_type} with GUID: {ne_guid} \n "
79
79
  f"* created by {ne_created_by} at time {ne_created_at}\n"
80
- f"{ne_prop_md}\n")
80
+ f"Properties: \n{ne_prop_md}\n")
81
81
  if ne_class_md is not None:
82
82
  ne_md += f"* {ne_class_md}"
83
83
 
@@ -117,6 +117,8 @@ def asset_viewer(asset_guid: str, server_name:str, platform_url:str, user:str):
117
117
  style = ""
118
118
 
119
119
  asset_type = asset_graph["type"]["typeName"]
120
+ asset_deployed_imp_type = asset_graph.get("deployedImplementationType","---")
121
+
120
122
  asset_origin = asset_graph["origin"]["homeMetadataCollectionName"]
121
123
  asset_creation = asset_graph["versions"]["createTime"]
122
124
  asset_created_by = asset_graph["versions"]["createdBy"]
@@ -126,12 +128,15 @@ def asset_viewer(asset_guid: str, server_name:str, platform_url:str, user:str):
126
128
  asset_class_md = build_classifications(asset_classifications)
127
129
 
128
130
 
129
- asset_properties = asset_graph["extendedProperties"]
130
- prop_md = "\n* Extended Properties:\n"
131
- for prop in asset_properties:
132
- prop_md = f"{prop_md}\n\t* {prop}: {asset_properties[prop]}\n"
133
-
131
+ asset_properties = asset_graph.get("extendedProperties",None)
132
+ if asset_properties is not None:
133
+ prop_md = "\n* Extended Properties:\n"
134
+ for prop in asset_properties:
135
+ prop_md = f"{prop_md}\n\t* {prop}: {asset_properties[prop]}\n"
136
+ else:
137
+ prop_md = ""
134
138
  core_md = (f"**Type: {asset_type} Created by: {asset_created_by} on {asset_creation}**\n"
139
+ f"* Deployed Implementation Type: {asset_deployed_imp_type}\n"
135
140
  f"* Qualified Name: {qualified_name}\n "
136
141
  f"* Resource Name: {resource_name}\n"
137
142
  f"* Display Name: {asset_name}\n"
@@ -170,8 +175,8 @@ def asset_viewer(asset_guid: str, server_name:str, platform_url:str, user:str):
170
175
  rel_end2_unique_name = rel_end2["uniqueName"]
171
176
 
172
177
  if (rel_end1_guid not in guid_list) or (rel_end2_guid not in guid_list):
173
- rel_end1_class_md = build_classifications(rel_end1["classifications"])
174
- rel_end2_class_md = build_classifications(rel_end2["classifications"])
178
+ # rel_end1_class_md = build_classifications(rel_end1["classifications"])
179
+ # rel_end2_class_md = build_classifications(rel_end2["classifications"])
175
180
 
176
181
  relationship_guid = relationship["guid"]
177
182
  relationship_type = relationship["type"]["typeName"]
@@ -196,8 +201,8 @@ def asset_viewer(asset_guid: str, server_name:str, platform_url:str, user:str):
196
201
  f"\t* Unique Name: {rel_end1_unique_name}\n"
197
202
  )
198
203
 
199
- if rel_end1_class_md is not None:
200
- rel_end1_md = rel_end1_class_md + rel_end1_md
204
+ # if rel_end1_class_md is not None:
205
+ # rel_end1_md = rel_end1_class_md + rel_end1_md
201
206
 
202
207
  rel_end2_md = (
203
208
  f"* End2:\n"
@@ -206,8 +211,8 @@ def asset_viewer(asset_guid: str, server_name:str, platform_url:str, user:str):
206
211
  f"\t* Unique Name: {rel_end2_unique_name}\n"
207
212
  )
208
213
 
209
- if rel_end2_class_md is not None:
210
- rel_end1_md = rel_end2_class_md + rel_end1_md
214
+ # if rel_end2_class_md is not None:
215
+ # rel_end1_md = rel_end2_class_md + rel_end1_md
211
216
  #
212
217
  # for prop in relationship_properties.keys():
213
218
  # relationship_md += f"* {prop}: {relationship_properties[prop]}\n"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.5.5
3
+ Version: 0.5.5.2
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -3,7 +3,7 @@ examples/doc_samples/Create_Sustainability_Collection_Sample.py,sha256=iLBm1LwRL
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
5
  examples/widgets/catalog_user/list_assets.py,sha256=s-Uje62lRYhpnPXt3Bl31IJ5YXcs8mp4-alPYAMMIqk,4701
6
- examples/widgets/catalog_user/view_asset_graph.py,sha256=9JwwVL7PXRkXliXssxAaC3FDiS17FI_2F5OTjKB53gI,9314
6
+ examples/widgets/catalog_user/view_asset_graph.py,sha256=TXdGTC70vUxeM8XH95ntZ5IuQ6aS759ImTo5bs-GoiE,9607
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
@@ -60,8 +60,8 @@ pyegeria/runtime_manager_omvs.py,sha256=WekK7Yeyn6Qu9YmbSDo3m57MN0xOsIm9M8kGHfRO
60
60
  pyegeria/server_operations.py,sha256=YBdQJjPOmA1uhrUvzrjUKNGUc5nju9bhvCjF3AbdyWk,16164
61
61
  pyegeria/utils.py,sha256=R1_WwYa8sYJUYR0H8sKrlwEa5BJ32M8-tdfB-zq8Xs4,5282
62
62
  pyegeria/valid_metadata_omvs.py,sha256=aisdRodIwJSkyArAzfm_sEnBELh69xE8k4Nea-vHu8M,36745
63
- pyegeria-0.5.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
64
- pyegeria-0.5.5.dist-info/METADATA,sha256=6Gmqcg-pGL-pQ63fv_e0pQjmESQj-CrEnKONL-jFpA0,2609
65
- pyegeria-0.5.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
66
- pyegeria-0.5.5.dist-info/entry_points.txt,sha256=yR22RzRO974vzRMeo7_ysc-_5pxHmgnvyk8FHTZviOw,1950
67
- pyegeria-0.5.5.dist-info/RECORD,,
63
+ pyegeria-0.5.5.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
64
+ pyegeria-0.5.5.2.dist-info/METADATA,sha256=dnO0OVnZPSXb4HxWTAuwT5iMrSDl2rez8bBTfkZasNU,2611
65
+ pyegeria-0.5.5.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
66
+ pyegeria-0.5.5.2.dist-info/entry_points.txt,sha256=yR22RzRO974vzRMeo7_ysc-_5pxHmgnvyk8FHTZviOw,1950
67
+ pyegeria-0.5.5.2.dist-info/RECORD,,