pyegeria 0.7.0__py3-none-any.whl → 0.7.2__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.
- examples/widgets/cat/get_asset_graph.py +6 -6
- examples/widgets/cli/egeria.py +4 -4
- examples/widgets/tech/get_guid_info.py +5 -1
- {pyegeria-0.7.0.dist-info → pyegeria-0.7.2.dist-info}/METADATA +1 -1
- {pyegeria-0.7.0.dist-info → pyegeria-0.7.2.dist-info}/RECORD +8 -8
- {pyegeria-0.7.0.dist-info → pyegeria-0.7.2.dist-info}/LICENSE +0 -0
- {pyegeria-0.7.0.dist-info → pyegeria-0.7.2.dist-info}/WHEEL +0 -0
- {pyegeria-0.7.0.dist-info → pyegeria-0.7.2.dist-info}/entry_points.txt +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", "---")
|
examples/widgets/cli/egeria.py
CHANGED
@@ -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
|
|
@@ -2,7 +2,7 @@ examples/doc_samples/Create_Collection_Sample.py,sha256=D8nhc4qLXIzAqVdJQjmFIS-j
|
|
2
2
|
examples/doc_samples/Create_Sustainability_Collection_Sample.py,sha256=iLBm1LwRLi42Gayyb-wcWZ5NySQ6sc4kVSmwIAzP2Po,5049
|
3
3
|
examples/widgets/cat/README.md,sha256=-aaAnIT2fcfU63vajgB-RzQk4l4yFdhkyVfSaTPiqRY,967
|
4
4
|
examples/widgets/cat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
examples/widgets/cat/get_asset_graph.py,sha256=
|
5
|
+
examples/widgets/cat/get_asset_graph.py,sha256=5YwgV4D1_R9pptPJuIFbPOjWpZBnfPiEan33_To75TE,11194
|
6
6
|
examples/widgets/cat/get_collection.py,sha256=DBZ5-XkoYsz4WmMSPz0Ao0wz3DlAUQve89KI26-44nc,4613
|
7
7
|
examples/widgets/cat/get_project_structure.py,sha256=-ruR649KZoyxJxiITUd9YFq9kn_uxcnybqVTa_7iiic,5692
|
8
8
|
examples/widgets/cat/get_tech_type_elements.py,sha256=SvnDWfBIA1NzpkKZj4-ZapIeM2SEhe5jJt7rTkvTzaA,6129
|
@@ -14,7 +14,7 @@ examples/widgets/cat/list_projects.py,sha256=jP6HoVqGi-w4R1itgdAW1zamPLsgkvjvh8r
|
|
14
14
|
examples/widgets/cat/list_tech_types.py,sha256=20T4v6L5qeebSsaL1nGkFMDAIsy2W3A3SMm1RcgFoh0,4609
|
15
15
|
examples/widgets/cat/list_todos.py,sha256=wD9HevGcc4G_bxV25VUz1rRssdZHE33mF5zmJ6Lprt8,5522
|
16
16
|
examples/widgets/cli/__init__.py,sha256=6d_R0KZBNnJy9EBz9J2xvGFlx-3j_ZPqPCxKgdvYeDQ,291
|
17
|
-
examples/widgets/cli/egeria.py,sha256=
|
17
|
+
examples/widgets/cli/egeria.py,sha256=Uh_OUMmh223H9c5wNjUtM3lNZP1m9oVRApolCtlSq6s,22879
|
18
18
|
examples/widgets/cli/egeria_cat.py,sha256=f9KxOPAEFbeEtSAdk_czcBDLqCKsHkrpdiBuDDo-iUw,10301
|
19
19
|
examples/widgets/cli/egeria_my.py,sha256=xi2j1hzNnjDruJeR1qa8K9JPDgzaL_COsMkcieT4Vo8,5653
|
20
20
|
examples/widgets/cli/egeria_ops.py,sha256=ZOIQdpRZ5VgL282OpjNVmXvxxmmVxnOaEGF0sNIpzF0,10011
|
@@ -45,7 +45,7 @@ examples/widgets/ops/refresh_integration_daemon.py,sha256=QDB3dpAlLY8PhrGhAZG4tW
|
|
45
45
|
examples/widgets/ops/restart_integration_daemon.py,sha256=fID7qGFL5RD6rfn9PgXf5kwI4MU0Ho_IGXnDVbKT5nU,2710
|
46
46
|
examples/widgets/tech/README.md,sha256=nxDnfr3BCiGgW5G1VxWxiwUWJXIe5wreNuUeRyIt_hY,1343
|
47
47
|
examples/widgets/tech/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
48
|
-
examples/widgets/tech/get_guid_info.py,sha256=
|
48
|
+
examples/widgets/tech/get_guid_info.py,sha256=p-peTX1Mahi8fNmcNVHOVI3OjqjlJwZjv7gRdBI4l0Q,4137
|
49
49
|
examples/widgets/tech/get_tech_details.py,sha256=b7i3kSTaZ2pZPcxkDccqY27bqeHJoYnPCxOvlKPH0hw,5753
|
50
50
|
examples/widgets/tech/list_asset_types.py,sha256=PHPtCXqCHhIw0K59hUvoKdybp6IKPt_9Wc0AJVDtdrg,4181
|
51
51
|
examples/widgets/tech/list_registered_services.py,sha256=TqZbT54vMGvHUAX_bovCce3A3eV_RbjSEtPP6u6ZJV0,6388
|
@@ -78,8 +78,8 @@ pyegeria/runtime_manager_omvs.py,sha256=oSVFeG_yBGXIvQR0EClLZqTZ6C5z5ReZzwm8cce8
|
|
78
78
|
pyegeria/server_operations.py,sha256=ZX7FlJRrAC7RK4bq4wHWepEsYbbWlqkUZdsJrTplVVU,16534
|
79
79
|
pyegeria/utils.py,sha256=pkVmS3RrbjaS9yz7FtOCwaOfV5FMqz-__Rt5koCnd9c,5374
|
80
80
|
pyegeria/valid_metadata_omvs.py,sha256=aisdRodIwJSkyArAzfm_sEnBELh69xE8k4Nea-vHu8M,36745
|
81
|
-
pyegeria-0.7.
|
82
|
-
pyegeria-0.7.
|
83
|
-
pyegeria-0.7.
|
84
|
-
pyegeria-0.7.
|
85
|
-
pyegeria-0.7.
|
81
|
+
pyegeria-0.7.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
82
|
+
pyegeria-0.7.2.dist-info/METADATA,sha256=EyJwCfdDerEzBM3oWs3cQ6-poF_2AMNJesVx7YS6bU8,2774
|
83
|
+
pyegeria-0.7.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
84
|
+
pyegeria-0.7.2.dist-info/entry_points.txt,sha256=tgDYOGHc_YWRsrz0kyvouqOTdrHgiITKzF3GLVV-GvQ,2727
|
85
|
+
pyegeria-0.7.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|