pyegeria 5.4.7.5__py3-none-any.whl → 5.4.7.6__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.
@@ -109,7 +109,7 @@ def display_engine_activity(
109
109
  table.add_column("Process Name")
110
110
  table.add_column("Completion Message")
111
111
 
112
- action_status = g_client.get_engine_actions()
112
+ action_status = g_client.get_active_engine_actions()
113
113
 
114
114
  if type(action_status) is str:
115
115
  requested_time = " "
@@ -534,7 +534,7 @@ def process_solution_component_upsert_command(egeria_client: EgeriaTech, txt: st
534
534
 
535
535
  else:
536
536
  body = body_slimmer({
537
- "class": "NewSolutionElementRequestBody",
537
+ "class": "NewElementRequestBody",
538
538
  "anchorGUID": anchor_guid,
539
539
  "isOwnAnchor": is_own_anchor,
540
540
  "parentGUID": parent_guid,
@@ -1737,154 +1737,6 @@ class AutomatedCuration(Client2):
1737
1737
  #
1738
1738
  # Engine Actions
1739
1739
  #
1740
- async def _async_get_engine_actions(
1741
- self, start_from: int = 0, page_size: int = 0, body: dict | GetRequestBody = None,
1742
- output_format: str = "JSON", output_format_set: str | dict = "EngineAction"
1743
- ) -> list | str:
1744
- """Retrieve the engine actions that are known to the server. Async version.
1745
- Parameters
1746
- ----------
1747
-
1748
- start_from : int, optional
1749
- The starting index of the actions to retrieve. Default is 0.
1750
- page_size : int, optional
1751
- The maximum number of actions to retrieve per page. Default is the global maximum paging size.
1752
- body: dict, optional
1753
- If provided, supersedes the other parameters. Allows advanced options.
1754
-
1755
- Returns
1756
- -------
1757
- [dict]
1758
- A list of engine action descriptions as JSON.
1759
-
1760
- Raises
1761
- ------
1762
- PyegeriaException
1763
- ValidationError
1764
-
1765
- Notes
1766
- -----
1767
- For more information see: https://egeria-project.org/concepts/engine-action
1768
- sample body:
1769
- {
1770
- "class": "GetRequestBody",
1771
- "asOfTime": "{{$isoTimestamp}}",
1772
- "effectiveTime": "{{$isoTimestamp}}",
1773
- "forLineage": false,
1774
- "forDuplicateProcessing": false
1775
- }
1776
- """
1777
- url = (
1778
- f"{self.curation_command_root}/engine-actions?startFrom={start_from}&pageSize={page_size}"
1779
- )
1780
-
1781
- # return await self._async_get_guid_request(url, "EngineAction", _generate_default_output,
1782
- # output_format="JSON", output_format_set="Referenceable", body=body )
1783
- response = await self._async_make_request("GET", url)
1784
- elements = response.json().get("elements", "No element found")
1785
- # Apply formatter if not raw JSON requested
1786
- return self._generate_engine_action_output(elements, None, self.ENGINE_ACTION_LABEL,
1787
- output_format=output_format, output_format_set=output_format_set)
1788
-
1789
- def get_engine_actions(
1790
- self, start_from: int = 0, page_size: int = 0, body: dict | GetRequestBody = None,
1791
- output_format: str = "JSON", output_format_set: str | dict = "EngineAction"
1792
- ) -> list | str:
1793
- """Retrieve the engine actions that are known to the server.
1794
- Parameters
1795
- ----------
1796
- start_from : int, optional
1797
- The starting index of the actions to retrieve. Default is 0.
1798
- page_size : int, optional
1799
- The maximum number of actions to retrieve per page. Default is the global maximum paging size.
1800
- body: dict, optional
1801
- If provided, supersedes the other parameters. Allows advanced options.
1802
-
1803
- Returns
1804
- -------
1805
- [dict]
1806
- A list of engine action descriptions as JSON.
1807
-
1808
- Raises
1809
- ------
1810
- PyegeriaException
1811
- ValidationError
1812
-
1813
- Notes
1814
- -----
1815
- For more information see: https://egeria-project.org/concepts/engine-action
1816
- sample body:
1817
- {
1818
- "class": "GetRequestBody",
1819
- "asOfTime": "{{$isoTimestamp}}",
1820
- "effectiveTime": "{{$isoTimestamp}}",
1821
- "forLineage": false,
1822
- "forDuplicateProcessing": false
1823
- }
1824
- """
1825
- loop = asyncio.get_event_loop()
1826
- response = loop.run_until_complete(
1827
- self._async_get_engine_actions(start_from, page_size, body,
1828
- output_format=output_format, output_format_set=output_format_set)
1829
- )
1830
- return response
1831
-
1832
- async def _async_get_engine_action(self, engine_action_guid: str) -> dict:
1833
- """Request the status and properties of an executing engine action request. Async version.
1834
- Parameters
1835
- ----------
1836
- engine_action_guid : str
1837
- The GUID of the engine action to retrieve.
1838
-
1839
-
1840
-
1841
- Returns
1842
- -------
1843
- dict
1844
- The JSON representation of the engine action.
1845
-
1846
- Raises
1847
- ------
1848
- PyegeriaException
1849
- ValidationError
1850
-
1851
-
1852
- Notes
1853
- -----
1854
- For more information see: https://egeria-project.org/concepts/engine-action
1855
- """
1856
-
1857
- url = f"{self.curation_command_root}/engine-actions/{engine_action_guid}"
1858
-
1859
- response = await self._async_make_request("GET", url)
1860
- return response.json().get("element", "No element found")
1861
-
1862
- def get_engine_action(self, engine_action_guid: str) -> dict:
1863
- """Request the status and properties of an executing engine action request.
1864
- Parameters
1865
- ----------
1866
- engine_action_guid : str
1867
- The GUID of the engine action to retrieve.
1868
-
1869
-
1870
-
1871
- Returns
1872
- -------
1873
- dict
1874
- The JSON representation of the engine action.
1875
-
1876
- Raises
1877
- ------
1878
- PyegeriaException
1879
- Notes
1880
- -----
1881
- For more information see: https://egeria-project.org/concepts/engine-action
1882
- """
1883
- loop = asyncio.get_event_loop()
1884
- response = loop.run_until_complete(
1885
- self._async_get_engine_action(engine_action_guid)
1886
- )
1887
- return response
1888
1740
 
1889
1741
  async def _async_cancel_engine_action(self, engine_action_guid: str) -> None:
1890
1742
  """Request that an engine action request is cancelled and any running governance service is stopped. Async Ver.
@@ -1944,7 +1796,7 @@ class AutomatedCuration(Client2):
1944
1796
 
1945
1797
  async def _async_get_active_engine_actions(
1946
1798
  self, start_from: int = 0, page_size: int = 0,
1947
- output_format: str = "JSON", output_format_set: str | dict = "EngineAction"
1799
+ output_format: str = "JSON", output_format_set: str | dict = "EngineAction",
1948
1800
  ) -> list | str:
1949
1801
  """Retrieve the engine actions that are still in process. Async Version.
1950
1802
 
@@ -1976,13 +1828,20 @@ class AutomatedCuration(Client2):
1976
1828
  )
1977
1829
 
1978
1830
  response = await self._async_make_request("GET", url)
1979
- elements = response.json().get("elements", "no actions")
1980
- return self._generate_engine_action_output(elements, None, self.ENGINE_ACTION_LABEL,
1981
- output_format=output_format, output_format_set=output_format_set)
1831
+ elements = response.json().get("elements", "No actions found")
1832
+ if type(elements) is str:
1833
+ logger.info("No Actions Found")
1834
+ return "No Actions Found"
1835
+
1836
+ if output_format.upper() != 'JSON': # return a simplified markdown representation
1837
+ # logger.info(f"Found elements, output format: {output_format} and output_format_set: {output_format_set}")
1838
+ return self._generate_engine_action_output(elements, None, "EngineAction",
1839
+ output_format, output_format_set)
1840
+ return elements
1982
1841
 
1983
1842
  def get_active_engine_actions(
1984
1843
  self, start_from: int = 0, page_size: int = 0,
1985
- output_format: str = "JSON", output_format_set: str | dict = "EngineAction"
1844
+ output_format: str = "JSON", output_format_set: str | dict = "EngineAction",
1986
1845
  ) -> list | str:
1987
1846
  """Retrieve the engine actions that are still in process.
1988
1847
 
@@ -1619,7 +1619,8 @@ class SolutionArchitect(Client2):
1619
1619
 
1620
1620
  return self.find_information_supply_chains("*", classification_names, metadata_element_types, starts_with, ends_with, ignore_case, start_from, page_size, output_format, output_format_set, body)
1621
1621
 
1622
- async def _async_find_information_supply_chains(self, search_string: str = "*", classification_names: list[str] = None,
1622
+ async def _async_find_information_supply_chains(self, search_string: str = "*", add_implementation: bool = True,
1623
+ classification_names: list[str] = None,
1623
1624
  metadata_element_types: list[str] = None,
1624
1625
  starts_with: bool = True, ends_with: bool = False,
1625
1626
  ignore_case: bool = False, start_from: int = 0,
@@ -1682,7 +1683,7 @@ class SolutionArchitect(Client2):
1682
1683
 
1683
1684
  """
1684
1685
 
1685
- url = f"{self.solution_architect_command_root}/information-supply-chains/by-search-string"
1686
+ url = f"{self.solution_architect_command_root}/information-supply-chains/by-search-string?addImplementation={add_implementation}"
1686
1687
  return await self._async_find_request(url, _type="GovernanceDefinition",
1687
1688
  _gen_output=self.generate_info_supply_chain_output,
1688
1689
  search_string=search_string, classification_names=classification_names,
@@ -1694,7 +1695,8 @@ class SolutionArchitect(Client2):
1694
1695
 
1695
1696
 
1696
1697
 
1697
- def find_information_supply_chains(self, search_string: str = "*", classification_names: list[str] = None,
1698
+ def find_information_supply_chains(self, search_string: str = "*", add_implementation: bool = False,
1699
+ classification_names: list[str] = None,
1698
1700
  metadata_element_types: list[str] = None,
1699
1701
  starts_with: bool = True, ends_with: bool = False,
1700
1702
  ignore_case: bool = False, start_from: int = 0,
@@ -1763,7 +1765,7 @@ class SolutionArchitect(Client2):
1763
1765
 
1764
1766
  loop = asyncio.get_event_loop()
1765
1767
  response = loop.run_until_complete(
1766
- self._async_find_information_supply_chains(search_string, classification_names, metadata_element_types,
1768
+ self._async_find_information_supply_chains(search_string, add_implementation,classification_names, metadata_element_types,
1767
1769
  starts_with, ends_with, ignore_case,
1768
1770
  start_from, page_size, output_format,
1769
1771
  output_format_set, body))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyegeria
3
- Version: 5.4.7.5
3
+ Version: 5.4.7.6
4
4
  Summary: A python client for Egeria
5
5
  Author-email: Dan Wolfson <dan.wolfson@pdr-associates.com>
6
6
  License-Expression: Apache-2.0
@@ -48,7 +48,7 @@ commands/ops/list_archives.py,sha256=jKm_easQUjJNRkuasILvuVpQBFuyyBlBHE-L0i0FGgQ
48
48
  commands/ops/list_catalog_targets.py,sha256=imtWWp71xObsN_-FDyUCcSjgzFKcAPXCtVRNm8ee_m4,7665
49
49
  commands/ops/load_archive.py,sha256=DRmwPq2MOaaW87icgM3vu8oSSAD4vwtCaA2DGr3brBU,3008
50
50
  commands/ops/monitor_asset_events.py,sha256=5XXWt5yvl9mGq1Lve9gdrWT0dvvTWpFr_lFWO-_WdaU,3883
51
- commands/ops/monitor_engine_activity.py,sha256=AVSOtxlKBSM5yrh9YsOk5agevZMhLGPjT8j0uaVWjqU,9897
51
+ commands/ops/monitor_engine_activity.py,sha256=7PFDTZmOs8b2Uy_8VgSvUu5PH1tVefAKNrnY-ZF2kww,9904
52
52
  commands/ops/monitor_engine_activity_c.py,sha256=OlN72BaK_Abgp_HlYWa-aF8jhL0JqhZl7wFK9_QvzwY,10774
53
53
  commands/ops/monitor_gov_eng_status.py,sha256=gK5HXewXKnLEjCBRkbEyzbGtWs998P-AoFKaMCAQBLs,9917
54
54
  commands/ops/monitor_integ_daemon_status.py,sha256=N09KaP1eA3OiGfRS4GgbjKxnkheMYK6oQojNbuO6KRo,11828
@@ -103,7 +103,7 @@ md_processing/md_commands/glossary_commands.py,sha256=g0SHac8Gu_rtaUcscJYZHEbKDl
103
103
  md_processing/md_commands/governance_officer_commands.py,sha256=c7SnJqQooPr3zCebDzeztAM8wZq9G7ZB4EpJ-uR5moI,26479
104
104
  md_processing/md_commands/product_manager_commands.py,sha256=4YKKdd_2tI5ekZlSJBiJJGqFISD7X6m0rfEd2wEL_PY,57790
105
105
  md_processing/md_commands/project_commands.py,sha256=GXipp2o40o1syakH8pJ8lFO2y5mrZw4UZVcjTSPiIF8,17107
106
- md_processing/md_commands/solution_architect_commands.py,sha256=4Ghb8j2wlDdWtHoSCrx5jCJFEJfqII4mnFJ_tqduRKI,52569
106
+ md_processing/md_commands/solution_architect_commands.py,sha256=FKBn-kO6Eqs39D04zhBDYM3CUl6HJP2Wt1yNORtRkkc,52561
107
107
  md_processing/md_commands/view_commands.py,sha256=bIOSw0GVluOcpZMQNioeO1Srr4Y_84YNz-VHMKpPfVE,12092
108
108
  md_processing/md_processing_utils/__init__.py,sha256=LxAmxlcji26ziKV4gGar01d95gL9vgToRIeJW8N-Ifs,80
109
109
  md_processing/md_processing_utils/common_md_proc_utils.py,sha256=gT9Xc2BlZZe7MBRpENfz2As95N3oGk4LRko1dg9AGyI,58673
@@ -127,7 +127,7 @@ pyegeria/_output_format_models.py,sha256=p9fTYaIa5KyTMIR4-JAbE9g66_gGMPTnUqjIq20
127
127
  pyegeria/_output_formats.py,sha256=0IXO8ol5nuZAtttBfQPYoUyEa3qX1RlkMLons2Xrmi8,184307
128
128
  pyegeria/_validators.py,sha256=pNxND0dN2qvyuGE52N74l1Ezfrh2p9Hao2ziR_t1ENI,7425
129
129
  pyegeria/asset_catalog_omvs.py,sha256=sBXPgkRe_ZFOunZ-xoZe4qndILf9L0dPRHpQb_95bHw,29030
130
- pyegeria/automated_curation.py,sha256=yI06WLkaCEVgmVJIMr-jNAqk7c7Ef9aXSUamBgs8Avs,146949
130
+ pyegeria/automated_curation.py,sha256=34N4stE52OENMJHIuESm4TiR4B5AlyH_WV_o-8szEHM,142016
131
131
  pyegeria/classification_manager.py,sha256=wT42fqcdtu9qt3N9_gazxDzkjK63tc5Xg6uG801Opmk,250435
132
132
  pyegeria/classification_manager_omvs.py,sha256=QkcH33BmdoOnyM9Ojwi084ULC3BaesZV6_a-pNyYkcU,184192
133
133
  pyegeria/collection_manager.py,sha256=kNIo1XXoG5b7tQpSZWNnkjZ8lp8X8pTamyvGZmmkqe8,239194
@@ -164,14 +164,14 @@ pyegeria/reference_data.py,sha256=QWyTjrk-xfpIs578GxQO9gtOyl1gdc4PXhD12mbkwwI,42
164
164
  pyegeria/registered_info.py,sha256=y0-LgDIQXpph0lEWxIOG3_HsqX_Z2iAIb3xu4Aa4B70,6344
165
165
  pyegeria/runtime_manager_omvs.py,sha256=k0lwSuOrbql_UoJ7Rf4fgh-SQQbiii4CQbvOUlaejyM,80302
166
166
  pyegeria/server_operations.py,sha256=dTqUEmX1B77b0x61OSU0aonsW8KwIpfzb3eioRpwaiI,16832
167
- pyegeria/solution_architect.py,sha256=WQtbAJLOPeU2db9wT6IoOJikoTAmxASVw2fgath-QUc,233700
167
+ pyegeria/solution_architect.py,sha256=dqtHIYMNug8vb4x7juyb_moWGDOeh4bkAwHuhz53GXA,233914
168
168
  pyegeria/template_manager_omvs.py,sha256=chBljs1vy5wr9DRAtbvIt4Cob_7HxGfxLkCNlDTM-rQ,42755
169
169
  pyegeria/utils.py,sha256=xOTxk9PH8ZGZmgIwz_a6rczTVLADLEjucr10ZJTUnY4,9272
170
170
  pyegeria/valid_metadata_omvs.py,sha256=Xq9DqBQvBFFJzaFIRKcVZ2k4gJvSh9yeXs_j-O3vn1w,65050
171
171
  pyegeria/x_action_author_omvs.py,sha256=XyRsUgN-xnWR-cJayzo5RtY4Xv1uBDML4pwaKHrwC1w,6430
172
- pyegeria-5.4.7.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
173
- pyegeria-5.4.7.5.dist-info/METADATA,sha256=cOZDV2TIQinDhnTDxqH7UvDd0vZZrl38_5rnuvXt96o,5898
174
- pyegeria-5.4.7.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
175
- pyegeria-5.4.7.5.dist-info/entry_points.txt,sha256=Ig9cZyl-nq_RohLvahgWXzZbcpHzLS3Zdc1A8qvdPG0,6595
176
- pyegeria-5.4.7.5.dist-info/top_level.txt,sha256=48Mt-O3p8yO7jiEv6-Y9bUsryqJn9BQsiyV0BqSn8tk,32
177
- pyegeria-5.4.7.5.dist-info/RECORD,,
172
+ pyegeria-5.4.7.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
173
+ pyegeria-5.4.7.6.dist-info/METADATA,sha256=FN5gJq9nKqd-vmXtGw9gweZEZySzxfZ27PpQF7MKt2s,5898
174
+ pyegeria-5.4.7.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
175
+ pyegeria-5.4.7.6.dist-info/entry_points.txt,sha256=Ig9cZyl-nq_RohLvahgWXzZbcpHzLS3Zdc1A8qvdPG0,6595
176
+ pyegeria-5.4.7.6.dist-info/top_level.txt,sha256=48Mt-O3p8yO7jiEv6-Y9bUsryqJn9BQsiyV0BqSn8tk,32
177
+ pyegeria-5.4.7.6.dist-info/RECORD,,