pyegeria 0.5.5.20__tar.gz → 0.5.5.22__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.5.5.20 → pyegeria-0.5.5.22}/PKG-INFO +1 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/catalog_user/list_assets.py +7 -4
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/catalog_user/view_asset_graph.py +1 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/catalog_user/view_collection.py +10 -10
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/catalog_user/view_glossary.py +8 -6
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/get_guid_info.py +2 -2
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/get_tech_details.py +1 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/list_asset_types.py +4 -2
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/list_registered_services.py +5 -2
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/list_relationship_types.py +5 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/list_tech_templates.py +5 -2
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/list_tech_types.py +5 -2
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/list_valid_metadata_values.py +5 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/get_tech_type_elements.py +2 -2
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/get_tech_type_template.py +1 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_asset_events.py +1 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_eng_action_status.py +4 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_gov_eng_status.py +4 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_integ_daemon_status.py +4 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_platform_status.py +7 -4
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_server_list.py +4 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_server_status.py +4 -1
- pyegeria-0.5.5.22/pyegeria/__init__.py +120 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/_client.py +1 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/_globals.py +3 -2
- pyegeria-0.5.5.22/pyegeria/create_tech_guid_lists.py +67 -0
- pyegeria-0.5.5.22/pyegeria/tech_guids_22-07-2024 13:22.py +55 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/utils.py +3 -1
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyproject.toml +1 -1
- pyegeria-0.5.5.20/pyegeria/__init__.py +0 -53
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/LICENSE +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/README.md +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/doc_samples/Create_Collection_Sample.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/catalog_user/README.md +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/catalog_user/__init__.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/README.md +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/__init__.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/README.md +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/__init__.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/refresh_integration_daemon.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_coco_status.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/README.md +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/__init__.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/get_my_profile.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/list_projects.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/list_todos.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/view_my_todos.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/view_open_todos.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/Xfeedback_manager_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/Xloaded_resources_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/_deprecated_gov_engine.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/_exceptions.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/_validators.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/action_author_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/asset_catalog_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/automated_curation_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/collection_manager_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/core_guids.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/core_omag_server_config.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/full_omag_server_config.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/glossary_browser_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/glossary_manager_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/my_profile_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/platform_services.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/project_manager_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/registered_info.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/runtime_manager_omvs.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/server_operations.py +0 -0
- {pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/pyegeria/valid_metadata_omvs.py +0 -0
@@ -15,7 +15,7 @@ import time
|
|
15
15
|
from rich import box
|
16
16
|
from rich.console import Console
|
17
17
|
from rich.prompt import Prompt
|
18
|
-
|
18
|
+
|
19
19
|
from rich.table import Table
|
20
20
|
|
21
21
|
from pyegeria import (
|
@@ -47,9 +47,12 @@ def display_assets(search_string: str, guid: str, server: str, url: str, usernam
|
|
47
47
|
def generate_table(search_string:str = 'Enter Your Tech Type') -> Table:
|
48
48
|
"""Make a new table."""
|
49
49
|
table = Table(
|
50
|
-
title=f"Asset Definitions
|
51
|
-
# style = "black on grey66",
|
50
|
+
title=f"Asset Definitions containing the string {search_string} @ {time.asctime()}",
|
52
51
|
header_style="white on dark_blue",
|
52
|
+
style="bold white on black",
|
53
|
+
row_styles=["bold white on black"],
|
54
|
+
title_style="bold white on black",
|
55
|
+
caption_style="white on black",
|
53
56
|
show_lines=True,
|
54
57
|
box=box.ROUNDED,
|
55
58
|
caption=f"View Server '{server}' @ Platform - {url}",
|
@@ -95,7 +98,7 @@ def display_assets(search_string: str, guid: str, server: str, url: str, usernam
|
|
95
98
|
# time.sleep(2)
|
96
99
|
# live.update(generate_table())
|
97
100
|
console = Console()
|
98
|
-
with console.pager():
|
101
|
+
with console.pager(styles=True):
|
99
102
|
console.print(generate_table(search_string))
|
100
103
|
|
101
104
|
|
@@ -116,7 +116,7 @@ def asset_viewer(asset_guid: str, server_name:str, platform_url:str, user:str, u
|
|
116
116
|
qualified_name = asset_graph["qualifiedName"]
|
117
117
|
resource_name = asset_graph["resourceName"]
|
118
118
|
|
119
|
-
tree = Tree(f"{asset_name} ({asset_guid})", style="bold bright_white", guide_style="bold bright_blue")
|
119
|
+
tree = Tree(f"{asset_name} ({asset_guid})", style="bold bright_white on black", guide_style="bold bright_blue")
|
120
120
|
style = ""
|
121
121
|
|
122
122
|
asset_type = asset_graph["type"]["typeName"]
|
@@ -40,24 +40,24 @@ def collection_viewer(root: str, server_name: str, platform_url: str, user: str,
|
|
40
40
|
members = collection_client.get_member_list(root_collection_name)
|
41
41
|
if members:
|
42
42
|
for member in members:
|
43
|
-
style = ""
|
44
|
-
text_collection_name = Text(f"[bold white]
|
45
|
-
text_qualified_name = Text(f"* QualifiedName: {member['qualifiedName']}"
|
43
|
+
style = "bold white on black"
|
44
|
+
text_collection_name = Text(f"[bold white on black]Name: {member['name']}", style=style)
|
45
|
+
text_qualified_name = Text(f"* QualifiedName: {member['qualifiedName']}")
|
46
46
|
text_guid = Text(f"* GUID: {member['guid']}", "green")
|
47
|
-
text_collection_type = Text(f"* Collection Type: {member['collectionType']}"
|
48
|
-
text_description = Text(f"* Description: {member['description']}"
|
49
|
-
p = Panel.fit(f"
|
47
|
+
text_collection_type = Text(f"* Collection Type: {member['collectionType']}")
|
48
|
+
text_description = Text(f"* Description: {member['description']}")
|
49
|
+
p = Panel.fit(f"{text_collection_name}[green]\n{text_qualified_name}\n{text_guid}\n"
|
50
50
|
f"{text_collection_type}\n{text_description}")
|
51
51
|
tt = tree.add(p, style=style)
|
52
52
|
|
53
53
|
children = collection_client.get_collection_members(member['guid'])
|
54
54
|
if type(children) is list:
|
55
|
-
branch = tt.add(f"[bold magenta]Members", style=style, guide_style=style)
|
55
|
+
branch = tt.add(f"[bold magenta on black]Members", style=style, guide_style=style)
|
56
56
|
walk_collection_hierarchy(collection_client, member['qualifiedName'], branch),
|
57
57
|
else:
|
58
|
-
tt = tree.add(f"[bold magenta]No collections match {root_collection_name}"
|
58
|
+
tt = tree.add(f"[bold magenta on black]No collections match {root_collection_name}")
|
59
59
|
try:
|
60
|
-
tree = Tree(f"[bold bright green]{root}",
|
60
|
+
tree = Tree(f"[bold bright green on black]{root}",guide_style="bold bright_blue")
|
61
61
|
c_client = CollectionManager(server_name, platform_url,
|
62
62
|
user_id=user)
|
63
63
|
|
@@ -87,7 +87,7 @@ def main():
|
|
87
87
|
userid = args.userid if args.userid is not None else EGERIA_USER
|
88
88
|
user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
|
89
89
|
|
90
|
-
root_collection = Prompt.ask("Enter the Root Collection to start from:", default="
|
90
|
+
root_collection = Prompt.ask("Enter the Root Collection to start from:", default="Root Sustainability Collection")
|
91
91
|
collection_viewer(root_collection, server, url, userid, user_pass)
|
92
92
|
|
93
93
|
if __name__ == "__main__":
|
@@ -49,13 +49,15 @@ def display_glossary_terms(search_string: str, guid: str, server: str, url: str,
|
|
49
49
|
g_client = GlossaryBrowser(server, url)
|
50
50
|
token = g_client.create_egeria_bearer_token(username, user_password)
|
51
51
|
|
52
|
-
|
53
52
|
def generate_table(search_string:str = '*') -> Table:
|
54
53
|
"""Make a new table."""
|
55
54
|
table = Table(
|
56
55
|
title=f"Glossary Definitions for Terms like {search_string} @ {time.asctime()}",
|
57
|
-
|
56
|
+
style="bold white on black",
|
57
|
+
row_styles=["bold white on black"],
|
58
58
|
header_style="white on dark_blue",
|
59
|
+
title_style="bold white on black",
|
60
|
+
caption_style="white on black",
|
59
61
|
show_lines=True,
|
60
62
|
box=box.ROUNDED,
|
61
63
|
caption=f"Glossary View Server '{server}' @ Platform - {url}",
|
@@ -86,7 +88,7 @@ def display_glossary_terms(search_string: str, guid: str, server: str, url: str,
|
|
86
88
|
|
87
89
|
|
88
90
|
table.add_row(
|
89
|
-
display_name,qualified_name, abbrev, summary, description
|
91
|
+
display_name,qualified_name, abbrev, summary, description, style="bold white on black"
|
90
92
|
)
|
91
93
|
|
92
94
|
g_client.close_session()
|
@@ -96,9 +98,9 @@ def display_glossary_terms(search_string: str, guid: str, server: str, url: str,
|
|
96
98
|
# with Live(generate_table(), refresh_per_second=4, screen=True) as live:
|
97
99
|
# while True:
|
98
100
|
# time.sleep(2)
|
99
|
-
# live.update(generate_table())
|
100
|
-
console = Console()
|
101
|
-
with console.pager():
|
101
|
+
# live.update(generate_table(search_string))
|
102
|
+
console = Console(style="bold white on black")
|
103
|
+
with console.pager(styles=True):
|
102
104
|
console.print(generate_table(search_string))
|
103
105
|
|
104
106
|
|
@@ -46,7 +46,7 @@ def display_guid(guid: str, server: str, url: str, username: str, user_password:
|
|
46
46
|
|
47
47
|
|
48
48
|
try:
|
49
|
-
console = Console(width = 180)
|
49
|
+
console = Console(width = 180, style="bold white on black")
|
50
50
|
r = c.make_request("GET", url)
|
51
51
|
if r.status_code == 200:
|
52
52
|
pass
|
@@ -58,7 +58,7 @@ def display_guid(guid: str, server: str, url: str, username: str, user_password:
|
|
58
58
|
created = Text(f"Created at: {e['createTime']}")
|
59
59
|
details = Text(f"Details: {json.dumps(p, indent=2)}")
|
60
60
|
|
61
|
-
tree = Tree(f"
|
61
|
+
tree = Tree(f"{guid}", style = "bold bright_white on black", guide_style="bold bright_blue")
|
62
62
|
|
63
63
|
tree = tree.add(type_name)
|
64
64
|
tree.add(metadataCollection)
|
@@ -82,7 +82,7 @@ def tech_viewer(tech: str, server_name:str, platform_url:str, user:str, user_pas
|
|
82
82
|
return tt
|
83
83
|
|
84
84
|
try:
|
85
|
-
tree = Tree(f"
|
85
|
+
tree = Tree(f"{tech}", style = "bold bright_white on black", guide_style="bold bright_blue")
|
86
86
|
a_client = AutomatedCuration(server_name, platform_url,
|
87
87
|
user_id=user)
|
88
88
|
|
@@ -45,8 +45,10 @@ def display_asset_types(server: str, url: str, username: str, user_password: str
|
|
45
45
|
"""Make a new table."""
|
46
46
|
table = Table(
|
47
47
|
title=f"Asset Types for: {url} @ {time.asctime()}",
|
48
|
-
|
48
|
+
style="bold white on black",
|
49
|
+
row_styles=["bold white on black"],
|
49
50
|
header_style="white on dark_blue",
|
51
|
+
title_style="bold white on black",
|
50
52
|
show_lines=True,
|
51
53
|
box=box.ROUNDED,
|
52
54
|
caption=f"Asset Types from Server '{server}' @ Platform - {url}",
|
@@ -75,7 +77,7 @@ def display_asset_types(server: str, url: str, username: str, user_password: str
|
|
75
77
|
|
76
78
|
try:
|
77
79
|
console = Console()
|
78
|
-
with console.pager():
|
80
|
+
with console.pager(styles=True):
|
79
81
|
console.print(generate_table())
|
80
82
|
|
81
83
|
except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/list_registered_services.py
RENAMED
@@ -57,8 +57,11 @@ def display_registered_svcs(service: str, server: str , url: str,
|
|
57
57
|
"""Make a new table."""
|
58
58
|
table = Table(
|
59
59
|
title=f"Technology Types for: {url} @ {time.asctime()}",
|
60
|
-
|
60
|
+
style="bold white on black",
|
61
|
+
row_styles=["bold white on black"],
|
61
62
|
header_style="white on dark_blue",
|
63
|
+
title_style="bold white on black",
|
64
|
+
caption_style="white on black",
|
62
65
|
show_lines=True,
|
63
66
|
box=box.ROUNDED,
|
64
67
|
caption=f"Registered Services from Server '{server}' @ Platform - {url}",
|
@@ -116,7 +119,7 @@ def display_registered_svcs(service: str, server: str , url: str,
|
|
116
119
|
# token = a_client.create_egeria_bearer_token(username, password)
|
117
120
|
svc_list = a_client.list_registered_svcs(service)
|
118
121
|
|
119
|
-
with console.pager():
|
122
|
+
with console.pager(styles=True):
|
120
123
|
console.print(generate_table(svc_list))
|
121
124
|
|
122
125
|
except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/list_relationship_types.py
RENAMED
@@ -46,7 +46,11 @@ def display_list(type_name:str, server: str, url: str ,
|
|
46
46
|
"""Make a new table."""
|
47
47
|
table = Table(
|
48
48
|
title=f"Relationship types for: {type_name} @ {time.asctime()}",
|
49
|
+
style="bold white on black",
|
50
|
+
row_styles=["bold white on black"],
|
49
51
|
header_style="white on dark_blue",
|
52
|
+
title_style="bold white on black",
|
53
|
+
caption_style="white on black",
|
50
54
|
show_lines=True,
|
51
55
|
box=box.ROUNDED,
|
52
56
|
caption=f"list for Server '{server}' @ Platform - {url}",
|
@@ -103,7 +107,7 @@ def display_list(type_name:str, server: str, url: str ,
|
|
103
107
|
try:
|
104
108
|
|
105
109
|
console = Console(record=True)
|
106
|
-
with console.pager():
|
110
|
+
with console.pager(styles=True):
|
107
111
|
console.print(generate_table(type_name))
|
108
112
|
if save_output:
|
109
113
|
console.save_html("projects.html")
|
@@ -44,8 +44,11 @@ def display_tech_types(search_string:str, server: str,
|
|
44
44
|
"""Make a new table."""
|
45
45
|
table = Table(
|
46
46
|
title=f"Technology Templates for: {url} @ {time.asctime()}",
|
47
|
-
|
47
|
+
style="bold white on black",
|
48
|
+
row_styles=["bold white on black"],
|
48
49
|
header_style="white on dark_blue",
|
50
|
+
title_style="bold white on black",
|
51
|
+
caption_style="white on black",
|
49
52
|
show_lines=True,
|
50
53
|
box=box.ROUNDED,
|
51
54
|
caption=f"Templates from Server '{server}' @ Platform - {url}",
|
@@ -106,7 +109,7 @@ def display_tech_types(search_string:str, server: str,
|
|
106
109
|
|
107
110
|
try:
|
108
111
|
console = Console()
|
109
|
-
with console.pager():
|
112
|
+
with console.pager(styles=True):
|
110
113
|
console.print(generate_table())
|
111
114
|
|
112
115
|
except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
|
@@ -49,8 +49,11 @@ def display_tech_types(search_string:str, server: str, url: str, username: str,
|
|
49
49
|
"""Make a new table."""
|
50
50
|
table = Table(
|
51
51
|
title=f"Technology Types for: {url} @ {time.asctime()}",
|
52
|
-
|
52
|
+
style="bold white on black",
|
53
|
+
row_styles=["bold white on black"],
|
53
54
|
header_style="white on dark_blue",
|
55
|
+
title_style="bold white on black",
|
56
|
+
caption_style="white on black",
|
54
57
|
show_lines=True,
|
55
58
|
box=box.ROUNDED,
|
56
59
|
caption=f"Technology Types from Server '{server}' @ Platform - {url}",
|
@@ -86,7 +89,7 @@ def display_tech_types(search_string:str, server: str, url: str, username: str,
|
|
86
89
|
|
87
90
|
try:
|
88
91
|
console = Console()
|
89
|
-
with console.pager():
|
92
|
+
with console.pager(styles=True):
|
90
93
|
console.print(generate_table())
|
91
94
|
|
92
95
|
except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/developer/list_valid_metadata_values.py
RENAMED
@@ -48,7 +48,11 @@ def display_values(property_name: str, type_name: str, server: str, url: str,
|
|
48
48
|
"""Make a new table."""
|
49
49
|
table = Table(
|
50
50
|
title=f"Valid Metadata Values for Property: {property_name} of type {type_name} @ {time.asctime()}",
|
51
|
+
style="bold white on black",
|
52
|
+
row_styles=["bold white on black"],
|
51
53
|
header_style="white on dark_blue",
|
54
|
+
title_style="bold white on black",
|
55
|
+
caption_style="white on black",
|
52
56
|
show_lines=True,
|
53
57
|
box=box.ROUNDED,
|
54
58
|
caption=f"Valid Metadata Values for Server '{server}' @ Platform - {url}",
|
@@ -101,7 +105,7 @@ def display_values(property_name: str, type_name: str, server: str, url: str,
|
|
101
105
|
# time.sleep(2)
|
102
106
|
# live.update(generate_table())
|
103
107
|
console = Console(record=True)
|
104
|
-
with console.pager():
|
108
|
+
with console.pager(styles=True):
|
105
109
|
console.print(generate_table(property_name, type_name))
|
106
110
|
if save_output:
|
107
111
|
console.save_html("valid-metadata-values.html")
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/get_tech_type_elements.py
RENAMED
@@ -79,7 +79,7 @@ def tech_viewer(tech_name: str, server_name:str, platform_url:str, user:str, use
|
|
79
79
|
if type(tech_elements) is str:
|
80
80
|
console.print(f"No elements found for {tech_name}")
|
81
81
|
sys.exit(1)
|
82
|
-
tree = Tree(f"Deployed Technology Type: {tech_name}", style="bold bright_white", guide_style="bold bright_blue")
|
82
|
+
tree = Tree(f"Deployed Technology Type: {tech_name}", style="bold bright_white on black", guide_style="bold bright_blue")
|
83
83
|
note: str =" "
|
84
84
|
for element in tech_elements:
|
85
85
|
header = element['elementHeader']
|
@@ -100,7 +100,7 @@ def tech_viewer(tech_name: str, server_name:str, platform_url:str, user:str, use
|
|
100
100
|
|
101
101
|
note = (f"* Qualified Name: {tech_qualified_name}\n"
|
102
102
|
f"* GUID: {tech_guid}\n"
|
103
|
-
f"*
|
103
|
+
f"* Created by: {tech_created_by}\n"
|
104
104
|
f"* Created at: {tech_created_at}\n"
|
105
105
|
f"* Home Collection: {tech_collection}\n"
|
106
106
|
f"{class_md}\n"
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/get_tech_type_template.py
RENAMED
@@ -107,7 +107,7 @@ def tech_viewer(tech_name: str, server_name:str, platform_url:str, user:str, use
|
|
107
107
|
note += (f"\t* Type: {interfaces['arrayValues']['propertyValueMap'][str(i)]['typeName']}"
|
108
108
|
f"\tName: {interfaces['arrayValues']['propertiesAsStrings'][str(i)]}\n"
|
109
109
|
)
|
110
|
-
note_md = Panel.fit(Markdown(note), style = 'bold bright_white')
|
110
|
+
note_md = Panel.fit(Markdown(note), style = 'bold bright_white on black')
|
111
111
|
t = tree.add(note_md)
|
112
112
|
|
113
113
|
else:
|
@@ -78,7 +78,7 @@ def main():
|
|
78
78
|
console.rule(f"\tMessage TimeStamp: {event_time}\t eventType: {event_type}\t typeName: {type_name}\t guid: {guid}")
|
79
79
|
msg = (
|
80
80
|
|
81
|
-
f"properties: \n{props}\n\n")
|
81
|
+
f"properties: \n[bright white on black]{props}\n\n")
|
82
82
|
msg = Markdown(msg)
|
83
83
|
|
84
84
|
console.print(msg)
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_eng_action_status.py
RENAMED
@@ -49,8 +49,11 @@ def display_status_engine_actions(server: str, url: str, user: str, user_pass:st
|
|
49
49
|
"""Make a new table."""
|
50
50
|
table = Table(
|
51
51
|
title=f"Engine Action Status for Platform {url} @ {time.asctime()}",
|
52
|
-
|
52
|
+
style="bold white on black",
|
53
|
+
row_styles=["bold white on black"],
|
53
54
|
header_style="white on dark_blue",
|
55
|
+
title_style="bold white on black",
|
56
|
+
caption_style="white on black",
|
54
57
|
show_lines=True,
|
55
58
|
box=box.ROUNDED,
|
56
59
|
caption=f"Engine Status for Server '{server}' @ Platform - {url}",
|
@@ -47,8 +47,11 @@ def display_gov_actions_status(server: str, url: str, username: str, user_pass:s
|
|
47
47
|
"""Make a new table."""
|
48
48
|
table = Table(
|
49
49
|
title=f"Governance Engine Status @ {time.asctime()}",
|
50
|
-
|
50
|
+
style="bold white on black",
|
51
|
+
row_styles=["bold white on black"],
|
51
52
|
header_style="white on dark_blue",
|
53
|
+
title_style="bold white on black",
|
54
|
+
caption_style="white on black",
|
52
55
|
show_lines=True,
|
53
56
|
box=box.ROUNDED,
|
54
57
|
caption=f"Server: '{server_name}' running on {url}",
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_integ_daemon_status.py
RENAMED
@@ -51,8 +51,11 @@ def display_integration_daemon_status(integ_server: str, integ_url: str,
|
|
51
51
|
"""Make a new table."""
|
52
52
|
table = Table(
|
53
53
|
title=f"Integration Daemon Status @ {time.asctime()}",
|
54
|
-
|
54
|
+
style = "bold white on black",
|
55
|
+
row_styles = ["bold white on black"],
|
55
56
|
header_style="white on dark_blue",
|
57
|
+
title_style="bold white on black",
|
58
|
+
caption_style="white on black",
|
56
59
|
show_lines=True,
|
57
60
|
box=box.ROUNDED,
|
58
61
|
caption=f"Integration Daemon Status for Server '{integ_server}' @ Platform - {integ_url}",
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/view_platform_status.py
RENAMED
@@ -44,8 +44,11 @@ def display_status(server: str, url: str, username: str, user_pass:str):
|
|
44
44
|
"""Make a new table."""
|
45
45
|
table = Table(
|
46
46
|
title=f"Server Status for Platform - {time.asctime()}",
|
47
|
-
|
47
|
+
style="bold white on black",
|
48
|
+
row_styles=["bold white on black"],
|
48
49
|
header_style="white on dark_blue",
|
50
|
+
title_style="bold white on black",
|
51
|
+
caption_style="white on black",
|
49
52
|
caption=f"Status of Platforms - '{url}'",
|
50
53
|
show_lines=True,
|
51
54
|
# expand=True
|
@@ -85,12 +88,12 @@ def display_status(server: str, url: str, username: str, user_pass:str):
|
|
85
88
|
server_type = server.get("serverType"," ")
|
86
89
|
server_status = server.get("serverActiveStatus","UNKNOWN")
|
87
90
|
if server_status in("RUNNING", "STARTING"):
|
88
|
-
status_flag = "[green]"
|
91
|
+
status_flag = "[bright green]"
|
89
92
|
elif server_status in ("INACTIVE", "STOPPING"):
|
90
|
-
status_flag = "[red]"
|
93
|
+
status_flag = "[bright red]"
|
91
94
|
else:
|
92
95
|
server_status = "UNKNOWN"
|
93
|
-
status_flag = "[yellow]"
|
96
|
+
status_flag = "[bright yellow]"
|
94
97
|
|
95
98
|
serv = f"{status_flag}{server_types[server_type]}: {server_name}\n"
|
96
99
|
server_list = server_list + serv
|
@@ -46,8 +46,11 @@ def display_status(server: str, url: str, username: str, user_pass:str):
|
|
46
46
|
"""Make a new table."""
|
47
47
|
table = Table(
|
48
48
|
title=f"Server Status for Platform - {time.asctime()}",
|
49
|
-
|
49
|
+
style="bold white on black",
|
50
|
+
row_styles=["bold white on black"],
|
50
51
|
header_style="white on dark_blue",
|
52
|
+
title_style="bold white on black",
|
53
|
+
caption_style="white on black",
|
51
54
|
caption=f"Server Status for Platform - '{url}'",
|
52
55
|
show_lines=True,
|
53
56
|
# expand=True
|
@@ -41,8 +41,11 @@ def test_display_status(server: str, url: str , username: str , user_pass:str):
|
|
41
41
|
"""Make a new table."""
|
42
42
|
table = Table(
|
43
43
|
title=f"Server Status for Platform - {time.asctime()}",
|
44
|
-
|
44
|
+
style="bold white on black",
|
45
|
+
row_styles=["bold white on black"],
|
45
46
|
header_style="white on dark_blue",
|
47
|
+
title_style="bold white on black",
|
48
|
+
caption_style="white on black",
|
46
49
|
caption=f"Server Status for Platform - '{url}'",
|
47
50
|
# show_lines=True,
|
48
51
|
)
|
@@ -0,0 +1,120 @@
|
|
1
|
+
"""
|
2
|
+
SPDX-License-Identifier: Apache-2.0
|
3
|
+
Copyright Contributors to the ODPi Egeria project.
|
4
|
+
|
5
|
+
This is the pyegeria client package. The purpose of the package is to provide
|
6
|
+
easy access to Egeria (https://egeria-project.org). The package is currently in
|
7
|
+
development.
|
8
|
+
|
9
|
+
The first capabilities are around Egeria's platform services used to start and stop
|
10
|
+
the server platform and servers.
|
11
|
+
|
12
|
+
"""
|
13
|
+
|
14
|
+
from ._globals import (is_debug, disable_ssl_warnings, max_paging_size, TEMPLATE_GUIDS, INTEGRATION_GUIDS
|
15
|
+
)
|
16
|
+
from .core_guids import *
|
17
|
+
|
18
|
+
if disable_ssl_warnings:
|
19
|
+
from urllib3.exceptions import InsecureRequestWarning
|
20
|
+
from urllib3 import disable_warnings
|
21
|
+
|
22
|
+
disable_warnings(InsecureRequestWarning)
|
23
|
+
|
24
|
+
from ._exceptions import (InvalidParameterException, PropertyServerException, UserNotAuthorizedException,
|
25
|
+
print_exception_response)
|
26
|
+
# from .utils import print_response, body_slimmer, wrap_text
|
27
|
+
from .utils import print_response, body_slimmer
|
28
|
+
from ._client import Client
|
29
|
+
from .automated_curation_omvs import AutomatedCuration
|
30
|
+
from .core_omag_server_config import CoreServerConfig
|
31
|
+
from .platform_services import Platform
|
32
|
+
from .registered_info import RegisteredInfo
|
33
|
+
from .glossary_browser_omvs import GlossaryBrowser
|
34
|
+
from ._validators import (validate_user_id, validate_name, validate_guid, validate_server_name, validate_search_string,
|
35
|
+
validate_url, is_json, validate_public)
|
36
|
+
from .asset_catalog_omvs import AssetCatalog
|
37
|
+
|
38
|
+
from .my_profile_omvs import MyProfile
|
39
|
+
from .full_omag_server_config import FullServerConfig
|
40
|
+
from .server_operations import ServerOps
|
41
|
+
from .collection_manager_omvs import CollectionManager
|
42
|
+
from .project_manager_omvs import ProjectManager
|
43
|
+
from .valid_metadata_omvs import ValidMetadataManager
|
44
|
+
from .asset_catalog_omvs import AssetCatalog
|
45
|
+
from .Xloaded_resources_omvs import LoadedResources
|
46
|
+
from ._deprecated_gov_engine import GovEng
|
47
|
+
from .runtime_manager_omvs import RuntimeManager
|
48
|
+
from .action_author_omvs import GovernanceAuthor
|
49
|
+
from .glossary_manager_omvs import GlossaryManager
|
50
|
+
from .create_tech_guid_lists import build_global_guid_lists
|
51
|
+
|
52
|
+
|
53
|
+
#
|
54
|
+
# The following assignments were generated by the `create_tech_guid_lists.py` utility that uses the pyegeria functions
|
55
|
+
# to interrogate Egeria (and the Core Content Pack) for the GUIDS associates with integration connectors and templates.
|
56
|
+
# While these GUIDS rarely change, they will evolve as new connectors are built and integrated. This could impact some
|
57
|
+
# of the pyegeria methods that, as a convenience, use pre-assigned GUIDS to create new elements and such.
|
58
|
+
#
|
59
|
+
# This list may also be augmented (and of use) to those wishing to extend the pyegeria methods to automate or simplify
|
60
|
+
# the use of custom connectors and templates.
|
61
|
+
#
|
62
|
+
#
|
63
|
+
global TEMPLATE_GUIDS, INTEGRATION_GUIDS
|
64
|
+
|
65
|
+
TEMPLATE_GUIDS['CSV Data File template'] = '13770f93-13c8-42be-9bb8-e0b1b1e52b1f'
|
66
|
+
TEMPLATE_GUIDS['Keystore File template'] = 'fbcfcc0c-1652-421f-b49b-c3e1c108768f'
|
67
|
+
INTEGRATION_GUIDS['JDBC Relational Database'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
|
68
|
+
TEMPLATE_GUIDS['Data File template'] = '66d8dda9-00cf-4e59-938c-4b0583596b1e'
|
69
|
+
TEMPLATE_GUIDS['View Server template'] = 'fd61ca01-390d-4aa2-a55d-426826aa4e1b'
|
70
|
+
TEMPLATE_GUIDS['Archive File template'] = '7578e504-d00f-406d-a194-3fc0a351cdf9'
|
71
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Volume template'] = '92d2d2dc-0798-41f0-9512-b10548d312b7'
|
72
|
+
TEMPLATE_GUIDS['PostgreSQL Relational Database template'] = '3d398b3f-7ae6-4713-952a-409f3dea8520'
|
73
|
+
INTEGRATION_GUIDS['PostgreSQL Relational Database'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
|
74
|
+
TEMPLATE_GUIDS['Program File template'] = '32d27e9c-1fdf-455a-ad2a-42b4d7d99108'
|
75
|
+
TEMPLATE_GUIDS['FileFolder template'] = 'fbdd8efd-1b69-474c-bb6d-0a304b394146'
|
76
|
+
INTEGRATION_GUIDS['FileFolder'] = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
|
77
|
+
INTEGRATION_GUIDS['FileFolder'] = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
|
78
|
+
TEMPLATE_GUIDS['PostgreSQL Server template'] = '542134e6-b9ce-4dce-8aef-22e8daf34fdb'
|
79
|
+
INTEGRATION_GUIDS['PostgreSQL Server'] = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
|
80
|
+
TEMPLATE_GUIDS['Audio Data File template'] = '39b4b670-7f15-4744-a5ba-62e8edafbcee'
|
81
|
+
TEMPLATE_GUIDS['Document File template'] = 'eb6f728d-fa54-4350-9807-1199cbf96851'
|
82
|
+
TEMPLATE_GUIDS['Integration Daemon template'] = '6b3516f0-dd13-4786-9601-07215f995197'
|
83
|
+
TEMPLATE_GUIDS['XML Data File template'] = 'ea67ae71-c674-473e-b38b-689879d2a7d9'
|
84
|
+
TEMPLATE_GUIDS['Parquet Data File template'] = '7f6cd744-79c3-4d25-a056-eeb1a91574c3'
|
85
|
+
TEMPLATE_GUIDS['3D Image Data File template'] = '0059ea2b-6292-4cac-aa6f-a80a605f1114'
|
86
|
+
TEMPLATE_GUIDS['YAML File template'] = '2221855b-2b64-4b45-a2ee-c40adc5e2a64'
|
87
|
+
TEMPLATE_GUIDS['Metadata Access Server template'] = 'bd8de890-fa79-4c24-aab8-20b41b5893dd'
|
88
|
+
TEMPLATE_GUIDS['Properties File template'] = '3b281111-a0ef-4fc4-99e7-9a0ef84a7636'
|
89
|
+
TEMPLATE_GUIDS['Vector Data File template'] = 'db1bec7f-55a9-40d3-91c0-a57b76d422e2'
|
90
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Schema template'] = '5bf92b0f-3970-41ea-b0a3-aacfbf6fd92e'
|
91
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Table template'] = '6cc1e5f5-4c1e-4290-a80e-e06643ffb13d'
|
92
|
+
TEMPLATE_GUIDS['Apache Kafka Server template'] = '5e1ff810-5418-43f7-b7c4-e6e062f9aff7'
|
93
|
+
INTEGRATION_GUIDS['Apache Kafka Server'] = 'fa1f711c-0b34-4b57-8e6e-16162b132b0c'
|
94
|
+
TEMPLATE_GUIDS['Executable File template'] = '3d99a163-7a13-4576-a212-784010a8302a'
|
95
|
+
TEMPLATE_GUIDS['JSON Data File template'] = 'c4836635-7e9e-446a-83b5-15e206b1aff3'
|
96
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Function template'] = 'a490ba65-6104-4213-9be9-524e16fed8aa'
|
97
|
+
TEMPLATE_GUIDS['File System template'] = '522f228c-097c-4f90-9efc-26c1f2696f87'
|
98
|
+
TEMPLATE_GUIDS['Source Code File template'] = '9c7013ef-f29b-4b01-a8ea-5ea14f64c67a'
|
99
|
+
INTEGRATION_GUIDS['Software Server'] = 'b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e'
|
100
|
+
TEMPLATE_GUIDS['Apple MacBook Pro template'] = '32a9fd56-85c9-47fe-a211-9da3871bf4da'
|
101
|
+
TEMPLATE_GUIDS['Build Instruction File template'] = 'fbb2fa2e-8bcb-402e-9be7-5c6db9f2c504'
|
102
|
+
TEMPLATE_GUIDS['Spreadsheet Data File template'] = 'e4fabff5-2ba9-4050-9076-6ed917970b4c'
|
103
|
+
TEMPLATE_GUIDS['UNIX File System template'] = '27117270-8667-41d0-a99a-9118f9b60199'
|
104
|
+
TEMPLATE_GUIDS['Video Data File template'] = '93b2b722-ec0f-4da4-960a-b8d4922f8bf5'
|
105
|
+
TEMPLATE_GUIDS['PostgreSQL Relational Database Schema template'] = '82a5417c-d882-4271-8444-4c6a996a8bfc'
|
106
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Server template'] = 'dcca9788-b30f-4007-b1ac-ec634aff6879'
|
107
|
+
INTEGRATION_GUIDS['OSS Unity Catalog Server'] = '06d068d9-9e08-4e67-8c59-073bbf1013af'
|
108
|
+
TEMPLATE_GUIDS['Engine Host template'] = '1764a891-4234-45f1-8cc3-536af40c790d'
|
109
|
+
TEMPLATE_GUIDS['Avro Data File template'] = '9f5be428-058e-41dd-b506-3a222283b579'
|
110
|
+
TEMPLATE_GUIDS['File template'] = 'ae3067c7-cc72-4a18-88e1-746803c2c86f'
|
111
|
+
TEMPLATE_GUIDS['Apache Kafka Topic template'] = 'ea8f81c9-c59c-47de-9525-7cc59d1251e5'
|
112
|
+
TEMPLATE_GUIDS['Script File template'] = 'dbd5e6bb-1ff8-46f4-a007-fb0485f68c92'
|
113
|
+
TEMPLATE_GUIDS['Apache Atlas Server template'] = 'fe6dce45-a978-4417-ab55-17f05b8bcea7'
|
114
|
+
TEMPLATE_GUIDS['Raster Data File template'] = '47211156-f03f-4881-8526-015e695a3dac'
|
115
|
+
TEMPLATE_GUIDS['Data Folder template'] = '372a0379-7060-4c9d-8d84-bc709b31794c'
|
116
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Catalog template'] = '5ee006aa-a6d6-411b-9b8d-5f720c079cae'
|
117
|
+
INTEGRATION_GUIDS['OSS Unity Catalog Catalog'] = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
|
118
|
+
TEMPLATE_GUIDS['OMAG Server Platform template'] = '9b06c4dc-ddc8-47ae-b56b-28775d3a96f0'
|
119
|
+
|
120
|
+
|
@@ -18,7 +18,7 @@ from pyegeria._exceptions import (
|
|
18
18
|
InvalidParameterException,
|
19
19
|
PropertyServerException,
|
20
20
|
UserNotAuthorizedException )
|
21
|
-
from pyegeria._globals import max_paging_size,
|
21
|
+
from pyegeria._globals import max_paging_size, TEMPLATE_GUIDS,INTEGRATION_GUIDS
|
22
22
|
from pyegeria._validators import (
|
23
23
|
validate_name,
|
24
24
|
validate_server_name,
|
@@ -0,0 +1,67 @@
|
|
1
|
+
"""
|
2
|
+
SPDX-License-Identifier: Apache-2.0
|
3
|
+
Copyright Contributors to the ODPi Egeria project.
|
4
|
+
|
5
|
+
Script to create a new file to initiate tech guids.
|
6
|
+
|
7
|
+
"""
|
8
|
+
import json
|
9
|
+
from rich import print, print_json
|
10
|
+
from datetime import datetime
|
11
|
+
from rich.console import Console
|
12
|
+
|
13
|
+
from pyegeria import AutomatedCuration
|
14
|
+
|
15
|
+
console = Console(width=200)
|
16
|
+
|
17
|
+
|
18
|
+
def build_global_guid_lists(server:str = "view-server",url: str = "https://localhost:9443",
|
19
|
+
user_id: str = "erinoverview", user_pwd:str = "secret") -> None:
|
20
|
+
cur_time = datetime.now().strftime("%d-%m-%Y %H:%M")
|
21
|
+
file_name = f"./tech_guids_{cur_time}.py"
|
22
|
+
a_client = AutomatedCuration(server, url, user_id=user_id,
|
23
|
+
user_pwd=user_pwd)
|
24
|
+
token = a_client.create_egeria_bearer_token()
|
25
|
+
# get all technology types
|
26
|
+
|
27
|
+
tech_types = a_client.get_all_technology_types()
|
28
|
+
if type(tech_types) is list:
|
29
|
+
with open(file_name, "w") as f:
|
30
|
+
out = f"global template_guids, integration_guids\n"
|
31
|
+
f.write(out)
|
32
|
+
for tech_type in tech_types:
|
33
|
+
# get tech type details
|
34
|
+
display_name = tech_type["name"]
|
35
|
+
|
36
|
+
details = a_client.get_technology_type_detail(display_name)
|
37
|
+
if type(details) is str:
|
38
|
+
console.print(f"{display_name} technology type has no details")
|
39
|
+
continue
|
40
|
+
# get templates and update the template_guids global
|
41
|
+
templates = details.get("catalogTemplates", "Not Found")
|
42
|
+
|
43
|
+
if type(templates) is list:
|
44
|
+
for template in templates:
|
45
|
+
template_name = template.get("name", None)
|
46
|
+
template_guid = template["relatedElement"]["guid"]
|
47
|
+
out = f"TEMPLATE_GUIDS['{template_name}'] = '{template_guid}'\n"
|
48
|
+
console.print(f"Added {template_name} template with GUID {template_guid}")
|
49
|
+
f.write(out)
|
50
|
+
else:
|
51
|
+
console.print(f"{display_name} technology type has no templates")
|
52
|
+
# Now find the integration connector guids
|
53
|
+
resource_list = details.get('resourceList', ' ')
|
54
|
+
if type(resource_list) is list:
|
55
|
+
for resource in resource_list:
|
56
|
+
resource_guid = resource['relatedElement']['guid']
|
57
|
+
resource_type = resource['relatedElement']['type']['typeName']
|
58
|
+
if resource_type == "IntegrationConnector":
|
59
|
+
out = f"INTEGRATION_GUIDS['{display_name}'] = '{resource_guid}'\n"
|
60
|
+
console.print(f"Added {display_name} integration connector with GUID {resource_guid}")
|
61
|
+
f.write(out)
|
62
|
+
else:
|
63
|
+
console.print(f"{display_name} technology type has no integration connectors")
|
64
|
+
|
65
|
+
|
66
|
+
if __name__ == "__main__":
|
67
|
+
build_global_guid_lists()
|
@@ -0,0 +1,55 @@
|
|
1
|
+
global template_guids, integration_guids
|
2
|
+
TEMPLATE_GUIDS['CSV Data File template'] = '13770f93-13c8-42be-9bb8-e0b1b1e52b1f'
|
3
|
+
TEMPLATE_GUIDS['Keystore File template'] = 'fbcfcc0c-1652-421f-b49b-c3e1c108768f'
|
4
|
+
INTEGRATION_GUIDS['JDBC Relational Database'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
|
5
|
+
TEMPLATE_GUIDS['Data File template'] = '66d8dda9-00cf-4e59-938c-4b0583596b1e'
|
6
|
+
TEMPLATE_GUIDS['View Server template'] = 'fd61ca01-390d-4aa2-a55d-426826aa4e1b'
|
7
|
+
TEMPLATE_GUIDS['Archive File template'] = '7578e504-d00f-406d-a194-3fc0a351cdf9'
|
8
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Volume template'] = '92d2d2dc-0798-41f0-9512-b10548d312b7'
|
9
|
+
TEMPLATE_GUIDS['PostgreSQL Relational Database template'] = '3d398b3f-7ae6-4713-952a-409f3dea8520'
|
10
|
+
INTEGRATION_GUIDS['PostgreSQL Relational Database'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
|
11
|
+
TEMPLATE_GUIDS['Program File template'] = '32d27e9c-1fdf-455a-ad2a-42b4d7d99108'
|
12
|
+
TEMPLATE_GUIDS['FileFolder template'] = 'fbdd8efd-1b69-474c-bb6d-0a304b394146'
|
13
|
+
INTEGRATION_GUIDS['FileFolder'] = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
|
14
|
+
INTEGRATION_GUIDS['FileFolder'] = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
|
15
|
+
TEMPLATE_GUIDS['PostgreSQL Server template'] = '542134e6-b9ce-4dce-8aef-22e8daf34fdb'
|
16
|
+
INTEGRATION_GUIDS['PostgreSQL Server'] = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
|
17
|
+
TEMPLATE_GUIDS['Audio Data File template'] = '39b4b670-7f15-4744-a5ba-62e8edafbcee'
|
18
|
+
TEMPLATE_GUIDS['Document File template'] = 'eb6f728d-fa54-4350-9807-1199cbf96851'
|
19
|
+
TEMPLATE_GUIDS['Integration Daemon template'] = '6b3516f0-dd13-4786-9601-07215f995197'
|
20
|
+
TEMPLATE_GUIDS['XML Data File template'] = 'ea67ae71-c674-473e-b38b-689879d2a7d9'
|
21
|
+
TEMPLATE_GUIDS['Parquet Data File template'] = '7f6cd744-79c3-4d25-a056-eeb1a91574c3'
|
22
|
+
TEMPLATE_GUIDS['3D Image Data File template'] = '0059ea2b-6292-4cac-aa6f-a80a605f1114'
|
23
|
+
TEMPLATE_GUIDS['YAML File template'] = '2221855b-2b64-4b45-a2ee-c40adc5e2a64'
|
24
|
+
TEMPLATE_GUIDS['Metadata Access Server template'] = 'bd8de890-fa79-4c24-aab8-20b41b5893dd'
|
25
|
+
TEMPLATE_GUIDS['Properties File template'] = '3b281111-a0ef-4fc4-99e7-9a0ef84a7636'
|
26
|
+
TEMPLATE_GUIDS['Vector Data File template'] = 'db1bec7f-55a9-40d3-91c0-a57b76d422e2'
|
27
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Schema template'] = '5bf92b0f-3970-41ea-b0a3-aacfbf6fd92e'
|
28
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Table template'] = '6cc1e5f5-4c1e-4290-a80e-e06643ffb13d'
|
29
|
+
TEMPLATE_GUIDS['Apache Kafka Server template'] = '5e1ff810-5418-43f7-b7c4-e6e062f9aff7'
|
30
|
+
INTEGRATION_GUIDS['Apache Kafka Server'] = 'fa1f711c-0b34-4b57-8e6e-16162b132b0c'
|
31
|
+
TEMPLATE_GUIDS['Executable File template'] = '3d99a163-7a13-4576-a212-784010a8302a'
|
32
|
+
TEMPLATE_GUIDS['JSON Data File template'] = 'c4836635-7e9e-446a-83b5-15e206b1aff3'
|
33
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Function template'] = 'a490ba65-6104-4213-9be9-524e16fed8aa'
|
34
|
+
TEMPLATE_GUIDS['File System template'] = '522f228c-097c-4f90-9efc-26c1f2696f87'
|
35
|
+
TEMPLATE_GUIDS['Source Code File template'] = '9c7013ef-f29b-4b01-a8ea-5ea14f64c67a'
|
36
|
+
INTEGRATION_GUIDS['Software Server'] = 'b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e'
|
37
|
+
TEMPLATE_GUIDS['Apple MacBook Pro template'] = '32a9fd56-85c9-47fe-a211-9da3871bf4da'
|
38
|
+
TEMPLATE_GUIDS['Build Instruction File template'] = 'fbb2fa2e-8bcb-402e-9be7-5c6db9f2c504'
|
39
|
+
TEMPLATE_GUIDS['Spreadsheet Data File template'] = 'e4fabff5-2ba9-4050-9076-6ed917970b4c'
|
40
|
+
TEMPLATE_GUIDS['UNIX File System template'] = '27117270-8667-41d0-a99a-9118f9b60199'
|
41
|
+
TEMPLATE_GUIDS['Video Data File template'] = '93b2b722-ec0f-4da4-960a-b8d4922f8bf5'
|
42
|
+
TEMPLATE_GUIDS['PostgreSQL Relational Database Schema template'] = '82a5417c-d882-4271-8444-4c6a996a8bfc'
|
43
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Server template'] = 'dcca9788-b30f-4007-b1ac-ec634aff6879'
|
44
|
+
INTEGRATION_GUIDS['OSS Unity Catalog Server'] = '06d068d9-9e08-4e67-8c59-073bbf1013af'
|
45
|
+
TEMPLATE_GUIDS['Engine Host template'] = '1764a891-4234-45f1-8cc3-536af40c790d'
|
46
|
+
TEMPLATE_GUIDS['Avro Data File template'] = '9f5be428-058e-41dd-b506-3a222283b579'
|
47
|
+
TEMPLATE_GUIDS['File template'] = 'ae3067c7-cc72-4a18-88e1-746803c2c86f'
|
48
|
+
TEMPLATE_GUIDS['Apache Kafka Topic template'] = 'ea8f81c9-c59c-47de-9525-7cc59d1251e5'
|
49
|
+
TEMPLATE_GUIDS['Script File template'] = 'dbd5e6bb-1ff8-46f4-a007-fb0485f68c92'
|
50
|
+
TEMPLATE_GUIDS['Apache Atlas Server template'] = 'fe6dce45-a978-4417-ab55-17f05b8bcea7'
|
51
|
+
TEMPLATE_GUIDS['Raster Data File template'] = '47211156-f03f-4881-8526-015e695a3dac'
|
52
|
+
TEMPLATE_GUIDS['Data Folder template'] = '372a0379-7060-4c9d-8d84-bc709b31794c'
|
53
|
+
TEMPLATE_GUIDS['OSS Unity Catalog Catalog template'] = '5ee006aa-a6d6-411b-9b8d-5f720c079cae'
|
54
|
+
INTEGRATION_GUIDS['OSS Unity Catalog Catalog'] = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
|
55
|
+
TEMPLATE_GUIDS['OMAG Server Platform template'] = '9b06c4dc-ddc8-47ae-b56b-28775d3a96f0'
|
@@ -7,8 +7,10 @@ General utility functions in support of the Egeria Python Client package.
|
|
7
7
|
"""
|
8
8
|
import json
|
9
9
|
from rich import print, print_json
|
10
|
+
from datetime import datetime
|
11
|
+
from rich.console import Console
|
10
12
|
|
11
|
-
|
13
|
+
console = Console(width=200)
|
12
14
|
|
13
15
|
# def wrap_text(df: pd.DataFrame, wrap_len: int = 30) -> pd.DataFrame:
|
14
16
|
# """ Wrap the text in a dataframe
|
@@ -1,53 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
SPDX-License-Identifier: Apache-2.0
|
3
|
-
Copyright Contributors to the ODPi Egeria project.
|
4
|
-
|
5
|
-
This is the pyegeria client package. The purpose of the package is to provide
|
6
|
-
easy access to Egeria (https://egeria-project.org). The package is currently in
|
7
|
-
development.
|
8
|
-
|
9
|
-
The first capabilities are around Egeria's platform services used to start and stop
|
10
|
-
the server platform and servers.
|
11
|
-
|
12
|
-
"""
|
13
|
-
|
14
|
-
from ._globals import (is_debug, disable_ssl_warnings, max_paging_size, template_guids, integration_guids
|
15
|
-
)
|
16
|
-
from .core_guids import *
|
17
|
-
|
18
|
-
if disable_ssl_warnings:
|
19
|
-
from urllib3.exceptions import InsecureRequestWarning
|
20
|
-
from urllib3 import disable_warnings
|
21
|
-
|
22
|
-
disable_warnings(InsecureRequestWarning)
|
23
|
-
|
24
|
-
from ._exceptions import (InvalidParameterException, PropertyServerException, UserNotAuthorizedException,
|
25
|
-
print_exception_response)
|
26
|
-
# from .utils import print_response, body_slimmer, wrap_text
|
27
|
-
from .utils import print_response, body_slimmer
|
28
|
-
from ._client import Client
|
29
|
-
from .automated_curation_omvs import AutomatedCuration
|
30
|
-
from .core_omag_server_config import CoreServerConfig
|
31
|
-
from .platform_services import Platform
|
32
|
-
from .registered_info import RegisteredInfo
|
33
|
-
from .glossary_browser_omvs import GlossaryBrowser
|
34
|
-
from ._validators import (validate_user_id, validate_name, validate_guid, validate_server_name, validate_search_string,
|
35
|
-
validate_url, is_json, validate_public)
|
36
|
-
from .asset_catalog_omvs import AssetCatalog
|
37
|
-
|
38
|
-
from .my_profile_omvs import MyProfile
|
39
|
-
from .full_omag_server_config import FullServerConfig
|
40
|
-
from .server_operations import ServerOps
|
41
|
-
from .collection_manager_omvs import CollectionManager
|
42
|
-
from .project_manager_omvs import ProjectManager
|
43
|
-
from .valid_metadata_omvs import ValidMetadataManager
|
44
|
-
from .asset_catalog_omvs import AssetCatalog
|
45
|
-
from .Xloaded_resources_omvs import LoadedResources
|
46
|
-
from ._deprecated_gov_engine import GovEng
|
47
|
-
from .runtime_manager_omvs import RuntimeManager
|
48
|
-
from .action_author_omvs import GovernanceAuthor
|
49
|
-
from .glossary_manager_omvs import GlossaryManager
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/operational/refresh_integration_daemon.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/get_my_profile.py
RENAMED
File without changes
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/list_projects.py
RENAMED
File without changes
|
File without changes
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/view_my_todos.py
RENAMED
File without changes
|
{pyegeria-0.5.5.20 → pyegeria-0.5.5.22}/examples/widgets/personal_organizer/view_open_todos.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|