pyegeria 1.5.1.0.6__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.
@@ -114,12 +114,16 @@ def list_deployed_catalogs(
114
114
  )
115
115
  schemas_md = ""
116
116
  if type(schemas) is list:
117
+ cnt = 0
117
118
  for schema in schemas:
118
119
  schema_md = ""
119
120
  schema_props = schema["properties"]
120
121
  for key in schema_props.keys():
121
122
  schema_md += f"* **{key}**: {schema_props[key]}\n"
122
- schemas_md += schema_md
123
+
124
+ spacer = "---\n" if cnt > 0 else ""
125
+ cnt += 1
126
+ schemas_md += f"{spacer}{schema_md}"
123
127
  schemas_md_out = Markdown(schemas_md)
124
128
 
125
129
  element_info = c_client.get_element_by_guid(server_guid)
@@ -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(
@@ -125,7 +125,7 @@ def list_deployed_databases(
125
125
  for key in rel_props.keys():
126
126
  props_md += f"* **{key}**: {rel_props[key]}\n"
127
127
  rel_el_md = f"* **{rel_type}**: {rel_guid}\n{props_md}"
128
- if count > 1:
128
+ if count >= 1:
129
129
  rel_el_md += "---\n"
130
130
  rel_el_out = Markdown(rel_el_md)
131
131
 
@@ -312,7 +312,9 @@ class AssetCatalog(Client):
312
312
  ignore_case: bool = True,
313
313
  time_out: int = 60,
314
314
  ) -> list | str:
315
- """Retrieve the list of engine action metadata elements that contain the search string. Async Version.
315
+ """Locate string value in elements that are anchored to assets. Async Version.
316
+ Asset: https: // egeria - project.org / concepts / asset /
317
+
316
318
  Parameters
317
319
  ----------
318
320
  search_string : str
@@ -2439,7 +2439,7 @@ class AutomatedCuration(Client):
2439
2439
 
2440
2440
  body = {
2441
2441
  "class": "InitiateGovernanceActionTypeRequestBody",
2442
- "governanceActionTypeQualifiedName": "AssetSurvey:survey-postgres-database",
2442
+ "governanceActionTypeQualifiedName": "PostgreSQLSurveys:survey-postgres-database",
2443
2443
  "actionTargets": [
2444
2444
  {
2445
2445
  "class": "NewActionTarget",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 1.5.1.0.6
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
@@ -10,9 +10,9 @@ commands/cat/glossary_actions.py,sha256=F5-NNiLvfHLbQKZ_RxS6XJ9HOAuXc75GMIAC5Xo0
10
10
  commands/cat/list_archives.py,sha256=83LhNeZWhzRiE-oU6veuIk9ob4XDtDWUoXdGGXaYeE8,5454
11
11
  commands/cat/list_assets.py,sha256=bNwSaBDz661hfnc2Rn4j4HPHAugKvz0XwN9L1m4FVQk,6529
12
12
  commands/cat/list_cert_types.py,sha256=mbCls_EqC5JKG5rvS4o69k7KgZ6aNXlcqoJ3DtHsTFA,7127
13
- commands/cat/list_deployed_catalogs.py,sha256=yBdLRSJRKlS4R2ALbSnMCvCDz-gLOi9T5cNt9EYBIcI,6822
14
- commands/cat/list_deployed_database_schemas.py,sha256=LaO61c2pEJBpDyisypSRgRzVQxQZUfogU2Yywg4DrIs,8276
15
- commands/cat/list_deployed_databases.py,sha256=O0-1__4w17vGvERxDO5DMI4u-PW_30iH0A2nrUejaus,6604
13
+ commands/cat/list_deployed_catalogs.py,sha256=iMgJ_NEn1fLrUFMTnD752g-g5FAuwUtsD6o1uBnOYIo,6957
14
+ commands/cat/list_deployed_database_schemas.py,sha256=Bgu4yUip6KZN74q8uVEZJjIvl_DvNkCL0oG8Q9XYigI,8312
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
18
18
  commands/cat/list_relationships.py,sha256=U9f78cOi4HyaacqNaFSMq_7rRxVcEczvwPv468GYw3Q,5869
@@ -76,8 +76,8 @@ pyegeria/_deprecated_gov_engine.py,sha256=dWNcwVsE5__dF2u4QiIyQrssozzzOjBbLld8Md
76
76
  pyegeria/_exceptions.py,sha256=NJ7vAhmvusK1ENvY2MMrBB6A6TgpYjzS9QJxFH56b8c,18470
77
77
  pyegeria/_globals.py,sha256=1Uc8392wjbiVN5L__RzxC1-U97RMXj77_iUsMSgeAjQ,638
78
78
  pyegeria/_validators.py,sha256=rnZelHJnjHaLZ8UhUTDyB59MfIUJifhALtkYoHBaos4,12736
79
- pyegeria/asset_catalog_omvs.py,sha256=fffZsSukOrG-xszD6uEPf2IX4p0IK63T0_w7_6BpG1Q,21075
80
- pyegeria/automated_curation_omvs.py,sha256=rvX4RRjvNxlUGVXzNmgEmifV7_UwbgTIJu__JYxORyg,136326
79
+ pyegeria/asset_catalog_omvs.py,sha256=NUF9C3s_zs9pTfIZyRJlqMCKrhZASJPH08EXzzjki7g,21120
80
+ pyegeria/automated_curation_omvs.py,sha256=Wj9g3Vcx8VmbogxG_kusX38CUylq2r5ZM2sReqUQ-U4,136332
81
81
  pyegeria/classification_manager_omvs.py,sha256=VEwvlaDQT12Dwq8Q4lMvYCWYeq0OsC2P0bfsHUdy0CA,180701
82
82
  pyegeria/collection_manager_omvs.py,sha256=kye2kjthNnmwxMZhHQKV0xoHbxcNPWjNzRAYOItj_gY,99201
83
83
  pyegeria/core_omag_server_config.py,sha256=EtHaPKyc9d6pwTgbnQqGwe5lSBMPIfJOlbJEa1zg1JA,94946
@@ -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.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
105
- pyegeria-1.5.1.0.6.dist-info/METADATA,sha256=A483jI58VV00dZNDbnm3ce9pQZeYXXGOd7vESKrfdQY,2997
106
- pyegeria-1.5.1.0.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
107
- pyegeria-1.5.1.0.6.dist-info/entry_points.txt,sha256=Pc5kHnxv-vbRpwVMxSSWl66vmf7EZjgzf7nZzz1ow3M,4002
108
- pyegeria-1.5.1.0.6.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,,