pyegeria 5.2.0.8__py3-none-any.whl → 5.2.0.10__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.
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-06 at 08.46.30@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-06 at 11.27.56@2x.png +0 -0
- pyegeria/metadata_explorer_omvs.py +266 -29
- pyegeria/valid_metadata_omvs.py +1 -1
- {pyegeria-5.2.0.8.dist-info → pyegeria-5.2.0.10.dist-info}/METADATA +1 -1
- {pyegeria-5.2.0.8.dist-info → pyegeria-5.2.0.10.dist-info}/RECORD +9 -7
- {pyegeria-5.2.0.8.dist-info → pyegeria-5.2.0.10.dist-info}/LICENSE +0 -0
- {pyegeria-5.2.0.8.dist-info → pyegeria-5.2.0.10.dist-info}/WHEEL +0 -0
- {pyegeria-5.2.0.8.dist-info → pyegeria-5.2.0.10.dist-info}/entry_points.txt +0 -0
Binary file
|
Binary file
|
@@ -40,6 +40,31 @@ def base_path(client, view_server: str):
|
|
40
40
|
return f"{client.platform_url}/servers/{view_server}/api/open-metadata/metadata-explorer"
|
41
41
|
|
42
42
|
|
43
|
+
def process_related_element_list(response: Response, mermaid_only: bool) -> str | dict:
|
44
|
+
"""Process the result payload
|
45
|
+
|
46
|
+
Parameters
|
47
|
+
----------
|
48
|
+
response
|
49
|
+
mermaid_only
|
50
|
+
|
51
|
+
Returns
|
52
|
+
-------
|
53
|
+
|
54
|
+
"""
|
55
|
+
elements = response.json().get("relatedElementList", "No elements found")
|
56
|
+
if isinstance(elements, str):
|
57
|
+
return "No elements found"
|
58
|
+
el_list = elements.get("elementList", "No elements found")
|
59
|
+
if isinstance(el_list, str):
|
60
|
+
return el_list
|
61
|
+
if mermaid_only:
|
62
|
+
return elements.get("mermaidGraph", "No mermaid graph found")
|
63
|
+
if len(el_list) == 0:
|
64
|
+
return "No elements returned"
|
65
|
+
return elements
|
66
|
+
|
67
|
+
|
43
68
|
class MetadataExplorer(Client):
|
44
69
|
"""MetadataExplorer is a class that extends the Client class. The Metadata Explorer OMVS provides APIs for
|
45
70
|
supporting the search, query and retrieval of open metadata. It is an advanced API for users that understands
|
@@ -208,6 +233,7 @@ class MetadataExplorer(Client):
|
|
208
233
|
self,
|
209
234
|
guid: str,
|
210
235
|
effective_time: str = None,
|
236
|
+
as_of_time: str = None,
|
211
237
|
for_lineage: bool = None,
|
212
238
|
for_duplicate_processing: bool = None,
|
213
239
|
) -> dict | str:
|
@@ -220,6 +246,8 @@ class MetadataExplorer(Client):
|
|
220
246
|
- unique identifier of the element to retrieve
|
221
247
|
effective_time: str, default = None
|
222
248
|
- Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
249
|
+
as_of_time: str, default = None
|
250
|
+
- Query the element as of this time. If None, then use current time.
|
223
251
|
for_lineage: bool, default is set by server
|
224
252
|
- determines if elements classified as Memento should be returned - normally false
|
225
253
|
for_duplicate_processing: bool, default is set by server
|
@@ -248,8 +276,9 @@ class MetadataExplorer(Client):
|
|
248
276
|
)
|
249
277
|
|
250
278
|
body = {
|
251
|
-
"class": "
|
279
|
+
"class": "AnyTimeRequestBody",
|
252
280
|
"effectiveTime": effective_time,
|
281
|
+
"asOfTime": as_of_time,
|
253
282
|
}
|
254
283
|
|
255
284
|
url = (
|
@@ -265,6 +294,7 @@ class MetadataExplorer(Client):
|
|
265
294
|
self,
|
266
295
|
guid: str,
|
267
296
|
effective_time: str = None,
|
297
|
+
as_of_time: str = None,
|
268
298
|
for_lineage: bool = None,
|
269
299
|
for_duplicate_processing: bool = None,
|
270
300
|
) -> dict | str:
|
@@ -277,6 +307,8 @@ class MetadataExplorer(Client):
|
|
277
307
|
- unique identifier of the element to retrieve
|
278
308
|
effective_time: str, default = None
|
279
309
|
- Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
310
|
+
as_of_time: str, default = None
|
311
|
+
- Query the element as of this time. If None, then use current time.
|
280
312
|
for_lineage: bool, default is set by server
|
281
313
|
- determines if elements classified as Memento should be returned - normally false
|
282
314
|
for_duplicate_processing: bool, default is set by server
|
@@ -305,6 +337,188 @@ class MetadataExplorer(Client):
|
|
305
337
|
)
|
306
338
|
return response
|
307
339
|
|
340
|
+
async def _async_get_metadata_element_graph(
|
341
|
+
self,
|
342
|
+
guid: str,
|
343
|
+
effective_time: str = None,
|
344
|
+
as_of_time: str = None,
|
345
|
+
for_lineage: bool = None,
|
346
|
+
for_duplicate_processing: bool = None,
|
347
|
+
mermaid_only: bool = False,
|
348
|
+
) -> dict | str:
|
349
|
+
"""
|
350
|
+
Retrieve the metadata element and all of its anchored elements using its unique identifier. Async version.
|
351
|
+
|
352
|
+
Parameters
|
353
|
+
----------
|
354
|
+
guid : str
|
355
|
+
- unique identifier of the element to retrieve
|
356
|
+
effective_time: str, default = None
|
357
|
+
- Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
358
|
+
as_of_time: str, default = None
|
359
|
+
- Query the element as of this time. If None, then use current time.
|
360
|
+
for_lineage: bool, default is set by server
|
361
|
+
- determines if elements classified as Memento should be returned - normally false
|
362
|
+
for_duplicate_processing: bool, default is set by server
|
363
|
+
- Normally false. Set true when the caller is part of a deduplication function
|
364
|
+
mermaid_only: bool, default is False
|
365
|
+
- if true only a string representing the mermaid graph will be returned
|
366
|
+
|
367
|
+
Returns
|
368
|
+
-------
|
369
|
+
dict | str
|
370
|
+
If the element is found, and mermaid_only is False, a dict of the element details is returned.
|
371
|
+
If mermaid_only is True, a string representing the mermaid graph will be returned.
|
372
|
+
If no elements found, string "No element found".
|
373
|
+
|
374
|
+
Raises
|
375
|
+
------
|
376
|
+
InvalidParameterException
|
377
|
+
one of the parameters is null or invalid or
|
378
|
+
PropertyServerException
|
379
|
+
There is a problem adding the element properties to the metadata repository or
|
380
|
+
UserNotAuthorizedException
|
381
|
+
the requesting user is not authorized to issue this request.
|
382
|
+
"""
|
383
|
+
|
384
|
+
possible_query_params = query_string(
|
385
|
+
[
|
386
|
+
("forLineage", for_lineage),
|
387
|
+
("forDuplicateProcessing", for_duplicate_processing),
|
388
|
+
]
|
389
|
+
)
|
390
|
+
|
391
|
+
body = {
|
392
|
+
"class": "AnyTimeRequestBody",
|
393
|
+
"effectiveTime": effective_time,
|
394
|
+
"asOfTime": as_of_time,
|
395
|
+
}
|
396
|
+
|
397
|
+
url = (
|
398
|
+
f"{base_path(self, self.view_server)}/metadata-elements/{guid}/with-anchored-elements"
|
399
|
+
f"{possible_query_params}"
|
400
|
+
)
|
401
|
+
response: Response = await self._async_make_request(
|
402
|
+
"POST", url, body_slimmer(body)
|
403
|
+
)
|
404
|
+
# if mermaid_only:
|
405
|
+
# return response.json()["elementGraph"].get(
|
406
|
+
# "mermaidGraph", "No elements found"
|
407
|
+
# )
|
408
|
+
# else:
|
409
|
+
# return response.json().get("elementGraph", "No elements found")
|
410
|
+
if isinstance(response, str):
|
411
|
+
return "No elements found"
|
412
|
+
el_list = response.json().get("elementGraph", "No elements found")
|
413
|
+
if isinstance(el_list, str):
|
414
|
+
return el_list
|
415
|
+
if mermaid_only:
|
416
|
+
return el_list.get("mermaidGraph", "No mermaid graph found")
|
417
|
+
if len(el_list) == 0:
|
418
|
+
return "No elements returned"
|
419
|
+
return el_list
|
420
|
+
|
421
|
+
def get_metadata_element_graph(
|
422
|
+
self,
|
423
|
+
guid: str,
|
424
|
+
effective_time: str = None,
|
425
|
+
as_of_time: str = None,
|
426
|
+
for_lineage: bool = None,
|
427
|
+
for_duplicate_processing: bool = None,
|
428
|
+
mermaid_only: bool = False,
|
429
|
+
) -> dict | str:
|
430
|
+
"""
|
431
|
+
Retrieve the metadata element and all of its anchored elements using its unique identifier. Async version.
|
432
|
+
|
433
|
+
Parameters
|
434
|
+
----------
|
435
|
+
guid : str
|
436
|
+
- unique identifier of the element to retrieve
|
437
|
+
effective_time: str, default = None
|
438
|
+
- Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
439
|
+
as_of_time: str, default = None
|
440
|
+
- Query the element as of this time. If None, then use current time.
|
441
|
+
for_lineage: bool, default is set by server
|
442
|
+
- determines if elements classified as Memento should be returned - normally false
|
443
|
+
for_duplicate_processing: bool, default is set by server
|
444
|
+
- Normally false. Set true when the caller is part of a deduplication function
|
445
|
+
mermaid_only: bool, default is False
|
446
|
+
- if true only a string representing the mermaid graph will be returned
|
447
|
+
|
448
|
+
Returns
|
449
|
+
-------
|
450
|
+
dict | str
|
451
|
+
If the element is found, and mermaid_only is False, a dict of the element details is returned.
|
452
|
+
If mermaid_only is True, a string representing the mermaid graph will be returned.
|
453
|
+
If no elements found, string "No element found".
|
454
|
+
|
455
|
+
Raises
|
456
|
+
------
|
457
|
+
InvalidParameterException
|
458
|
+
one of the parameters is null or invalid or
|
459
|
+
PropertyServerException
|
460
|
+
There is a problem adding the element properties to the metadata repository or
|
461
|
+
UserNotAuthorizedException
|
462
|
+
the requesting user is not authorized to issue this request.
|
463
|
+
"""
|
464
|
+
|
465
|
+
loop = asyncio.get_event_loop()
|
466
|
+
response = loop.run_until_complete(
|
467
|
+
self._async_get_metadata_element_graph(
|
468
|
+
guid,
|
469
|
+
effective_time,
|
470
|
+
as_of_time,
|
471
|
+
for_lineage,
|
472
|
+
for_duplicate_processing,
|
473
|
+
mermaid_only,
|
474
|
+
)
|
475
|
+
)
|
476
|
+
return response
|
477
|
+
|
478
|
+
# def get_metadata_element_mermaid_graph(
|
479
|
+
# self,
|
480
|
+
# guid: str,
|
481
|
+
# effective_time: str = None,
|
482
|
+
# as_of_time: str = None,
|
483
|
+
# for_lineage: bool = None,
|
484
|
+
# for_duplicate_processing: bool = None,
|
485
|
+
# ) -> dict | str:
|
486
|
+
# """
|
487
|
+
# Retrieve the metadata element using its unique identifier.
|
488
|
+
#
|
489
|
+
# Parameters
|
490
|
+
# ----------
|
491
|
+
# guid : str
|
492
|
+
# - unique identifier of the element to retrieve
|
493
|
+
# effective_time: str, default = None
|
494
|
+
# - Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601)
|
495
|
+
# as_of_time: str, default = None
|
496
|
+
# - Query the element as of this time. If None, then use current time.
|
497
|
+
# for_lineage: bool, default is set by server
|
498
|
+
# - determines if elements classified as Memento should be returned - normally false
|
499
|
+
# for_duplicate_processing: bool, default is set by server
|
500
|
+
# - Normally false. Set true when the caller is part of a deduplication function
|
501
|
+
#
|
502
|
+
# Returns
|
503
|
+
# -------
|
504
|
+
# dict | str
|
505
|
+
# If the element is found, a dict of the element details is returned. Otherwise the string "No element found".
|
506
|
+
#
|
507
|
+
# Raises
|
508
|
+
# ------
|
509
|
+
# InvalidParameterException
|
510
|
+
# one of the parameters is null or invalid or
|
511
|
+
# PropertyServerException
|
512
|
+
# There is a problem adding the element properties to the metadata repository or
|
513
|
+
# UserNotAuthorizedException
|
514
|
+
# the requesting user is not authorized to issue this request.
|
515
|
+
# """
|
516
|
+
#
|
517
|
+
# response = self.get_metadata_element_graph(
|
518
|
+
# guid, effective_time, as_of_time, for_lineage, for_duplicate_processing
|
519
|
+
# )
|
520
|
+
# return response.get("mermaidGraph", "No elements found")
|
521
|
+
|
308
522
|
async def _async_get_metadata_element_by_unique_name(
|
309
523
|
self,
|
310
524
|
name: str,
|
@@ -738,6 +952,7 @@ class MetadataExplorer(Client):
|
|
738
952
|
start_from: int = 0,
|
739
953
|
page_size: int = max_paging_size,
|
740
954
|
time_out: int = default_time_out,
|
955
|
+
mermaid_only: bool = False,
|
741
956
|
) -> list | str:
|
742
957
|
"""
|
743
958
|
Retrieve the metadata elements connected to the supplied element.
|
@@ -761,6 +976,9 @@ class MetadataExplorer(Client):
|
|
761
976
|
- maximum number of elements to return.
|
762
977
|
time_out: int, default = default_time_out
|
763
978
|
- http request timeout for this request
|
979
|
+
mermaid_only: bool, default is False
|
980
|
+
- if true only a string representing the mermaid graph will be returned
|
981
|
+
|
764
982
|
|
765
983
|
Returns
|
766
984
|
-------
|
@@ -808,12 +1026,7 @@ class MetadataExplorer(Client):
|
|
808
1026
|
response: Response = await self._async_make_request(
|
809
1027
|
"POST", url, body_slimmer(body), time_out=time_out
|
810
1028
|
)
|
811
|
-
|
812
|
-
elements = response.json().get("elementList", "No elements found")
|
813
|
-
if type(elements) is list:
|
814
|
-
if len(elements) == 0:
|
815
|
-
return "No elements found"
|
816
|
-
return elements
|
1029
|
+
return process_related_element_list(response, mermaid_only)
|
817
1030
|
|
818
1031
|
def get_all_related_metadata_elements(
|
819
1032
|
self,
|
@@ -825,6 +1038,7 @@ class MetadataExplorer(Client):
|
|
825
1038
|
start_from: int = 0,
|
826
1039
|
page_size: int = max_paging_size,
|
827
1040
|
time_out: int = default_time_out,
|
1041
|
+
mermaid_only: bool = False,
|
828
1042
|
) -> list | str:
|
829
1043
|
"""
|
830
1044
|
Retrieve the metadata elements connected to the supplied element.
|
@@ -847,6 +1061,9 @@ class MetadataExplorer(Client):
|
|
847
1061
|
- maximum number of elements to return.
|
848
1062
|
time_out: int, default = default_time_out
|
849
1063
|
- http request timeout for this request
|
1064
|
+
mermaid_only: bool, default is False
|
1065
|
+
- if true only a string representing the mermaid graph will be returned
|
1066
|
+
|
850
1067
|
|
851
1068
|
Returns
|
852
1069
|
-------
|
@@ -886,6 +1103,7 @@ class MetadataExplorer(Client):
|
|
886
1103
|
start_from,
|
887
1104
|
page_size,
|
888
1105
|
time_out,
|
1106
|
+
mermaid_only,
|
889
1107
|
)
|
890
1108
|
)
|
891
1109
|
return response
|
@@ -901,6 +1119,7 @@ class MetadataExplorer(Client):
|
|
901
1119
|
start_from: int = 0,
|
902
1120
|
page_size: int = max_paging_size,
|
903
1121
|
time_out: int = default_time_out,
|
1122
|
+
mermaid_only: bool = False,
|
904
1123
|
) -> list | str:
|
905
1124
|
"""
|
906
1125
|
Retrieve the metadata elements connected to the supplied element.
|
@@ -926,6 +1145,8 @@ class MetadataExplorer(Client):
|
|
926
1145
|
- maximum number of elements to return.
|
927
1146
|
time_out: int, default = default_time_out
|
928
1147
|
- http request timeout for this request
|
1148
|
+
mermaid_only: bool, default is False
|
1149
|
+
- if true only a string representing the mermaid graph will be returned
|
929
1150
|
|
930
1151
|
Returns
|
931
1152
|
-------
|
@@ -974,11 +1195,7 @@ class MetadataExplorer(Client):
|
|
974
1195
|
"POST", url, body_slimmer(body), time_out=time_out
|
975
1196
|
)
|
976
1197
|
|
977
|
-
|
978
|
-
if type(elements) is list:
|
979
|
-
if len(elements) == 0:
|
980
|
-
return "No elements found"
|
981
|
-
return elements
|
1198
|
+
return process_related_element_list(response, mermaid_only)
|
982
1199
|
|
983
1200
|
def get_related_metadata_elements(
|
984
1201
|
self,
|
@@ -991,6 +1208,7 @@ class MetadataExplorer(Client):
|
|
991
1208
|
start_from: int = 0,
|
992
1209
|
page_size: int = max_paging_size,
|
993
1210
|
time_out: int = default_time_out,
|
1211
|
+
mermaid_only: bool = False,
|
994
1212
|
) -> list | str:
|
995
1213
|
"""
|
996
1214
|
Retrieve the metadata elements connected to the supplied element.
|
@@ -1015,6 +1233,8 @@ class MetadataExplorer(Client):
|
|
1015
1233
|
- maximum number of elements to return.
|
1016
1234
|
time_out: int, default = default_time_out
|
1017
1235
|
- http request timeout for this request
|
1236
|
+
mermaid_only: bool, default is False
|
1237
|
+
- if true only a string representing the mermaid graph will be returned
|
1018
1238
|
|
1019
1239
|
Returns
|
1020
1240
|
-------
|
@@ -1055,6 +1275,7 @@ class MetadataExplorer(Client):
|
|
1055
1275
|
start_from,
|
1056
1276
|
page_size,
|
1057
1277
|
time_out,
|
1278
|
+
mermaid_only,
|
1058
1279
|
)
|
1059
1280
|
)
|
1060
1281
|
return response
|
@@ -1070,6 +1291,7 @@ class MetadataExplorer(Client):
|
|
1070
1291
|
start_from: int = 0,
|
1071
1292
|
page_size: int = max_paging_size,
|
1072
1293
|
time_out: int = default_time_out,
|
1294
|
+
mermaid_only: bool = False,
|
1073
1295
|
) -> list | str:
|
1074
1296
|
"""
|
1075
1297
|
Retrieve the relationships linking the supplied elements.
|
@@ -1095,6 +1317,9 @@ class MetadataExplorer(Client):
|
|
1095
1317
|
- maximum number of elements to return.
|
1096
1318
|
time_out: int, default = default_time_out
|
1097
1319
|
- http request timeout for this request
|
1320
|
+
mermaid_only: bool, default is False
|
1321
|
+
- if true only a string representing the mermaid graph will be returned
|
1322
|
+
|
1098
1323
|
|
1099
1324
|
Returns
|
1100
1325
|
-------
|
@@ -1144,11 +1369,7 @@ class MetadataExplorer(Client):
|
|
1144
1369
|
"POST", url, body_slimmer(body), time_out=time_out
|
1145
1370
|
)
|
1146
1371
|
|
1147
|
-
|
1148
|
-
if type(elements) is list:
|
1149
|
-
if len(elements) == 0:
|
1150
|
-
return "No elements found"
|
1151
|
-
return elements
|
1372
|
+
return process_related_element_list(response, mermaid_only)
|
1152
1373
|
|
1153
1374
|
def get_all_metadata_element_relationships(
|
1154
1375
|
self,
|
@@ -1161,6 +1382,7 @@ class MetadataExplorer(Client):
|
|
1161
1382
|
start_from: int = 0,
|
1162
1383
|
page_size: int = max_paging_size,
|
1163
1384
|
time_out: int = default_time_out,
|
1385
|
+
mermaid_only: bool = False,
|
1164
1386
|
) -> list | str:
|
1165
1387
|
"""
|
1166
1388
|
Retrieve the relationships linking the supplied elements.
|
@@ -1185,6 +1407,8 @@ class MetadataExplorer(Client):
|
|
1185
1407
|
- maximum number of elements to return.
|
1186
1408
|
time_out: int, default = default_time_out
|
1187
1409
|
- http request timeout for this request
|
1410
|
+
mermaid_only: bool, default is False
|
1411
|
+
- if true only a string representing the mermaid graph will be returned
|
1188
1412
|
|
1189
1413
|
Returns
|
1190
1414
|
-------
|
@@ -1225,6 +1449,7 @@ class MetadataExplorer(Client):
|
|
1225
1449
|
start_from,
|
1226
1450
|
page_size,
|
1227
1451
|
time_out,
|
1452
|
+
mermaid_only,
|
1228
1453
|
)
|
1229
1454
|
)
|
1230
1455
|
return response
|
@@ -1241,6 +1466,7 @@ class MetadataExplorer(Client):
|
|
1241
1466
|
start_from: int = 0,
|
1242
1467
|
page_size: int = max_paging_size,
|
1243
1468
|
time_out: int = default_time_out,
|
1469
|
+
mermaid_only: bool = False,
|
1244
1470
|
) -> list | str:
|
1245
1471
|
"""
|
1246
1472
|
Retrieve the relationships linking the supplied elements.
|
@@ -1268,6 +1494,8 @@ class MetadataExplorer(Client):
|
|
1268
1494
|
- maximum number of elements to return.
|
1269
1495
|
time_out: int, default = default_time_out
|
1270
1496
|
- http request timeout for this request
|
1497
|
+
mermaid_only: bool, default is False
|
1498
|
+
- if true only a string representing the mermaid graph will be returned
|
1271
1499
|
|
1272
1500
|
Returns
|
1273
1501
|
-------
|
@@ -1317,11 +1545,7 @@ class MetadataExplorer(Client):
|
|
1317
1545
|
"POST", url, body_slimmer(body), time_out=time_out
|
1318
1546
|
)
|
1319
1547
|
|
1320
|
-
|
1321
|
-
if type(elements) is list:
|
1322
|
-
if len(elements) == 0:
|
1323
|
-
return "No elements found"
|
1324
|
-
return elements
|
1548
|
+
return process_related_element_list(response, mermaid_only)
|
1325
1549
|
|
1326
1550
|
def get_metadata_element_relationships(
|
1327
1551
|
self,
|
@@ -1335,6 +1559,7 @@ class MetadataExplorer(Client):
|
|
1335
1559
|
start_from: int = 0,
|
1336
1560
|
page_size: int = max_paging_size,
|
1337
1561
|
time_out: int = default_time_out,
|
1562
|
+
mermaid_only: bool = False,
|
1338
1563
|
) -> list | str:
|
1339
1564
|
"""
|
1340
1565
|
Retrieve the relationships linking the supplied elements.
|
@@ -1361,6 +1586,9 @@ class MetadataExplorer(Client):
|
|
1361
1586
|
- maximum number of elements to return.
|
1362
1587
|
time_out: int, default = default_time_out
|
1363
1588
|
- http request timeout for this request
|
1589
|
+
mermaid_only: bool, default is False
|
1590
|
+
- if true only a string representing the mermaid graph will be returned
|
1591
|
+
|
1364
1592
|
|
1365
1593
|
Returns
|
1366
1594
|
-------
|
@@ -1402,6 +1630,7 @@ class MetadataExplorer(Client):
|
|
1402
1630
|
start_from,
|
1403
1631
|
page_size,
|
1404
1632
|
time_out,
|
1633
|
+
mermaid_only,
|
1405
1634
|
)
|
1406
1635
|
)
|
1407
1636
|
return response
|
@@ -1828,6 +2057,7 @@ class MetadataExplorer(Client):
|
|
1828
2057
|
self,
|
1829
2058
|
guid: str,
|
1830
2059
|
effective_time: str = None,
|
2060
|
+
as_of_time: str = None,
|
1831
2061
|
for_lineage: bool = None,
|
1832
2062
|
for_duplicate_processing: bool = None,
|
1833
2063
|
) -> dict | str:
|
@@ -1868,8 +2098,9 @@ class MetadataExplorer(Client):
|
|
1868
2098
|
)
|
1869
2099
|
|
1870
2100
|
body = {
|
1871
|
-
"class": "
|
2101
|
+
"class": "AnyTimeRequestBody",
|
1872
2102
|
"effectiveTime": effective_time,
|
2103
|
+
"asOfTime": as_of_time,
|
1873
2104
|
}
|
1874
2105
|
|
1875
2106
|
url = (
|
@@ -1937,6 +2168,7 @@ class MetadataExplorer(Client):
|
|
1937
2168
|
start_from: int = 0,
|
1938
2169
|
page_size: int = max_paging_size,
|
1939
2170
|
time_out: int = default_time_out,
|
2171
|
+
mermaid_only: bool = False,
|
1940
2172
|
) -> list | str:
|
1941
2173
|
"""
|
1942
2174
|
Retrieve all the versions of a relationship. Async version.
|
@@ -1962,6 +2194,8 @@ class MetadataExplorer(Client):
|
|
1962
2194
|
- maximum number of elements to return.
|
1963
2195
|
time_out: int, default = default_time_out
|
1964
2196
|
- http request timeout for this request
|
2197
|
+
mermaid_only: bool, default is False
|
2198
|
+
- if true only a string representing the mermaid graph will be returned
|
1965
2199
|
|
1966
2200
|
Returns
|
1967
2201
|
-------
|
@@ -2003,12 +2237,11 @@ class MetadataExplorer(Client):
|
|
2003
2237
|
response: Response = await self._async_make_request(
|
2004
2238
|
"POST", url, body_slimmer(body), time_out=time_out
|
2005
2239
|
)
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2011
|
-
return elements
|
2240
|
+
rel = response.json().get("relationshipList", "No elements found")
|
2241
|
+
if isinstance(rel, (list, dict)):
|
2242
|
+
return rel.get("elementList", "No elements found")
|
2243
|
+
else:
|
2244
|
+
return rel
|
2012
2245
|
|
2013
2246
|
def get_relationship_history(
|
2014
2247
|
self,
|
@@ -2022,6 +2255,7 @@ class MetadataExplorer(Client):
|
|
2022
2255
|
start_from: int = 0,
|
2023
2256
|
page_size: int = max_paging_size,
|
2024
2257
|
time_out: int = default_time_out,
|
2258
|
+
mermaid_only: bool = False,
|
2025
2259
|
) -> list | str:
|
2026
2260
|
"""
|
2027
2261
|
Retrieve all the versions of a relationship.
|
@@ -2047,6 +2281,8 @@ class MetadataExplorer(Client):
|
|
2047
2281
|
- maximum number of elements to return.
|
2048
2282
|
time_out: int, default = default_time_out
|
2049
2283
|
- http request timeout for this request
|
2284
|
+
mermaid_only: bool, default is False
|
2285
|
+
- if true only a string representing the mermaid graph will be returned
|
2050
2286
|
|
2051
2287
|
Returns
|
2052
2288
|
-------
|
@@ -2076,6 +2312,7 @@ class MetadataExplorer(Client):
|
|
2076
2312
|
start_from,
|
2077
2313
|
page_size,
|
2078
2314
|
time_out,
|
2315
|
+
mermaid_only,
|
2079
2316
|
)
|
2080
2317
|
)
|
2081
2318
|
return response
|
pyegeria/valid_metadata_omvs.py
CHANGED
@@ -1421,7 +1421,7 @@ class ValidMetadataManager(Client):
|
|
1421
1421
|
url = f"{self.platform_url}/servers/{self.view_server}{self.valid_m_command_base}/open-metadata-types"
|
1422
1422
|
|
1423
1423
|
resp = await self._async_make_request("GET", url)
|
1424
|
-
return resp.json()
|
1424
|
+
return resp.json()
|
1425
1425
|
|
1426
1426
|
def get_all_entity_types(self) -> list | str:
|
1427
1427
|
"""Returns the list of different types of metadata organized into two groups. The first are the
|
@@ -52,6 +52,8 @@ pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot
|
|
52
52
|
pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.36.42@2x.png,sha256=ki-tG_CkXAa-SGajxkfkwHPaOw2uipUKYRf9H86FB_k,27874
|
53
53
|
pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.36.55@2x.png,sha256=Y3XWP5RB8tY93ChiAHEGU1oc-o5O-3RRoAIs9SnHdLc,98769
|
54
54
|
pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.37.07@2x.png,sha256=pJZ0Yz5bXAadZasEBzUTxFy_VRB216saLD6OkyjnOWQ,455058
|
55
|
+
pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-06 at 08.46.30@2x.png,sha256=IbIpTsOAKt-TyvH-_tTG9_jemENgeVZ5QIoMuVLhHFo,950898
|
56
|
+
pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-12-06 at 11.27.56@2x.png,sha256=PZKjjJIht9SUouRNu5m5gNmc62mI0BXycnS7GLCbLxA,337971
|
55
57
|
pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/catalogs 2024-11-25 at 16.28.53@2x.png,sha256=VXRq9sOKApd5Vm1w5GwABI4RJM1V50R8S_rjQfNV3QI,171649
|
56
58
|
pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs-2024-11-20 at 16.17.43@2x.png,sha256=MUgoH6orUk9qUeCv8yEjuQ6sAao3eZyK3DOF4aXfqkw,525598
|
57
59
|
pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-11-25 at 20.14.50@2x.png,sha256=W6_JDqWKBOqeEMTAteX7JJ_MIPOigc2ttD01UYBxNxg,443831
|
@@ -173,7 +175,7 @@ pyegeria/full_omag_server_config.py,sha256=k3fUfopAFAE3OKkFR7zZPiki_FYj6j2xQ4oD2
|
|
173
175
|
pyegeria/glossary_browser_omvs.py,sha256=NcitYaZJqwVODBO5zBtWpXPNUJJ3DKzEbRaOFSAyUlg,93554
|
174
176
|
pyegeria/glossary_manager_omvs.py,sha256=SWgPGkRag5hOXYM-cpbWI6oW_DXUZBt4ePtmOP7ZYUc,128787
|
175
177
|
pyegeria/mermaid_utilities.py,sha256=GXiS-subb5nJcDqlThZWX2T8WspU1neFfhf4TxRoMh4,8344
|
176
|
-
pyegeria/metadata_explorer_omvs.py,sha256=
|
178
|
+
pyegeria/metadata_explorer_omvs.py,sha256=1Uf8xlRx440hRmUZxvRJHbUBQeuZgsL31j9D_1J3o9Y,85615
|
177
179
|
pyegeria/my_profile_omvs.py,sha256=DyECbUFEcgokrIbzdMMNljC3bqfqKGXAF2wZEpzvRYs,34666
|
178
180
|
pyegeria/platform_services.py,sha256=CJIOYIFEbcIGwdWlApAQcXxZTsdrhFtpJcm4O3p7dG0,41646
|
179
181
|
pyegeria/project_manager_omvs.py,sha256=Y7Lyqh4jIujJrr_Ub7feo904FN_uz4R10T4hKhqE1Uw,67499
|
@@ -182,10 +184,10 @@ pyegeria/runtime_manager_omvs.py,sha256=ygrY5I_oSoJQun05W7wSNbZT_nOtPp_BkIKKFCLF
|
|
182
184
|
pyegeria/server_operations.py,sha256=ciH890hYT85YQ6OpByn4w7s3a7TtvWZpIG5rkRqbcI0,16766
|
183
185
|
pyegeria/template_manager_omvs.py,sha256=heqbKeum5hPCHap4r1RUZU8YB3QaQlxVNbq4GZimJtE,42450
|
184
186
|
pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
|
185
|
-
pyegeria/valid_metadata_omvs.py,sha256=
|
187
|
+
pyegeria/valid_metadata_omvs.py,sha256=kmcyXBsu99L25r16w9xVXqU_KwADsGuft4yPDZzyUds,65032
|
186
188
|
pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
|
187
|
-
pyegeria-5.2.0.
|
188
|
-
pyegeria-5.2.0.
|
189
|
-
pyegeria-5.2.0.
|
190
|
-
pyegeria-5.2.0.
|
191
|
-
pyegeria-5.2.0.
|
189
|
+
pyegeria-5.2.0.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
190
|
+
pyegeria-5.2.0.10.dist-info/METADATA,sha256=AR9GWexnjhSGIuUeXkVdOQyLxU904RF_mZb2LzcAE7M,2880
|
191
|
+
pyegeria-5.2.0.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
192
|
+
pyegeria-5.2.0.10.dist-info/entry_points.txt,sha256=JhYgb02izlV2wb7SIfCOMxeVISUd9YJvgDW1-kuHad4,5240
|
193
|
+
pyegeria-5.2.0.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|