pyegeria 5.3.3.10.dev8__py3-none-any.whl → 5.3.3.10.dev10__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.
@@ -9,7 +9,7 @@ A simple viewer for Information Supply Chains
9
9
 
10
10
  import argparse
11
11
  import os
12
- from datetime import time
12
+ import time
13
13
 
14
14
  from rich import print, box
15
15
  from rich.console import Console
@@ -17,14 +17,16 @@ from rich.markdown import Markdown
17
17
  from rich.panel import Panel
18
18
  from rich.prompt import Prompt
19
19
  from rich.table import Table
20
+ from rich.text import Text
20
21
  from rich.tree import Tree
21
22
  from pyegeria.solution_architect_omvs import SolutionArchitect
22
23
  from pyegeria import (
23
24
  ProjectManager,
24
25
  UserNotAuthorizedException,
25
26
  PropertyServerException,
26
- InvalidParameterException, ClassificationManager, SolutionArchitect,
27
+ InvalidParameterException,
27
28
  )
29
+
28
30
  from pyegeria._exceptions import (
29
31
  print_exception_response,
30
32
  )
@@ -33,7 +35,7 @@ disable_ssl_warnings = True
33
35
  EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
34
36
  EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
35
37
  EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
36
- EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
38
+ EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "qs-view-server")
37
39
  EGERIA_VIEW_SERVER_URL = os.environ.get(
38
40
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
39
41
  )
