pyegeria 0.6.8__tar.gz → 0.7.2__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.6.8 → pyegeria-0.7.2}/PKG-INFO +1 -1
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/get_asset_graph.py +6 -6
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/egeria.py +4 -4
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/get_guid_info.py +5 -1
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/classification_manager_omvs.py +1638 -199
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyproject.toml +1 -1
- {pyegeria-0.6.8 → pyegeria-0.7.2}/LICENSE +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/README.md +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/doc_samples/Create_Collection_Sample.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/README.md +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/__init__.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/get_collection.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/get_project_structure.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/get_tech_type_elements.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/get_tech_type_template.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_assets.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_cert_types.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_glossary.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_projects.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_tech_types.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_todos.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/__init__.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/egeria_cat.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/egeria_my.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/egeria_ops.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/egeria_tech.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/ops_config.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/README.md +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/__init__.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/list_my_profile.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/list_my_roles.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/monitor_my_todos.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/monitor_open_todos.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/my_profile_actions.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/README.md +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/__init__.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/engine_actions.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/integration_daemon_actions.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/list_catalog_targets.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/load_archive.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_asset_events.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_coco_status.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_engine_activity.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_gov_eng_status.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_integ_daemon_status.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_platform_status.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_server_list.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_server_status.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/refresh_integration_daemon.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/restart_integration_daemon.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/README.md +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/__init__.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/get_tech_details.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/list_asset_types.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/list_registered_services.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/list_relationship_types.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/list_tech_templates.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/list_valid_metadata_values.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/Xloaded_resources_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/__init__.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/_client.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/_deprecated_gov_engine.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/_exceptions.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/_globals.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/_validators.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/action_author_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/asset_catalog_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/automated_curation_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/collection_manager_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/core_omag_server_config.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/create_tech_guid_lists.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/feedback_manager_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/full_omag_server_config.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/glossary_browser_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/glossary_manager_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/my_profile_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/platform_services.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/project_manager_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/registered_info.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/runtime_manager_omvs.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/server_operations.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/utils.py +0 -0
- {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/valid_metadata_omvs.py +0 -0
@@ -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", "---")
|
@@ -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"""
|
@@ -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
|
|