pyegeria 1.5.1.0.7__py3-none-any.whl → 1.5.1.0.8__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.
@@ -137,29 +137,29 @@ def list_deployed_database_schemas(
137
137
  el_props_md += f"* **{prop}**: {element['properties'][prop]}\n"
138
138
  el_props_out = Markdown(el_props_md)
139
139
 
140
- rel_elements = c_client.get_related_elements(
141
- el_guid, "RelationalDBSchemaType"
140
+ rel_elements = c_client.get_elements_by_property_value(
141
+ el_guid, ["anchorGUID"]
142
142
  )
143
143
  schema_md = ""
144
144
  count = 0
145
145
  rel_el_out = ""
146
146
  if type(rel_elements) is list:
147
- print(len(rel_elements))
147
+ len_els = len(rel_elements)
148
+ rel_el_md = ""
149
+ spacer = ""
148
150
  for rel_element in rel_elements:
149
151
  count += 1
150
- rel_type = rel_element["relatedElement"]["elementHeader"][
151
- "type"
152
- ]["typeName"]
153
- rel_guid = rel_element["relatedElement"]["elementHeader"][
154
- "guid"
155
- ]
156
- rel_props = rel_element["relatedElement"]["properties"]
152
+ rel_type = rel_element["elementHeader"]["type"]["typeName"]
153
+ rel_guid = rel_element["elementHeader"]["guid"]
154
+ rel_props = rel_element["properties"]
157
155
  props_md = ""
158
156
  for key in rel_props.keys():
159
- props_md += f"* **{key}**: {rel_props[key]}\n"
160
- rel_el_md = f"* **{rel_type}**: {rel_guid}\n{props_md}"
161
- if count > 1:
162
- rel_el_md += "---\n"
157
+ props_md += f"\t* **{key}**: {rel_props[key]}\n"
158
+ rel_el_md = f"{rel_el_md}\n* **{rel_type}**:\n\t{rel_guid}\n{props_md}{spacer}"
159
+ if count > 1 and count < len_els:
160
+ spacer = "---\n"
161
+ elif count > len_els:
162
+ spacer = ""
163
163
  rel_el_out = Markdown(rel_el_md)
164
164
 
165
165
  table.add_row(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 1.5.1.0.7
3
+ Version: 1.5.1.0.8
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -11,7 +11,7 @@ commands/cat/list_archives.py,sha256=83LhNeZWhzRiE-oU6veuIk9ob4XDtDWUoXdGGXaYeE8
11
11
  commands/cat/list_assets.py,sha256=bNwSaBDz661hfnc2Rn4j4HPHAugKvz0XwN9L1m4FVQk,6529
12
12
  commands/cat/list_cert_types.py,sha256=mbCls_EqC5JKG5rvS4o69k7KgZ6aNXlcqoJ3DtHsTFA,7127
13
13
  commands/cat/list_deployed_catalogs.py,sha256=iMgJ_NEn1fLrUFMTnD752g-g5FAuwUtsD6o1uBnOYIo,6957
14
- commands/cat/list_deployed_database_schemas.py,sha256=LaO61c2pEJBpDyisypSRgRzVQxQZUfogU2Yywg4DrIs,8276
14
+ commands/cat/list_deployed_database_schemas.py,sha256=Bgu4yUip6KZN74q8uVEZJjIvl_DvNkCL0oG8Q9XYigI,8312
15
15
  commands/cat/list_deployed_databases.py,sha256=qRt3-pDXRVm-bKznmYsisja4zA8KRT58-02Mvj8MjOc,6605
16
16
  commands/cat/list_glossary.py,sha256=tUtQQoTGTlDLU-yFbfO3zjiJC9QyEJfg8NxnGCo2mnI,5811
17
17
  commands/cat/list_projects.py,sha256=Jzs-DtIpPhCH-gY4PYT6mnRBWnEf4m18TFfcw8UymNU,8011
@@ -101,8 +101,8 @@ pyegeria/server_operations.py,sha256=ciH890hYT85YQ6OpByn4w7s3a7TtvWZpIG5rkRqbcI0
101
101
  pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
102
102
  pyegeria/valid_metadata_omvs.py,sha256=tfCGXed5LLt59YA8uZNNtd9UJ-lRZfPU_uZxK31Yux0,65069
103
103
  pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
104
- pyegeria-1.5.1.0.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
105
- pyegeria-1.5.1.0.7.dist-info/METADATA,sha256=3LxbP7Ro56CkqyCbLTaopSEMuP2f9m6rrAQcWHQrRz8,2997
106
- pyegeria-1.5.1.0.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
107
- pyegeria-1.5.1.0.7.dist-info/entry_points.txt,sha256=Pc5kHnxv-vbRpwVMxSSWl66vmf7EZjgzf7nZzz1ow3M,4002
108
- pyegeria-1.5.1.0.7.dist-info/RECORD,,
104
+ pyegeria-1.5.1.0.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
105
+ pyegeria-1.5.1.0.8.dist-info/METADATA,sha256=nzILP7w0hRi0UicwTi4tVLpTDNgNpASdfo8dCeuPfqM,2997
106
+ pyegeria-1.5.1.0.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
107
+ pyegeria-1.5.1.0.8.dist-info/entry_points.txt,sha256=Pc5kHnxv-vbRpwVMxSSWl66vmf7EZjgzf7nZzz1ow3M,4002
108
+ pyegeria-1.5.1.0.8.dist-info/RECORD,,