pyegeria 0.4.1__py3-none-any.whl → 0.5.1__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.
- {pyegeria-0.4.1.data/scripts → examples/doc_samples}/Create_Collection_Sample.py +0 -0
- {pyegeria-0.4.1.data/scripts → examples/doc_samples}/Create_Sustainability_Collection_Sample.py +0 -0
- examples/widgets/catalog_user/README.md +15 -0
- examples/widgets/catalog_user/__init__.py +0 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/catalog_user}/list_assets.py +6 -3
- {pyegeria-0.4.1.data/scripts → examples/widgets/catalog_user}/view_asset_graph.py +5 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/catalog_user}/view_collection.py +5 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/catalog_user}/view_glossary.py +6 -3
- examples/widgets/developer/README.md +24 -0
- examples/widgets/developer/__init__.py +0 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/get_guid_info.py +6 -8
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/get_tech_details.py +11 -22
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_asset_types.py +5 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_registered_services.py +5 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_relationship_types.py +6 -4
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_tech_templates.py +3 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_tech_types.py +5 -3
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_valid_metadata_values.py +15 -13
- examples/widgets/operational/README.md +24 -0
- examples/widgets/operational/__init__.py +7 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/get_tech_type_elements.py +5 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/get_tech_type_template.py +11 -14
- examples/widgets/operational/view_asset_events.py +78 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_coco_status.py +5 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_eng_action_status.py +5 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_gov_eng_status.py +5 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_integ_daemon_status.py +5 -4
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_platform_status.py +6 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_server_list.py +5 -2
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_server_status.py +7 -4
- examples/widgets/personal_organizer/README.md +17 -0
- examples/widgets/personal_organizer/__init__.py +0 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/personal_organizer}/get_my_profile.py +6 -3
- {pyegeria-0.4.1.data/scripts → examples/widgets/personal_organizer}/list_projects.py +6 -4
- {pyegeria-0.4.1.data/scripts → examples/widgets/personal_organizer}/list_todos.py +6 -3
- {pyegeria-0.4.1.data/scripts → examples/widgets/personal_organizer}/view_my_todos.py +8 -11
- {pyegeria-0.4.1.data/scripts → examples/widgets/personal_organizer}/view_open_todos.py +6 -2
- pyegeria/__init__.py +1 -1
- pyegeria/automated_curation_omvs.py +6 -6
- pyegeria/core_guids.py +47 -54
- {pyegeria-0.4.1.dist-info → pyegeria-0.5.1.dist-info}/METADATA +15 -16
- pyegeria-0.5.1.dist-info/RECORD +67 -0
- {pyegeria-0.4.1.dist-info → pyegeria-0.5.1.dist-info}/WHEEL +1 -2
- pyegeria-0.5.1.dist-info/entry_points.txt +29 -0
- pyegeria-0.4.1.dist-info/RECORD +0 -58
- pyegeria-0.4.1.dist-info/top_level.txt +0 -1
- {pyegeria-0.4.1.dist-info → pyegeria-0.5.1.dist-info}/LICENSE +0 -0
File without changes
|
{pyegeria-0.4.1.data/scripts → examples/doc_samples}/Create_Sustainability_Collection_Sample.py
RENAMED
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- SPDX-License-Identifier: CC-BY-4.0 -->
|
2
|
+
<!-- Copyright Contributors to the Egeria project. -->
|
3
|
+
|
4
|
+
# Catalog User
|
5
|
+
|
6
|
+
These widgets display different kinds of information useful to a typical catalog user. Widgets
|
7
|
+
will continue to be added over time to cover more facets of catalog use.
|
8
|
+
|
9
|
+
* list_assets.py - lists assets containing the user provided search string in the display name or qualified name. Search string must be a minimum of three characters.
|
10
|
+
* view_asset_graph.py - shows a tree view of an asset with its nested elements and relationships.
|
11
|
+
* view_collection.py - provides a tree view of a collection with all nested collections and items within the collection.
|
12
|
+
* view_glossary.py - provides a simple glossary viewer showing terms and related information.
|
13
|
+
----
|
14
|
+
License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
|
15
|
+
Copyright Contributors to the Egeria project.
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -118,7 +118,7 @@ def display_assets(search_string: str, guid: str=None, server: str = good_server
|
|
118
118
|
print_exception_response(e)
|
119
119
|
assert e.related_http_code != "200", "Invalid parameters"
|
120
120
|
|
121
|
-
|
121
|
+
def main():
|
122
122
|
sus_guid = "f9b78b26-6025-43fa-9299-a905cc6d1575"
|
123
123
|
parser = argparse.ArgumentParser()
|
124
124
|
parser.add_argument("--server", help="Name of the server to display status for")
|
@@ -135,4 +135,7 @@ if __name__ == "__main__":
|
|
135
135
|
guid = sus_guid if args.sustainability else None
|
136
136
|
|
137
137
|
search_string = Prompt.ask("Enter the asset you are searching for:", default="*")
|
138
|
-
display_assets(search_string, guid,server, url, userid)
|
138
|
+
display_assets(search_string, guid,server, url, userid)
|
139
|
+
|
140
|
+
if __name__ == "__main__":
|
141
|
+
main()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -229,7 +229,7 @@ def asset_viewer(asset_guid: str, server_name:str, platform_url:str, user:str):
|
|
229
229
|
print_exception_response(e)
|
230
230
|
|
231
231
|
|
232
|
-
|
232
|
+
def main():
|
233
233
|
parser = argparse.ArgumentParser()
|
234
234
|
|
235
235
|
parser.add_argument("--server", help="Name of the server to display status for")
|
@@ -243,3 +243,6 @@ if __name__ == "__main__":
|
|
243
243
|
|
244
244
|
asset_guid = Prompt.ask("Enter the Asset GUID to view:", default="8e35b39e-6ee7-4d60-aff5-4b09406c5e79")
|
245
245
|
asset_viewer(asset_guid,server, url, userid)
|
246
|
+
|
247
|
+
if __name__ == "__main__":
|
248
|
+
main()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -63,7 +63,7 @@ def collection_viewer(root: str, server_name: str, platform_url: str, user: str)
|
|
63
63
|
print_exception_response(e)
|
64
64
|
|
65
65
|
|
66
|
-
|
66
|
+
def main():
|
67
67
|
parser = argparse.ArgumentParser()
|
68
68
|
|
69
69
|
parser.add_argument("--server", help="Name of the server to display status for")
|
@@ -77,3 +77,6 @@ if __name__ == "__main__":
|
|
77
77
|
|
78
78
|
root_collection = Prompt.ask("Enter the Root Collection to start from:", default="Digital Products Root")
|
79
79
|
collection_viewer(root_collection, server, url, userid)
|
80
|
+
|
81
|
+
if __name__ == "__main__":
|
82
|
+
main()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -115,7 +115,7 @@ def display_glossary_terms(search_string: str, guid: str=None, server: str = goo
|
|
115
115
|
print_exception_response(e)
|
116
116
|
assert e.related_http_code != "200", "Invalid parameters"
|
117
117
|
|
118
|
-
|
118
|
+
def main():
|
119
119
|
sus_guid = "f9b78b26-6025-43fa-9299-a905cc6d1575"
|
120
120
|
parser = argparse.ArgumentParser()
|
121
121
|
parser.add_argument("--server", help="Name of the server to display status for")
|
@@ -132,4 +132,7 @@ if __name__ == "__main__":
|
|
132
132
|
guid = sus_guid if args.sustainability else None
|
133
133
|
|
134
134
|
search_string = Prompt.ask("Enter the term you are searching for:", default="*")
|
135
|
-
display_glossary_terms(search_string, guid,server, url, userid)
|
135
|
+
display_glossary_terms(search_string, guid,server, url, userid)
|
136
|
+
|
137
|
+
if __name__ == "__main__":
|
138
|
+
main()
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!-- SPDX-License-Identifier: CC-BY-4.0 -->
|
2
|
+
<!-- Copyright Contributors to the Egeria project. -->
|
3
|
+
|
4
|
+
# Developer
|
5
|
+
|
6
|
+
These widgets display different kinds of information useful to developers. Widgets
|
7
|
+
will continue to be added over time to cover more facets. Useful developer information
|
8
|
+
can also be found on [Egeria Project](https://egeria-project.org) and in [Egeria Explorers](https://egeria-project.org/release-notes/june-2024/?h=brain#egeria-explorers).
|
9
|
+
|
10
|
+
* get_guid_info.py - lists information about the metadata element specified by the Egeria guid.
|
11
|
+
* get_tech_details.py - shows a tree view showing the Egeria support for a particular technology (e.g PostgreSQL Server).
|
12
|
+
* list_asset_types.py - provides a tree view of a collection with all nested collections and items within the collection.
|
13
|
+
* list_registered_services.py - lists the services available on an Egeria platform.
|
14
|
+
* list_relationship_types.py - list the relationships details for a specified Egeria type.
|
15
|
+
* list_tech_templates.py - list template details for technology types
|
16
|
+
* list_tech_types.py - list the technology types that Egeria currently supports
|
17
|
+
* list_valid_metadata_values.py - list valid metadata values for a particular property and category.
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
----
|
23
|
+
License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
|
24
|
+
Copyright Contributors to the Egeria project.
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-Lic
|
4
4
|
ense-Identifier: Apache-2.0
|
@@ -11,17 +11,13 @@ A simple display for glossary terms
|
|
11
11
|
"""
|
12
12
|
|
13
13
|
import argparse
|
14
|
-
import httpx
|
15
14
|
import json
|
16
|
-
import time
|
17
15
|
|
18
|
-
from rich import box
|
19
16
|
from rich import print
|
20
17
|
from rich.console import Console
|
21
18
|
from rich.prompt import Prompt
|
22
19
|
from rich.text import Text
|
23
20
|
from rich.tree import Tree
|
24
|
-
from rich.json import JSON
|
25
21
|
|
26
22
|
from pyegeria import (
|
27
23
|
InvalidParameterException,
|
@@ -30,7 +26,6 @@ from pyegeria import (
|
|
30
26
|
print_exception_response,
|
31
27
|
Client
|
32
28
|
)
|
33
|
-
from pyegeria import ProjectManager
|
34
29
|
|
35
30
|
|
36
31
|
def display_guid(guid: str, server: str, url: str, username: str):
|
@@ -67,7 +62,7 @@ def display_guid(guid: str, server: str, url: str, username: str):
|
|
67
62
|
else:
|
68
63
|
print_exception_response(e)
|
69
64
|
|
70
|
-
|
65
|
+
def main():
|
71
66
|
|
72
67
|
parser = argparse.ArgumentParser()
|
73
68
|
parser.add_argument("--server", help="Name of the server to display status for")
|
@@ -83,4 +78,7 @@ if __name__ == "__main__":
|
|
83
78
|
|
84
79
|
guid = Prompt.ask("Enter the GUID to retrieve:", default=None)
|
85
80
|
|
86
|
-
display_guid(guid, server, url, userid)
|
81
|
+
display_guid(guid, server, url, userid)
|
82
|
+
|
83
|
+
if __name__ == "__main__":
|
84
|
+
main()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -7,33 +7,19 @@ A simple viewer for collections - provide the root and we display the hierarchy
|
|
7
7
|
|
8
8
|
"""
|
9
9
|
|
10
|
-
import time
|
11
10
|
import argparse
|
12
11
|
|
13
|
-
from rich
|
14
|
-
from rich.
|
12
|
+
from rich import print
|
13
|
+
from rich.panel import Panel
|
15
14
|
from rich.prompt import Prompt
|
16
|
-
|
17
|
-
from pyegeria._exceptions import (
|
18
|
-
InvalidParameterException,
|
19
|
-
PropertyServerException,
|
20
|
-
UserNotAuthorizedException,
|
21
|
-
print_exception_response,
|
22
|
-
)
|
23
|
-
from rich.table import Table
|
24
|
-
from rich.live import Live
|
25
15
|
from rich.text import Text
|
26
16
|
from rich.tree import Tree
|
27
|
-
from rich.markdown import Markdown
|
28
17
|
|
29
|
-
from
|
30
|
-
from rich.console import Group
|
31
|
-
from rich.panel import Panel
|
32
|
-
from rich import box, align
|
33
|
-
from rich.layout import Layout
|
34
|
-
import rich
|
35
|
-
from pyegeria import (CollectionManager, UserNotAuthorizedException, PropertyServerException,
|
18
|
+
from pyegeria import (UserNotAuthorizedException, PropertyServerException,
|
36
19
|
InvalidParameterException, AutomatedCuration)
|
20
|
+
from pyegeria._exceptions import (
|
21
|
+
print_exception_response,
|
22
|
+
)
|
37
23
|
|
38
24
|
disable_ssl_warnings = True
|
39
25
|
|
@@ -95,7 +81,7 @@ def tech_viewer(tech: str, server_name:str, platform_url:str, user:str):
|
|
95
81
|
print_exception_response(e)
|
96
82
|
|
97
83
|
|
98
|
-
|
84
|
+
def main():
|
99
85
|
parser = argparse.ArgumentParser()
|
100
86
|
|
101
87
|
parser.add_argument("--server", help="Name of the server to display status for")
|
@@ -109,3 +95,6 @@ if __name__ == "__main__":
|
|
109
95
|
|
110
96
|
tech = Prompt.ask("Enter the Technology to start from:", default="PostgreSQL Server")
|
111
97
|
tech_viewer(tech,server, url, userid)
|
98
|
+
|
99
|
+
if __name__ == "__main__":
|
100
|
+
main()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -74,7 +74,7 @@ def display_asset_types(server: str, url: str, username: str):
|
|
74
74
|
r_client.close_session()
|
75
75
|
|
76
76
|
|
77
|
-
|
77
|
+
def main():
|
78
78
|
parser = argparse.ArgumentParser()
|
79
79
|
parser.add_argument("--server", help="Name of the server to display status for")
|
80
80
|
parser.add_argument("--url", help="URL Platform to connect to")
|
@@ -89,3 +89,6 @@ if __name__ == "__main__":
|
|
89
89
|
guid = None
|
90
90
|
|
91
91
|
display_asset_types(server, url, userid)
|
92
|
+
|
93
|
+
if __name__ == "__main__":
|
94
|
+
main()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -116,7 +116,7 @@ def display_registered_svcs(service: str, server: str , url: str,
|
|
116
116
|
a_client.close_session()
|
117
117
|
|
118
118
|
|
119
|
-
|
119
|
+
def main():
|
120
120
|
parser = argparse.ArgumentParser()
|
121
121
|
parser.add_argument("--server", help="Name of the server to display status for")
|
122
122
|
parser.add_argument("--url", help="URL Platform to connect to")
|
@@ -133,3 +133,6 @@ if __name__ == "__main__":
|
|
133
133
|
svc_kind = Prompt.ask("Enter the service type you are searching for:", default="all")
|
134
134
|
|
135
135
|
display_registered_svcs(svc_kind, server, url, userid, password=password)
|
136
|
+
|
137
|
+
if __name__ == "__main__":
|
138
|
+
main()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-Lic
|
4
4
|
ense-Identifier: Apache-2.0
|
@@ -104,8 +104,7 @@ def display_list(type_name:str, server: str, url: str ,
|
|
104
104
|
else:
|
105
105
|
print_exception_response(e)
|
106
106
|
|
107
|
-
|
108
|
-
|
107
|
+
def main():
|
109
108
|
parser = argparse.ArgumentParser()
|
110
109
|
parser.add_argument("--server", help="Name of the server to display status for")
|
111
110
|
parser.add_argument("--url", help="URL Platform to connect to")
|
@@ -120,4 +119,7 @@ if __name__ == "__main__":
|
|
120
119
|
save_output = args.save_output if args.save_output is not None else False
|
121
120
|
type_name = Prompt.ask("Enter the Type Name to retrieve:", default="AssetOwner")
|
122
121
|
|
123
|
-
display_list(type_name, server, url, userid, save_output)
|
122
|
+
display_list(type_name, server, url, userid, save_output)
|
123
|
+
|
124
|
+
if __name__ == "__main__":
|
125
|
+
main()
|
@@ -109,7 +109,7 @@ def display_tech_types(search_string:str = "*", server: str = server,
|
|
109
109
|
a_client.close_session()
|
110
110
|
|
111
111
|
|
112
|
-
|
112
|
+
def main():
|
113
113
|
parser = argparse.ArgumentParser()
|
114
114
|
parser.add_argument("--server", help="Name of the server to display status for")
|
115
115
|
parser.add_argument("--url", help="URL Platform to connect to")
|
@@ -128,7 +128,8 @@ if __name__ == "__main__":
|
|
128
128
|
|
129
129
|
display_tech_types(search_string, server, url, userid, password)
|
130
130
|
|
131
|
-
|
131
|
+
if __name__ == "__main__":
|
132
|
+
main()
|
132
133
|
|
133
134
|
|
134
135
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -23,7 +23,6 @@ from pyegeria import (
|
|
23
23
|
PropertyServerException,
|
24
24
|
UserNotAuthorizedException,
|
25
25
|
print_exception_response,
|
26
|
-
RegisteredInfo,
|
27
26
|
AutomatedCuration
|
28
27
|
)
|
29
28
|
|
@@ -106,7 +105,7 @@ def display_tech_types(search_string:str = "*", server: str = good_server_3, url
|
|
106
105
|
a_client.close_session()
|
107
106
|
|
108
107
|
|
109
|
-
|
108
|
+
def main():
|
110
109
|
parser = argparse.ArgumentParser()
|
111
110
|
parser.add_argument("--server", help="Name of the server to display status for")
|
112
111
|
parser.add_argument("--url", help="URL Platform to connect to")
|
@@ -122,3 +121,6 @@ if __name__ == "__main__":
|
|
122
121
|
search_string = Prompt.ask("Enter the technology you are searching for:", default="*")
|
123
122
|
|
124
123
|
display_tech_types(search_string, server, url, userid)
|
124
|
+
|
125
|
+
if __name__ == "__main__":
|
126
|
+
main()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-Lic
|
4
4
|
ense-Identifier: Apache-2.0
|
@@ -10,22 +10,22 @@ Unit tests for the Utils helper functions using the Pytest framework.
|
|
10
10
|
A simple display for glossary terms
|
11
11
|
"""
|
12
12
|
|
13
|
-
import time
|
14
|
-
import json
|
15
13
|
import argparse
|
14
|
+
import json
|
15
|
+
import time
|
16
|
+
|
17
|
+
from rich import box
|
18
|
+
from rich import print
|
19
|
+
from rich.console import Console
|
20
|
+
from rich.prompt import Prompt
|
21
|
+
from rich.table import Table
|
22
|
+
|
16
23
|
from pyegeria import (
|
17
24
|
InvalidParameterException,
|
18
25
|
PropertyServerException,
|
19
26
|
UserNotAuthorizedException,
|
20
27
|
print_exception_response,
|
21
28
|
)
|
22
|
-
from rich.table import Table
|
23
|
-
from rich.live import Live
|
24
|
-
from rich import box
|
25
|
-
from rich.prompt import Prompt
|
26
|
-
from rich.tree import Tree
|
27
|
-
from rich import print
|
28
|
-
from rich.console import Console
|
29
29
|
from pyegeria import ValidMetadataManager
|
30
30
|
|
31
31
|
disable_ssl_warnings = True
|
@@ -125,8 +125,7 @@ def display_values(property_name: str, type_name: str=None, server: str = good_s
|
|
125
125
|
else:
|
126
126
|
print_exception_response(e)
|
127
127
|
|
128
|
-
|
129
|
-
|
128
|
+
def main():
|
130
129
|
parser = argparse.ArgumentParser()
|
131
130
|
parser.add_argument("--server", help="Name of the server to display status for")
|
132
131
|
parser.add_argument("--url", help="URL Platform to connect to")
|
@@ -141,4 +140,7 @@ if __name__ == "__main__":
|
|
141
140
|
save_output = args.save_output if args.save_output is not None else False
|
142
141
|
property_name = Prompt.ask("Enter the Property to retrieve:", default="projectHealth")
|
143
142
|
type_name = Prompt.ask("Enter the Metadata Type to filter on:", default="Project")
|
144
|
-
display_values(property_name, type_name,server, url, userid, save_output)
|
143
|
+
display_values(property_name, type_name,server, url, userid, save_output)
|
144
|
+
|
145
|
+
if __name__ == "__main__":
|
146
|
+
main()
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!-- SPDX-License-Identifier: CC-BY-4.0 -->
|
2
|
+
<!-- Copyright Contributors to the Egeria project. -->
|
3
|
+
|
4
|
+
# Operational
|
5
|
+
|
6
|
+
These widgets display different kinds of information useful to monitor the status of different elements of an Egeria deployment.
|
7
|
+
Widgets will continue to be added over time to cover more facets of catalog use.
|
8
|
+
|
9
|
+
* get_eng_action_status.py - lists assets containing the user provided search string in the display name or qualified name. Search string must be a minimum of three characters.
|
10
|
+
* get_tech_type_elements.py - shows a tree view for the details of a supported technology type.
|
11
|
+
* get_tech_type_template.py - shows a tree view of the template associated with a supported technology type.
|
12
|
+
* view_coco_status.py - provides a tree view of a collection with all nested collections and items within the collection.
|
13
|
+
* view_eng_action_status.py - provides a live view of the status of engine actions.
|
14
|
+
* view_gov_eng_status.py - provides a live view of a governance engine status.
|
15
|
+
* view_integ_daemeon_status.py - provides a live view of an integration daemon status.
|
16
|
+
* view_platform_status.py - provides a live status view of the known servers on known platforms.
|
17
|
+
* view_server_list.py - provides a more detailed live status view of the servers on a single platform.
|
18
|
+
* view_server_status.py - provides a minimal live status view of the servers on a single platform.
|
19
|
+
* view_asset_changes.py - experiment in progress
|
20
|
+
* view_asset_events.py - experiment in progress
|
21
|
+
|
22
|
+
----
|
23
|
+
License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
|
24
|
+
Copyright Contributors to the Egeria project.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -121,7 +121,7 @@ def tech_viewer(tech_name: str, server_name:str, platform_url:str, user:str):
|
|
121
121
|
print_exception_response(e)
|
122
122
|
|
123
123
|
|
124
|
-
|
124
|
+
def main():
|
125
125
|
parser = argparse.ArgumentParser()
|
126
126
|
|
127
127
|
parser.add_argument("--server", help="Name of the server to display status for")
|
@@ -135,3 +135,6 @@ if __name__ == "__main__":
|
|
135
135
|
|
136
136
|
tech_name = Prompt.ask("Enter the Asset Name to view:", default="Apache Kafka Server")
|
137
137
|
tech_viewer(tech_name,server, url, userid)
|
138
|
+
|
139
|
+
if __name__ == "__main__":
|
140
|
+
main()
|
@@ -1,16 +1,19 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
5
5
|
|
6
6
|
Display the status of cataloged platforms and servers.
|
7
7
|
"""
|
8
|
-
import sys
|
9
|
-
import time
|
10
8
|
import argparse
|
9
|
+
import sys
|
11
10
|
|
12
|
-
from rich import
|
11
|
+
from rich import print
|
12
|
+
from rich.console import Console
|
13
|
+
from rich.markdown import Markdown
|
13
14
|
from rich.panel import Panel
|
15
|
+
from rich.prompt import Prompt
|
16
|
+
from rich.tree import Tree
|
14
17
|
|
15
18
|
from pyegeria import (
|
16
19
|
InvalidParameterException,
|
@@ -19,15 +22,6 @@ from pyegeria import (
|
|
19
22
|
print_exception_response,
|
20
23
|
AutomatedCuration
|
21
24
|
)
|
22
|
-
from rich.table import Table
|
23
|
-
from rich.live import Live
|
24
|
-
from rich.console import Console
|
25
|
-
from rich.markdown import Markdown
|
26
|
-
from rich.tree import Tree
|
27
|
-
from rich.prompt import Prompt
|
28
|
-
from rich.panel import Panel
|
29
|
-
from rich.text import Text
|
30
|
-
from rich import print
|
31
25
|
|
32
26
|
disable_ssl_warnings = True
|
33
27
|
console = Console(width=200)
|
@@ -121,7 +115,7 @@ def tech_viewer(tech_name: str, server_name:str, platform_url:str, user:str):
|
|
121
115
|
print_exception_response(e)
|
122
116
|
|
123
117
|
|
124
|
-
|
118
|
+
def main():
|
125
119
|
parser = argparse.ArgumentParser()
|
126
120
|
|
127
121
|
parser.add_argument("--server", help="Name of the server to display status for")
|
@@ -135,3 +129,6 @@ if __name__ == "__main__":
|
|
135
129
|
|
136
130
|
tech_name = Prompt.ask("Enter the Asset Name to view:", default="Apache Kafka Server")
|
137
131
|
tech_viewer(tech_name,server, url, userid)
|
132
|
+
|
133
|
+
if __name__ == "__main__":
|
134
|
+
main()
|
@@ -0,0 +1,78 @@
|
|
1
|
+
#!/usr/bin/env python3
|
2
|
+
"""
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
4
|
+
Copyright Contributors to the ODPi Egeria project.
|
5
|
+
|
6
|
+
Display the status of cataloged platforms and servers.
|
7
|
+
"""
|
8
|
+
import json
|
9
|
+
import sys
|
10
|
+
import time
|
11
|
+
import argparse
|
12
|
+
from datetime import datetime
|
13
|
+
from rich.prompt import Prompt
|
14
|
+
from rich.table import Table
|
15
|
+
from rich.live import Live
|
16
|
+
from rich.console import Console
|
17
|
+
from rich.markdown import Markdown
|
18
|
+
from confluent_kafka import Consumer, KafkaException
|
19
|
+
|
20
|
+
def main():
|
21
|
+
|
22
|
+
disable_ssl_warnings = True
|
23
|
+
console = Console(width=200)
|
24
|
+
now = datetime.now()
|
25
|
+
current_time = now.strftime("%H:%M:%S")
|
26
|
+
|
27
|
+
earliest_latest = Prompt.ask("Msgs from earliest or latest:", default="earliest")
|
28
|
+
|
29
|
+
# Define the Kafka consumer configuration.
|
30
|
+
config = {
|
31
|
+
'bootstrap.servers': 'localhost:9092', # replace with your Kafka broker(s)
|
32
|
+
'group.id': f"view_asset_events:{current_time}", # replace with your consumer group
|
33
|
+
'auto.offset.reset': earliest_latest # can be set to 'earliest' or 'latest'
|
34
|
+
}
|
35
|
+
|
36
|
+
# Initialize a Kafka consumer.
|
37
|
+
consumer = Consumer(config)
|
38
|
+
|
39
|
+
# Subscribe to a Kafka topic.
|
40
|
+
consumer.subscribe(['egeria.omag.server.active-metadata-store.omas.assetconsumer.outTopic']) # replace with your Kafka topic
|
41
|
+
|
42
|
+
try:
|
43
|
+
while True:
|
44
|
+
msg = consumer.poll(1.0) # timeout set to 1 second
|
45
|
+
|
46
|
+
if msg is None:
|
47
|
+
continue
|
48
|
+
elif msg.error():
|
49
|
+
raise KafkaException(msg.error())
|
50
|
+
else:
|
51
|
+
event = json.loads(msg.value())
|
52
|
+
event_time = event["eventTime"]
|
53
|
+
event_type = event["eventType"]
|
54
|
+
guid = event["elementHeader"]["guid"]
|
55
|
+
|
56
|
+
type_name = event["elementHeader"]["type"]["typeName"]
|
57
|
+
origin = event["elementHeader"]["origin"]["sourceServer"]
|
58
|
+
|
59
|
+
element_properties = event["elementProperties"]
|
60
|
+
element_properties_keys = element_properties.keys()
|
61
|
+
props = " "
|
62
|
+
for key in element_properties_keys:
|
63
|
+
value = element_properties[key]
|
64
|
+
props += f"* {key}: {value}\n"
|
65
|
+
console.rule(style= "[bold red]")
|
66
|
+
console.rule(f"\tMessage TimeStamp: {event_time}\t eventType: {event_type}\t typeName: {type_name}\t guid: {guid}")
|
67
|
+
msg = (
|
68
|
+
|
69
|
+
f"properties: \n{props}\n\n")
|
70
|
+
msg = Markdown(msg)
|
71
|
+
|
72
|
+
console.print(msg)
|
73
|
+
finally:
|
74
|
+
# Close down consumer to commit final offsets.
|
75
|
+
consumer.close()
|
76
|
+
|
77
|
+
if __name__ == "__main__":
|
78
|
+
main()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -85,7 +85,7 @@ def display_status(server: str, url: str, username: str):
|
|
85
85
|
p_client2.close_session()
|
86
86
|
p_client3.close_session()
|
87
87
|
|
88
|
-
|
88
|
+
def main():
|
89
89
|
parser = argparse.ArgumentParser()
|
90
90
|
parser.add_argument("--server", help="Name of the server to display status for")
|
91
91
|
parser.add_argument("--url", help="URL Platform to connect to")
|
@@ -97,3 +97,6 @@ if __name__ == "__main__":
|
|
97
97
|
userid = args.userid if args.userid is not None else 'garygeeke'
|
98
98
|
|
99
99
|
display_status(server, url, userid)
|
100
|
+
|
101
|
+
if __name__ == "__main__":
|
102
|
+
main()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env python3
|
2
2
|
"""
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
4
4
|
Copyright Contributors to the ODPi Egeria project.
|
@@ -118,7 +118,7 @@ def display_status_engine_actions(server: str, url: str, user: str):
|
|
118
118
|
g_client.close_session()
|
119
119
|
|
120
120
|
|
121
|
-
|
121
|
+
def main():
|
122
122
|
parser = argparse.ArgumentParser()
|
123
123
|
parser.add_argument("--server", help="Name of the server to display status for")
|
124
124
|
parser.add_argument("--url", help="URL Platform to connect to")
|
@@ -130,3 +130,6 @@ if __name__ == "__main__":
|
|
130
130
|
userid = args.userid if args.userid is not None else 'garygeeke'
|
131
131
|
print(f"Starting display_status_engine_actions with {server}, {url}, {userid}")
|
132
132
|
display_status_engine_actions(server=server, url=url, user=userid)
|
133
|
+
|
134
|
+
if __name__ == "__main__":
|
135
|
+
main()
|