pyegeria 0.7.0__tar.gz → 0.7.4__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.0 → pyegeria-0.7.4}/PKG-INFO +1 -1
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/doc_samples/Create_Collection_Sample.py +1 -1
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/get_asset_graph.py +6 -6
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/get_project_structure.py +1 -1
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/list_assets.py +3 -2
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cli/egeria.py +4 -4
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/my/list_my_profile.py +5 -5
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/list_catalog_targets.py +2 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/tech/get_guid_info.py +5 -1
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyproject.toml +1 -1
- {pyegeria-0.7.0 → pyegeria-0.7.4}/LICENSE +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/README.md +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/README.md +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/__init__.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/get_collection.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/get_tech_type_elements.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/get_tech_type_template.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/list_cert_types.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/list_glossary.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/list_projects.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/list_tech_types.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cat/list_todos.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cli/__init__.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cli/egeria_cat.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cli/egeria_my.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cli/egeria_ops.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cli/egeria_tech.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/cli/ops_config.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/my/README.md +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/my/__init__.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/my/list_my_roles.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/my/monitor_my_todos.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/my/monitor_open_todos.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/my/my_profile_actions.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/README.md +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/__init__.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/engine_actions.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/integration_daemon_actions.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/load_archive.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/monitor_asset_events.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/monitor_coco_status.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/monitor_engine_activity.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/monitor_gov_eng_status.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/monitor_integ_daemon_status.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/monitor_platform_status.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/monitor_server_list.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/monitor_server_status.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/refresh_integration_daemon.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/ops/restart_integration_daemon.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/tech/README.md +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/tech/__init__.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/tech/get_tech_details.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/tech/list_asset_types.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/tech/list_registered_services.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/tech/list_relationship_types.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/tech/list_tech_templates.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/examples/widgets/tech/list_valid_metadata_values.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/Xloaded_resources_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/__init__.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/_client.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/_deprecated_gov_engine.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/_exceptions.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/_globals.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/_validators.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/action_author_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/asset_catalog_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/automated_curation_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/classification_manager_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/collection_manager_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/core_omag_server_config.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/create_tech_guid_lists.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/feedback_manager_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/full_omag_server_config.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/glossary_browser_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/glossary_manager_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/my_profile_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/platform_services.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/project_manager_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/registered_info.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/runtime_manager_omvs.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/server_operations.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/utils.py +0 -0
- {pyegeria-0.7.0 → pyegeria-0.7.4}/pyegeria/valid_metadata_omvs.py +0 -0
@@ -40,7 +40,7 @@ try:
|
|
40
40
|
display_name, description, collection_type,
|
41
41
|
is_own_anchor)
|
42
42
|
# Create first folder for Agriculture Insights
|
43
|
-
parent_guid =
|
43
|
+
parent_guid = response
|
44
44
|
parent_relationship_type_name = "CollectionMembership"
|
45
45
|
display_name = "Agriculture Insights Collection"
|
46
46
|
description = "A folder for agricultural insights data product collections"
|
@@ -65,14 +65,14 @@ def asset_viewer(asset_guid: str, server_name: str, platform_url: str, user: str
|
|
65
65
|
|
66
66
|
def build_nested_elements(nested_element: dict) -> Markdown:
|
67
67
|
ne_md = " "
|
68
|
-
|
69
|
-
ne_created_by =
|
70
|
-
ne_created_at =
|
71
|
-
ne_guid =
|
68
|
+
ne_header = nested_element['elementHeader']
|
69
|
+
ne_created_by = ne_header["versions"]["createdBy"]
|
70
|
+
ne_created_at = ne_header["versions"]["createTime"]
|
71
|
+
ne_guid = ne_header["guid"]
|
72
72
|
guid_list.append(ne_guid)
|
73
73
|
|
74
|
-
ne_type =
|
75
|
-
ne_classifications =
|
74
|
+
ne_type = ne_header["type"]["typeName"]
|
75
|
+
ne_classifications = ne_header["classifications"]
|
76
76
|
ne_class_md = build_classifications(ne_classifications)
|
77
77
|
# ne_class_md = " " if ne_class_md is None else ne_class_md
|
78
78
|
ne_props = nested_element.get("properties", "---")
|
@@ -79,7 +79,7 @@ def project_structure_viewer(root: str, server_name: str, platform_url: str, use
|
|
79
79
|
proj_props_md += f"\n### Team Members\n {member_md}"
|
80
80
|
|
81
81
|
proj_props_out = Markdown(proj_props_md)
|
82
|
-
p = Panel(proj_props_out, style=style, title=project_name)
|
82
|
+
p = Panel.fit(proj_props_out, style=style, title=project_name)
|
83
83
|
t = tree.add(p)
|
84
84
|
|
85
85
|
linked_projects = project_client.get_linked_projects(proj_guid)
|
@@ -102,10 +102,11 @@ def display_assets(search_string: str, server: str, url: str, username: str, use
|
|
102
102
|
match_tab.add_column("GUID", no_wrap=True, width=36)
|
103
103
|
match_tab.add_column("Properties")
|
104
104
|
|
105
|
-
for
|
105
|
+
for match_t in nested:
|
106
|
+
match = match_t['elementHeader']
|
106
107
|
match_type_name = match['type']['typeName']
|
107
108
|
matching_guid = match['guid']
|
108
|
-
match_props =
|
109
|
+
match_props = match_t['properties']
|
109
110
|
match_details_md = ""
|
110
111
|
for key in match_props.keys():
|
111
112
|
match_details_md += f"* {key}: {match_props[key]}\n"
|
@@ -499,14 +499,14 @@ def survey_uc_server(ctx, uc_endpoint):
|
|
499
499
|
# Operations: Show
|
500
500
|
#
|
501
501
|
|
502
|
-
@cli.group('
|
502
|
+
@cli.group('ops')
|
503
503
|
@click.pass_context
|
504
|
-
def
|
504
|
+
def ops(ctx):
|
505
505
|
""" Commands to understand and manage operations"""
|
506
506
|
pass
|
507
507
|
|
508
508
|
|
509
|
-
@
|
509
|
+
@ops.group("show")
|
510
510
|
@click.pass_context
|
511
511
|
def show(ctx):
|
512
512
|
"""Display an Egeria Object"""
|
@@ -610,7 +610,7 @@ def integrations_status(ctx, connector):
|
|
610
610
|
# Operations: Tell
|
611
611
|
#
|
612
612
|
|
613
|
-
@
|
613
|
+
@ops.group('tell')
|
614
614
|
@click.pass_context
|
615
615
|
def tell(ctx):
|
616
616
|
"""Perform actions an Egeria Objects"""
|
@@ -41,7 +41,7 @@ EGERIA_ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD', 'secret')
|
|
41
41
|
EGERIA_USER = os.environ.get('EGERIA_USER', 'erinoverview')
|
42
42
|
EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
|
43
43
|
EGERIA_JUPYTER = bool(os.environ.get('EGERIA_JUPYTER', 'False'))
|
44
|
-
EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '
|
44
|
+
EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '150'))
|
45
45
|
|
46
46
|
def display_my_profile(server: str, url: str, username: str, user_pass:str,
|
47
47
|
jupyter:bool=EGERIA_JUPYTER, width:int = EGERIA_WIDTH):
|
@@ -71,13 +71,13 @@ def display_my_profile(server: str, url: str, username: str, user_pass:str,
|
|
71
71
|
for k in profile_props[key].keys():
|
72
72
|
p_md += f"\t* {k}: {profile_props[key][k]}\n"
|
73
73
|
profile_props_md += p_md
|
74
|
-
t1 = tree.add(Panel(Markdown(profile_props_md),title="Profile Properties"))
|
74
|
+
t1 = tree.add(Panel(Markdown(profile_props_md),title="Profile Properties", expand=False))
|
75
75
|
|
76
76
|
|
77
77
|
id_list_md=""
|
78
78
|
for identities in my_profiles["userIdentities"]:
|
79
79
|
id_list_md += f"* {identities['userIdentity']['properties']['userId']}\n"
|
80
|
-
t2 = tree.add(Panel(Markdown(id_list_md), title="Identities"))
|
80
|
+
t2 = tree.add(Panel(Markdown(id_list_md), title="Identities", expand=False))
|
81
81
|
|
82
82
|
contact_methods = my_profiles['contactMethods']
|
83
83
|
for method in contact_methods:
|
@@ -85,7 +85,7 @@ def display_my_profile(server: str, url: str, username: str, user_pass:str,
|
|
85
85
|
contact_methods_md = ""
|
86
86
|
for key in contact.keys():
|
87
87
|
contact_methods_md += f"* {key}: {contact[key]}\n"
|
88
|
-
t3 = tree.add(Panel(Markdown(contact_methods_md), title="Contact Methods"))
|
88
|
+
t3 = tree.add(Panel(Markdown(contact_methods_md), title="Contact Methods", expand=False))
|
89
89
|
|
90
90
|
my_roles = my_profiles["roles"]
|
91
91
|
table = Table(
|
@@ -105,7 +105,7 @@ def display_my_profile(server: str, url: str, username: str, user_pass:str,
|
|
105
105
|
table.add_row(
|
106
106
|
role_type, role, role_guid
|
107
107
|
)
|
108
|
-
t4 = tree.add(Panel(table, title="Roles" ),expanded=True)
|
108
|
+
t4 = tree.add(Panel(table, title="Roles", expand=False ),expanded=True)
|
109
109
|
|
110
110
|
print(tree)
|
111
111
|
|
@@ -41,8 +41,10 @@ EGERIA_JUPYTER = bool(os.environ.get('EGERIA_JUPYTER', 'False'))
|
|
41
41
|
EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '200'))
|
42
42
|
|
43
43
|
|
44
|
+
|
44
45
|
def display_catalog_targets(connector: str, server: str, url: str, username: str, user_password: str,
|
45
46
|
jupyter: bool = EGERIA_JUPYTER, width: int = EGERIA_WIDTH):
|
47
|
+
console = Console(force_terminal=not jupyter, width=width, soft_wrap=True)
|
46
48
|
def generate_table() -> Table:
|
47
49
|
"""Make a new table."""
|
48
50
|
table = Table(
|
@@ -24,7 +24,7 @@ from pyegeria import (
|
|
24
24
|
InvalidParameterException,
|
25
25
|
PropertyServerException,
|
26
26
|
UserNotAuthorizedException,
|
27
|
-
Client
|
27
|
+
Client, ClassificationManager
|
28
28
|
)
|
29
29
|
|
30
30
|
|
@@ -48,12 +48,16 @@ def display_guid(guid: str, server: str, url: str, username: str, user_password:
|
|
48
48
|
c = Client(server, url, user_id=username)
|
49
49
|
url = (f"{url}/servers/{server}/open-metadata/repository-services/users/{username}/"
|
50
50
|
f"instances/entity/{guid}")
|
51
|
+
# c = ClassificationManager(server, url)
|
52
|
+
|
53
|
+
bearer_token = c.create_egeria_bearer_token(username, user_password)
|
51
54
|
|
52
55
|
try:
|
53
56
|
console = Console(width=width, force_terminal=not jupyter, style="bold white on black")
|
54
57
|
r = c.make_request("GET", url)
|
55
58
|
if r.status_code == 200:
|
56
59
|
pass
|
60
|
+
# r = c.retrieve_instance_for_guid(guid)
|
57
61
|
e = r.json()['entity']
|
58
62
|
p = e['properties']['instanceProperties']
|
59
63
|
|
File without changes
|
File without changes
|
{pyegeria-0.7.0 → pyegeria-0.7.4}/examples/doc_samples/Create_Sustainability_Collection_Sample.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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|