pyegeria 5.4.7.2__py3-none-any.whl → 5.4.7.4__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.
- commands/cat/dr_egeria_md.py +1 -1
- commands/cat/list_format_set.py +6 -1
- commands/ops/list_catalog_targets.py +17 -14
- commands/ops/monitor_engine_activity.py +1 -1
- commands/ops/monitor_engine_activity_c.py +1 -1
- commands/tech/list_gov_action_processes.py +4 -8
- md_processing/dr_egeria.py +1 -1
- md_processing/md_commands/ext_ref_commands.py +1 -2
- md_processing/md_commands/glossary_commands.py +1 -2
- md_processing/md_commands/project_commands.py +1 -2
- pyegeria/__init__.py +3 -95
- pyegeria/_client_new.py +422 -13
- pyegeria/_globals.py +95 -1
- pyegeria/_output_formats.py +1 -1
- pyegeria/asset_catalog_omvs.py +1 -1
- pyegeria/automated_curation.py +33 -92
- pyegeria/classification_manager.py +5636 -0
- pyegeria/classification_manager_omvs.py +1989 -1853
- pyegeria/collection_manager.py +16 -4
- pyegeria/data_designer.py +1 -2
- pyegeria/egeria_tech_client.py +3 -0
- pyegeria/external_references.py +2 -2
- pyegeria/format_set_executor.py +8 -9
- pyegeria/full_omag_server_config.py +1 -1
- pyegeria/glossary_manager.py +2 -2
- pyegeria/mcp_adapter.py +1 -1
- pyegeria/mcp_server.py +36 -21
- pyegeria/md_processing_utils.py +3 -3
- pyegeria/md_processing_utils_orig.py +3 -3
- pyegeria/mermaid_utilities.py +0 -152
- pyegeria/models.py +5 -0
- pyegeria/output_formatter.py +1 -1
- pyegeria/runtime_manager_omvs.py +1 -1
- pyegeria/solution_architect.py +1 -1
- {pyegeria-5.4.7.2.dist-info → pyegeria-5.4.7.4.dist-info}/METADATA +1 -1
- {pyegeria-5.4.7.2.dist-info → pyegeria-5.4.7.4.dist-info}/RECORD +40 -40
- pyegeria/md_processing_helpers.py +0 -58
- {pyegeria-5.4.7.2.dist-info → pyegeria-5.4.7.4.dist-info}/WHEEL +0 -0
- {pyegeria-5.4.7.2.dist-info → pyegeria-5.4.7.4.dist-info}/entry_points.txt +0 -0
- {pyegeria-5.4.7.2.dist-info → pyegeria-5.4.7.4.dist-info}/licenses/LICENSE +0 -0
- {pyegeria-5.4.7.2.dist-info → pyegeria-5.4.7.4.dist-info}/top_level.txt +0 -0
pyegeria/automated_curation.py
CHANGED
@@ -12,14 +12,14 @@ import datetime
|
|
12
12
|
from httpx import Response
|
13
13
|
|
14
14
|
from pyegeria._client_new import Client2
|
15
|
-
from pyegeria._exceptions import (
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
)
|
15
|
+
# from pyegeria._exceptions import (
|
16
|
+
# InvalidParameterException,
|
17
|
+
# PropertyServerException,
|
18
|
+
# UserNotAuthorizedException,
|
19
|
+
# )
|
20
20
|
from pyegeria.models import GetRequestBody, FilterRequestBody
|
21
21
|
from pyegeria.utils import body_slimmer
|
22
|
-
from ._validators import validate_guid, validate_name, validate_search_string
|
22
|
+
from pyegeria._validators import validate_guid, validate_name, validate_search_string
|
23
23
|
|
24
24
|
|
25
25
|
class AutomatedCuration(Client2):
|
@@ -68,10 +68,7 @@ class AutomatedCuration(Client2):
|
|
68
68
|
|
69
69
|
Raises
|
70
70
|
------
|
71
|
-
|
72
|
-
PropertyServerException
|
73
|
-
UserNotAuthorizedException
|
74
|
-
|
71
|
+
PyegeriaException
|
75
72
|
Notes
|
76
73
|
-----
|
77
74
|
See also: https://egeria-project.org/features/templated-cataloguing/overview/
|
@@ -1409,7 +1406,7 @@ class AutomatedCuration(Client2):
|
|
1409
1406
|
|
1410
1407
|
Raises
|
1411
1408
|
------
|
1412
|
-
|
1409
|
+
PyegeriaException
|
1413
1410
|
ValidationError
|
1414
1411
|
|
1415
1412
|
Notes
|
@@ -1431,7 +1428,7 @@ class AutomatedCuration(Client2):
|
|
1431
1428
|
# return await self._async_get_guid_request(url, "EngineAction", _generate_default_output,
|
1432
1429
|
# output_format="JSON", output_format_set="Referenceable", body=body )
|
1433
1430
|
response = await self._async_make_request("GET", url)
|
1434
|
-
return response.json().get("
|
1431
|
+
return response.json().get("elements", "No element found")
|
1435
1432
|
|
1436
1433
|
def get_engine_actions(
|
1437
1434
|
self, start_from: int = 0, page_size: int = 0, body: dict | GetRequestBody = None
|
@@ -1453,7 +1450,7 @@ class AutomatedCuration(Client2):
|
|
1453
1450
|
|
1454
1451
|
Raises
|
1455
1452
|
------
|
1456
|
-
|
1453
|
+
PyegeriaException
|
1457
1454
|
ValidationError
|
1458
1455
|
|
1459
1456
|
Notes
|
@@ -1490,7 +1487,7 @@ class AutomatedCuration(Client2):
|
|
1490
1487
|
|
1491
1488
|
Raises
|
1492
1489
|
------
|
1493
|
-
|
1490
|
+
PyegeriaException
|
1494
1491
|
ValidationError
|
1495
1492
|
|
1496
1493
|
|
@@ -1520,10 +1517,7 @@ class AutomatedCuration(Client2):
|
|
1520
1517
|
|
1521
1518
|
Raises
|
1522
1519
|
------
|
1523
|
-
|
1524
|
-
PropertyServerException
|
1525
|
-
UserNotAuthorizedException
|
1526
|
-
|
1520
|
+
PyegeriaException
|
1527
1521
|
Notes
|
1528
1522
|
-----
|
1529
1523
|
For more information see: https://egeria-project.org/concepts/engine-action
|
@@ -1550,10 +1544,7 @@ class AutomatedCuration(Client2):
|
|
1550
1544
|
|
1551
1545
|
Raises
|
1552
1546
|
------
|
1553
|
-
|
1554
|
-
PropertyServerException
|
1555
|
-
UserNotAuthorizedException
|
1556
|
-
|
1547
|
+
PyegeriaException
|
1557
1548
|
Notes
|
1558
1549
|
-----
|
1559
1550
|
For more information see: https://egeria-project.org/concepts/engine-action
|
@@ -1584,10 +1575,7 @@ class AutomatedCuration(Client2):
|
|
1584
1575
|
|
1585
1576
|
Raises
|
1586
1577
|
------
|
1587
|
-
|
1588
|
-
PropertyServerException
|
1589
|
-
UserNotAuthorizedException
|
1590
|
-
|
1578
|
+
PyegeriaException
|
1591
1579
|
Notes
|
1592
1580
|
-----
|
1593
1581
|
For more information see: https://egeria-project.org/concepts/engine-action
|
@@ -1689,10 +1677,7 @@ class AutomatedCuration(Client2):
|
|
1689
1677
|
found with the given name.
|
1690
1678
|
Raises:
|
1691
1679
|
------
|
1692
|
-
|
1693
|
-
PropertyServerException
|
1694
|
-
UserNotAuthorizedException
|
1695
|
-
|
1680
|
+
PyegeriaException
|
1696
1681
|
Notes
|
1697
1682
|
-----
|
1698
1683
|
For more information see: https://egeria-project.org/concepts/engine-action
|
@@ -1735,10 +1720,7 @@ class AutomatedCuration(Client2):
|
|
1735
1720
|
found with the given name.
|
1736
1721
|
Raises:
|
1737
1722
|
------
|
1738
|
-
|
1739
|
-
PropertyServerException
|
1740
|
-
UserNotAuthorizedException
|
1741
|
-
|
1723
|
+
PyegeriaException
|
1742
1724
|
Notes
|
1743
1725
|
-----
|
1744
1726
|
For more information see: https://egeria-project.org/concepts/engine-action
|
@@ -1790,10 +1772,7 @@ class AutomatedCuration(Client2):
|
|
1790
1772
|
|
1791
1773
|
Raises:
|
1792
1774
|
------
|
1793
|
-
|
1794
|
-
PropertyServerException
|
1795
|
-
UserNotAuthorizedException
|
1796
|
-
|
1775
|
+
PyegeriaException
|
1797
1776
|
Notes
|
1798
1777
|
-----
|
1799
1778
|
For more information see: https://egeria-project.org/concepts/engine-action
|
@@ -1854,10 +1833,7 @@ class AutomatedCuration(Client2):
|
|
1854
1833
|
|
1855
1834
|
Raises:
|
1856
1835
|
------
|
1857
|
-
|
1858
|
-
PropertyServerException
|
1859
|
-
UserNotAuthorizedException
|
1860
|
-
|
1836
|
+
PyegeriaException
|
1861
1837
|
Notes
|
1862
1838
|
-----
|
1863
1839
|
For more information see: https://egeria-project.org/concepts/engine-action
|
@@ -2026,10 +2002,7 @@ class AutomatedCuration(Client2):
|
|
2026
2002
|
or "no actions" if no engine actions were found with the given name.
|
2027
2003
|
Raises:
|
2028
2004
|
------
|
2029
|
-
|
2030
|
-
PropertyServerException
|
2031
|
-
UserNotAuthorizedException
|
2032
|
-
"""
|
2005
|
+
PyegeriaException """
|
2033
2006
|
|
2034
2007
|
validate_name(name)
|
2035
2008
|
|
@@ -2068,10 +2041,7 @@ class AutomatedCuration(Client2):
|
|
2068
2041
|
or "no actions" if no engine actions were found with the given name.
|
2069
2042
|
Raises:
|
2070
2043
|
------
|
2071
|
-
|
2072
|
-
PropertyServerException
|
2073
|
-
UserNotAuthorizedException
|
2074
|
-
"""
|
2044
|
+
PyegeriaException """
|
2075
2045
|
loop = asyncio.get_event_loop()
|
2076
2046
|
response = loop.run_until_complete(
|
2077
2047
|
self._async_get_gov_action_processes_by_name(name, start_from, page_size)
|
@@ -2119,10 +2089,7 @@ class AutomatedCuration(Client2):
|
|
2119
2089
|
|
2120
2090
|
Raises:
|
2121
2091
|
------
|
2122
|
-
|
2123
|
-
PropertyServerException
|
2124
|
-
UserNotAuthorizedException
|
2125
|
-
"""
|
2092
|
+
PyegeriaException """
|
2126
2093
|
|
2127
2094
|
validate_search_string(search_string)
|
2128
2095
|
if search_string == "*":
|
@@ -2185,10 +2152,7 @@ class AutomatedCuration(Client2):
|
|
2185
2152
|
|
2186
2153
|
Raises:
|
2187
2154
|
------
|
2188
|
-
|
2189
|
-
PropertyServerException
|
2190
|
-
UserNotAuthorizedException
|
2191
|
-
"""
|
2155
|
+
PyegeriaException """
|
2192
2156
|
|
2193
2157
|
loop = asyncio.get_event_loop()
|
2194
2158
|
response = loop.run_until_complete(
|
@@ -2238,10 +2202,7 @@ class AutomatedCuration(Client2):
|
|
2238
2202
|
|
2239
2203
|
Raises
|
2240
2204
|
------
|
2241
|
-
|
2242
|
-
PropertyServerException
|
2243
|
-
UserNotAuthorizedException
|
2244
|
-
|
2205
|
+
PyegeriaException
|
2245
2206
|
"""
|
2246
2207
|
|
2247
2208
|
start_time: datetime = (
|
@@ -2298,10 +2259,7 @@ class AutomatedCuration(Client2):
|
|
2298
2259
|
|
2299
2260
|
Raises
|
2300
2261
|
------
|
2301
|
-
|
2302
|
-
PropertyServerException
|
2303
|
-
UserNotAuthorizedException
|
2304
|
-
|
2262
|
+
PyegeriaException
|
2305
2263
|
"""
|
2306
2264
|
loop = asyncio.get_event_loop()
|
2307
2265
|
response = loop.run_until_complete(
|
@@ -2487,10 +2445,7 @@ class AutomatedCuration(Client2):
|
|
2487
2445
|
|
2488
2446
|
Raises
|
2489
2447
|
------
|
2490
|
-
|
2491
|
-
PropertyServerException
|
2492
|
-
UserNotAuthorizedException
|
2493
|
-
|
2448
|
+
PyegeriaException
|
2494
2449
|
"""
|
2495
2450
|
|
2496
2451
|
validate_search_string(search_string)
|
@@ -2548,10 +2503,7 @@ class AutomatedCuration(Client2):
|
|
2548
2503
|
|
2549
2504
|
Raises
|
2550
2505
|
------
|
2551
|
-
|
2552
|
-
PropertyServerException
|
2553
|
-
UserNotAuthorizedException
|
2554
|
-
|
2506
|
+
PyegeriaException
|
2555
2507
|
"""
|
2556
2508
|
loop = asyncio.get_event_loop()
|
2557
2509
|
response = loop.run_until_complete(
|
@@ -2601,10 +2553,7 @@ class AutomatedCuration(Client2):
|
|
2601
2553
|
|
2602
2554
|
Raises
|
2603
2555
|
------
|
2604
|
-
|
2605
|
-
PropertyServerException
|
2606
|
-
UserNotAuthorizedException
|
2607
|
-
|
2556
|
+
PyegeriaException
|
2608
2557
|
"""
|
2609
2558
|
|
2610
2559
|
url = f"{self.curation_command_root}/governance-action-types/initiate"
|
@@ -2658,10 +2607,7 @@ class AutomatedCuration(Client2):
|
|
2658
2607
|
|
2659
2608
|
Raises
|
2660
2609
|
------
|
2661
|
-
|
2662
|
-
PropertyServerException
|
2663
|
-
UserNotAuthorizedException
|
2664
|
-
"""
|
2610
|
+
PyegeriaException """
|
2665
2611
|
loop = asyncio.get_event_loop()
|
2666
2612
|
response = loop.run_until_complete(
|
2667
2613
|
self._async_initiate_gov_action_type(
|
@@ -3672,7 +3618,7 @@ class AutomatedCuration(Client2):
|
|
3672
3618
|
If the technology type is not found, returns the string "no type found".
|
3673
3619
|
Raises
|
3674
3620
|
------
|
3675
|
-
|
3621
|
+
PyegeriaException
|
3676
3622
|
ValidationError
|
3677
3623
|
|
3678
3624
|
Notes
|
@@ -3730,7 +3676,7 @@ class AutomatedCuration(Client2):
|
|
3730
3676
|
If the technology type is not found, returns the string "no type found".
|
3731
3677
|
Raises
|
3732
3678
|
------
|
3733
|
-
|
3679
|
+
PyegeriaException
|
3734
3680
|
ValidationError
|
3735
3681
|
|
3736
3682
|
Notes
|
@@ -3916,10 +3862,7 @@ class AutomatedCuration(Client2):
|
|
3916
3862
|
|
3917
3863
|
Raises
|
3918
3864
|
------
|
3919
|
-
|
3920
|
-
PropertyServerException
|
3921
|
-
UserNotAuthorizedException
|
3922
|
-
"""
|
3865
|
+
PyegeriaException """
|
3923
3866
|
if governance_action:
|
3924
3867
|
name = governance_action.get("displayName")
|
3925
3868
|
if not name:
|
@@ -3962,10 +3905,7 @@ class AutomatedCuration(Client2):
|
|
3962
3905
|
|
3963
3906
|
Raises
|
3964
3907
|
------
|
3965
|
-
|
3966
|
-
PropertyServerException
|
3967
|
-
UserNotAuthorizedException
|
3968
|
-
|
3908
|
+
PyegeriaException
|
3969
3909
|
"""
|
3970
3910
|
governance_actions = self.get_engine_actions()
|
3971
3911
|
if governance_actions is not None:
|
@@ -4074,5 +4014,6 @@ class AutomatedCuration(Client2):
|
|
4074
4014
|
return response
|
4075
4015
|
|
4076
4016
|
|
4017
|
+
|
4077
4018
|
if __name__ == "__main__":
|
4078
4019
|
print("Main-Automated Curation")
|