pyegeria 0.7.9__tar.gz → 0.7.11__tar.gz
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-0.7.9 → pyegeria-0.7.11}/PKG-INFO +1 -1
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/tech/get_tech_details.py +18 -9
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/automated_curation_omvs.py +816 -124
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyproject.toml +1 -4
- {pyegeria-0.7.9 → pyegeria-0.7.11}/LICENSE +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/README.md +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/doc_samples/Create_Collection_Sample.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/README.md +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/__init__.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/get_asset_graph.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/get_collection.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/get_project_structure.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/get_tech_type_elements.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/get_tech_type_template.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/list_assets.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/list_cert_types.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/list_glossary.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/list_projects.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/list_tech_types.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cat/list_todos.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cli/__init__.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cli/egeria.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cli/egeria_cat.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cli/egeria_my.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cli/egeria_ops.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cli/egeria_tech.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/cli/ops_config.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/my/README.md +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/my/__init__.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/my/list_my_profile.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/my/list_my_roles.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/my/monitor_my_todos.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/my/monitor_open_todos.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/my/my_profile_actions.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/README.md +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/__init__.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/engine_actions.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/integration_daemon_actions.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/list_catalog_targets.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/load_archive.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/monitor_asset_events.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/monitor_coco_status.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/monitor_engine_activity.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/monitor_gov_eng_status.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/monitor_integ_daemon_status.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/monitor_platform_status.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/monitor_server_list.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/monitor_server_status.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/refresh_integration_daemon.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/ops/restart_integration_daemon.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/tech/README.md +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/tech/__init__.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/tech/get_guid_info.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/tech/list_asset_types.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/tech/list_elements.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/tech/list_registered_services.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/tech/list_relationship_types.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/tech/list_tech_templates.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/examples/widgets/tech/list_valid_metadata_values.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/Xloaded_resources_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/__init__.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/_client.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/_deprecated_gov_engine.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/_exceptions.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/_globals.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/_validators.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/action_author_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/asset_catalog_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/classification_manager_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/collection_manager_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/core_omag_server_config.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/create_tech_guid_lists.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/feedback_manager_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/full_omag_server_config.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/glossary_browser_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/glossary_manager_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/my_profile_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/platform_services.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/project_manager_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/registered_info.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/runtime_manager_omvs.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/server_operations.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/utils.py +0 -0
- {pyegeria-0.7.9 → pyegeria-0.7.11}/pyegeria/valid_metadata_omvs.py +0 -0
@@ -7,10 +7,11 @@ A simple viewer for collections - provide the root and we display the hierarchy
|
|
7
7
|
|
8
8
|
"""
|
9
9
|
import argparse
|
10
|
-
import os
|
10
|
+
import os, sys
|
11
11
|
|
12
12
|
from rich import print
|
13
13
|
from rich.console import Console
|
14
|
+
from rich.markdown import Markdown
|
14
15
|
from rich.panel import Panel
|
15
16
|
from rich.prompt import Prompt
|
16
17
|
from rich.text import Text
|
@@ -43,7 +44,8 @@ disable_ssl_warnings = True
|
|
43
44
|
def tech_details_viewer(tech: str, server_name: str, platform_url: str, user: str, user_password: str,
|
44
45
|
jupyter: bool = EGERIA_JUPYTER, width: int = EGERIA_WIDTH):
|
45
46
|
console = Console(width=width, force_terminal=not jupyter)
|
46
|
-
|
47
|
+
# print(f"tech is {tech} of type {type(tech)}")
|
48
|
+
# sys.exit(0)
|
47
49
|
def view_tech_details(a_client: AutomatedCuration, root_collection_name: str, tree: Tree) -> Tree:
|
48
50
|
l2: Tree = None
|
49
51
|
tech_details = a_client.get_technology_type_detail(tech)
|
@@ -54,20 +56,25 @@ def tech_details_viewer(tech: str, server_name: str, platform_url: str, user: st
|
|
54
56
|
description = tech_details.get('description', '---')
|
55
57
|
|
56
58
|
style = "bold bright_white on black"
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
59
|
+
|
60
|
+
bas_md = f"* **Name**: {name}\n"
|
61
|
+
bas_md += f"* **QualifiedName**: {qualified_name}\n"
|
62
|
+
bas_md += f"* **Category**: {category}\n"
|
63
|
+
bas_md += f"* **Technology Description**: {description}\n"
|
64
|
+
|
65
|
+
bas_out = Markdown(bas_md)
|
66
|
+
|
67
|
+
l2 = tree.add(Panel(bas_out))
|
61
68
|
ext_ref = tech_details.get('externalReferences', None)
|
62
69
|
|
63
70
|
if ext_ref is not None:
|
64
71
|
uri = ext_ref[0]["properties"].get("uri", "---")
|
65
72
|
# console.print(f" {type(ext_ref)}, {len(ext_ref)}")
|
66
|
-
l2 = tree.add(Text(f'* URI: {uri}', style))
|
73
|
+
l2 = tree.add(Panel(Text(f'* URI: {uri}', style)))
|
67
74
|
|
68
75
|
resource_list = tech_details.get('resourceList', None)
|
69
76
|
if resource_list:
|
70
|
-
t_r = tree.add("Resource List[bold red]")
|
77
|
+
t_r = tree.add(Panel("Resource List[bold red]"))
|
71
78
|
for resource in resource_list:
|
72
79
|
resource_use = Text(f"[bold bright_white]{resource.get('resourceUse', '---')}")
|
73
80
|
resource_use_description = Text(f"[bold bright_white]{resource.get('resourceUseDescription', '---')}")
|
@@ -80,9 +87,11 @@ def tech_details_viewer(tech: str, server_name: str, platform_url: str, user: st
|
|
80
87
|
f"[white]Unique Name: {unique_name}\n[white]Related GUID: {related_guid}\n")
|
81
88
|
p = Panel.fit(resource_text)
|
82
89
|
tt = t_r.add(p, style=style)
|
90
|
+
else:
|
91
|
+
tt = tree.add(Panel(f"Resource details for {tech} where not found"))
|
83
92
|
|
84
93
|
else:
|
85
|
-
tt = tree.add(f"Tech type {tech} was not found - please check the tech type name")
|
94
|
+
tt = tree.add(Panel(f"Tech type {tech} was not found - please check the tech type name"))
|
86
95
|
|
87
96
|
return tt
|
88
97
|
|