@@ -78,13 +80,17 @@ def supply_chain_viewer(
78
80
 
79
81
  for sc in supply_chains:
80
82
  sc_name = sc["properties"].get("displayName", '---')
81
- sc_qname = sc["elementHeader"]["qualifiedName"]
83
+ sc_qname = sc["properties"].get("qualifiedName", '---')
82
84
  sc_guid = sc["elementHeader"]["guid"]
83
85
  sc_purpose = sc["properties"].get("purposes",'---')
86
+ if isinstance(sc_purpose, list):
87
+ sc_purpose_str = "\n".join(sc_purpose)
88
+ else:
89
+ sc_purpose_str = sc_purpose
84
90
  sc_scope = sc["properties"].get("scope",'---')
85
91
  sc_desc = sc["properties"].get("description",'---')
86
- sc_unique_name = f"\t{sc_qname}\n\t/\n\t{sc_guid}"
87
- table.add_row(sc_name, sc_unique_name, sc_purpose, sc_scope, sc_desc)
92
+ sc_unique_name = Text(f"\t{sc_qname}\n\t/\n\t{sc_guid}")
93
+ table.add_row(sc_name, sc_unique_name, sc_purpose_str, sc_scope, sc_desc)
88
94
 
89
95
  return table
90
96
 
@@ -163,7 +169,7 @@ def supply_chain_viewer(
163
169
 
164
170
  token = client.create_egeria_bearer_token()
165
171
 
166
- sc = client.find_all_information_supply_chains(search_string)
172
+ sc = client.find_information_supply_chains(search_string, start_from=0)
167
173
 
168
174
  if (isinstance(sc, list)):
169
175
  t = tree.add(display_supply_chains(sc))
@@ -24,7 +24,8 @@ from pyegeria import (
24
24
  TEMPLATE_GUIDS,
25
25
  INTEGRATION_GUIDS,
26
26
  MetadataExplorer,
27
- )
27
+ # SolutionArchitect,
28
+ )
28
29
 
29
30
 
30
31
  class EgeriaTech(
@@ -36,6 +37,7 @@ class EgeriaTech(
36
37
  RuntimeManager,
37
38
  ValidMetadataManager,
38
39
  MetadataExplorer,
40
+ # SolutionArchitect,
39
41
  ):
40
42
  """
41
43
  Client for technical Egeria users.
@@ -87,7 +89,9 @@ class EgeriaTech(
87
89
  MetadataExplorer.__init__(
88
90
  self, view_server, platform_url, user_id, user_pwd, token
89
91
  )
90
-
92
+ # SolutionArchitect.__init__(
93
+ # self, view_server, platform_url, user_id, user_pwd, token
94
+ # )
91
95
 
92
96
  if __name__ == "__main__":
93
97
  print("Main-Tech Client")
@@ -13,6 +13,9 @@ from httpx import Response
13
13
 
14
14
  from pyegeria import body_slimmer
15
15
  from pyegeria._client import Client, max_paging_size
16
+ import sys
17
+ import os
18
+ sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
16
19
 
17
20
  NO_ELEMENTS_FOUND = "No Elements Found"
18
21
 
@@ -628,7 +631,7 @@ class SolutionArchitect(Client):
628
631
  """Retrieve a list of all solution component elements
629
632
  https://egeria-project.org/concepts/solution-components
630
633
  """
631
- return (self.find_solution_components('*', start_from = start_from, page_size = page_size ))
634
+ return self.find_solution_components('*', start_from = start_from, page_size = page_size )
632
635
 
633
636
 
634
637
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyegeria
3
- Version: 5.3.3.10.dev8
3
+ Version: 5.3.3.10.dev10
4
4
  Summary: A python client for Egeria
5
5
  License: Apache 2.0
6
6
  Keywords: egeria,metadata,governance
@@ -41,7 +41,7 @@ pyegeria/commands/cat/__pycache__/list_user_ids.cpython-312.pyc,sha256=d03sLltHH
41
41
  pyegeria/commands/cat/exp_list_glossaries.py,sha256=HxMa5r7XxsH29KJ9GLOqIXD_PpUvrzsHe41LBWCZUTc,5811
42
42
  pyegeria/commands/cat/get_asset_graph.py,sha256=tHTib3AjbXzrGkOHE2SO51O_ARPjmmDq1UDbE8XSd7o,12454
43
43
  pyegeria/commands/cat/get_collection.py,sha256=ukUZA4Ot_Gjaym6LmFiWoGezshbcygJPowwHLooVHck,5359
44
- pyegeria/commands/cat/get_information_supply_chains.py,sha256=aXYmQ8tTY1NYCrFRM0K4-ui1vtkTB1UGTGZKaRNLTmc,7626
44
+ pyegeria/commands/cat/get_information_supply_chains.py,sha256=2WLlTN8UdadSSDNNTagyGqUsnqd066TJwBuLLe7vSL4,7791
45
45
  pyegeria/commands/cat/get_project_dependencies.py,sha256=NCUTAHAzScjQwoAHLf1DC9rGPg53VfjaTR96eahgjq8,5988
46
46
  pyegeria/commands/cat/get_project_structure.py,sha256=h6q5Ps3xRhV2Zqh6295nDCgVThUrWX5O-JC0qaSIM5s,5976
47
47
  pyegeria/commands/cat/get_tech_type_elements.py,sha256=9F0wBy8ireLFHLNChxkM4A7xJ4uFL4XKdXlm6roDk2I,6185
@@ -288,7 +288,7 @@ pyegeria/egeria_cat_client.py,sha256=NzwDbdi5OBHOOA7JzIQC5LqJJ7xtEwHA5yaKrGkDFnc
288
288
  pyegeria/egeria_client.py,sha256=tLVUCFv1mb12aX4WJCTezH1trE0dF3Oj5_zRzdlhyWY,3410
289
289
  pyegeria/egeria_config_client.py,sha256=Zm31u4e7o8mXTV93qD0IHluQuG73jYbArPFqypjaMso,1328
290
290
  pyegeria/egeria_my_client.py,sha256=XHwbFmSZXJClKDBFV8_fyK9CWaap2FndurRjywKPQiU,1549
291
- pyegeria/egeria_tech_client.py,sha256=KMxo7Er6DNjXWPG_CVpWbNTOSJYhUSG4Vu_2GaFgG0s,2599
291
+ pyegeria/egeria_tech_client.py,sha256=xNoJpm8jp_bY0lPGCQG2STjtAQsh8svs7cH8McmRYg8,2778
292
292
  pyegeria/feedback_manager_omvs.py,sha256=B66e3ZCaC_dirb0mcb2Nz3PYh2ZKsoMAYNOb3euNiro,152931
293
293
  pyegeria/full_omag_server_config.py,sha256=k3fUfopAFAE3OKkFR7zZPiki_FYj6j2xQ4oD2SVaefQ,47350
294
294
  pyegeria/glossary_browser_omvs.py,sha256=NcitYaZJqwVODBO5zBtWpXPNUJJ3DKzEbRaOFSAyUlg,93554
@@ -301,13 +301,13 @@ pyegeria/project_manager_omvs.py,sha256=Y7Lyqh4jIujJrr_Ub7feo904FN_uz4R10T4hKhqE
301
301
  pyegeria/registered_info.py,sha256=y0-LgDIQXpph0lEWxIOG3_HsqX_Z2iAIb3xu4Aa4B70,6344
302
302
  pyegeria/runtime_manager_omvs.py,sha256=sZfxgM7zVfryVsun5GwDpUT5htap91ZoZLNU7wspWm4,79575
303
303
  pyegeria/server_operations.py,sha256=PfH0wvWCOr43ezJAAXj7VEUdT0x_oTrfr0dzzQvcQk4,16766
304
- pyegeria/solution_architect_omvs.py,sha256=MHsWBgrYfwPSCoWZ_50MJJ_htNWMOZrkR0YyFzFjqtE,23141
304
+ pyegeria/solution_architect_omvs.py,sha256=eyAmi8z9ZEtjvfcF8dlMaoxiTsqmnMFQa6q2a18wwbg,23223
305
305
  pyegeria/template_manager_omvs.py,sha256=Sw5xsQAhy7a48xFCg59mg9_nqyhawoS9v4WyF-PjPqM,42425
306
306
  pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
307
307
  pyegeria/valid_metadata_omvs.py,sha256=cCt5CCLv6BdzCu90n68r_PkG_PEQJjrtwCxio7K6yko,65034
308
308
  pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
309
- pyegeria-5.3.3.10.dev8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
310
- pyegeria-5.3.3.10.dev8.dist-info/METADATA,sha256=okTXRkQVL8Z-vFvApIA8vvcNRoRezUS4jZCjNOeVQBk,2741
311
- pyegeria-5.3.3.10.dev8.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
312
- pyegeria-5.3.3.10.dev8.dist-info/entry_points.txt,sha256=CwtCppulHTB0m4vrIOiCVOaQXdNUG569RXMzrMJzldg,5953
313
- pyegeria-5.3.3.10.dev8.dist-info/RECORD,,
309
+ pyegeria-5.3.3.10.dev10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
310
+ pyegeria-5.3.3.10.dev10.dist-info/METADATA,sha256=8q1mQKjlNejlRY3Afy1P5amI_1Zvcv9PV0Bty9N8ChA,2742
311
+ pyegeria-5.3.3.10.dev10.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
312
+ pyegeria-5.3.3.10.dev10.dist-info/entry_points.txt,sha256=CwtCppulHTB0m4vrIOiCVOaQXdNUG569RXMzrMJzldg,5953
313
+ pyegeria-5.3.3.10.dev10.dist-info/RECORD,,