pyegeria 0.7.30__tar.gz → 0.7.33__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.
Files changed (96) hide show
  1. {pyegeria-0.7.30 → pyegeria-0.7.33}/PKG-INFO +1 -1
  2. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/list_relationships.py +70 -43
  3. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/monitor_engine_activity.py +6 -5
  4. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/monitor_engine_activity_c.py +6 -5
  5. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/monitor_platform_status.py +51 -28
  6. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/monitor_server_list.py +61 -30
  7. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/__init__.py +22 -2
  8. pyegeria-0.7.33/pyegeria/automated_curation_omvs.py +4069 -0
  9. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyproject.toml +4 -1
  10. pyegeria-0.7.30/pyegeria/automated_curation_omvs.py +0 -3271
  11. {pyegeria-0.7.30 → pyegeria-0.7.33}/LICENSE +0 -0
  12. {pyegeria-0.7.30 → pyegeria-0.7.33}/README.md +0 -0
  13. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/doc_samples/Create_Collection_Sample.py +0 -0
  14. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -0
  15. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/README.md +0 -0
  16. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/__init__.py +0 -0
  17. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/get_asset_graph.py +0 -0
  18. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/get_collection.py +0 -0
  19. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/get_project_dependencies.py +0 -0
  20. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/get_project_structure.py +0 -0
  21. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/get_tech_type_elements.py +0 -0
  22. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/get_tech_type_template.py +0 -0
  23. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/list_assets.py +0 -0
  24. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/list_cert_types.py +0 -0
  25. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/list_glossary.py +0 -0
  26. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/list_projects.py +0 -0
  27. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/list_tech_types.py +0 -0
  28. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/list_todos.py +0 -0
  29. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cat/list_user_ids.py +0 -0
  30. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cli/__init__.py +0 -0
  31. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cli/egeria.py +0 -0
  32. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cli/egeria_cat.py +0 -0
  33. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cli/egeria_my.py +0 -0
  34. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cli/egeria_ops.py +0 -0
  35. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cli/egeria_tech.py +0 -0
  36. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/cli/ops_config.py +0 -0
  37. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/my/README.md +0 -0
  38. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/my/__init__.py +0 -0
  39. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/my/list_my_profile.py +0 -0
  40. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/my/list_my_roles.py +0 -0
  41. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/my/monitor_my_todos.py +0 -0
  42. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/my/monitor_open_todos.py +0 -0
  43. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/my/my_profile_actions.py +0 -0
  44. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/my/todo_actions.py +0 -0
  45. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/README.md +0 -0
  46. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/__init__.py +0 -0
  47. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/engine_actions.py +0 -0
  48. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/integration_daemon_actions.py +0 -0
  49. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/list_catalog_targets.py +0 -0
  50. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/load_archive.py +0 -0
  51. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/monitor_asset_events.py +0 -0
  52. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/monitor_coco_status.py +0 -0
  53. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/monitor_gov_eng_status.py +0 -0
  54. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/monitor_integ_daemon_status.py +0 -0
  55. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/monitor_server_status.py +0 -0
  56. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/refresh_integration_daemon.py +0 -0
  57. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/ops/restart_integration_daemon.py +0 -0
  58. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/README.md +0 -0
  59. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/__init__.py +0 -0
  60. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/get_element_info.py +0 -0
  61. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/get_guid_info.py +0 -0
  62. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/get_tech_details.py +0 -0
  63. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/list_asset_types.py +0 -0
  64. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/list_elements.py +0 -0
  65. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/list_elements_x.py +0 -0
  66. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/list_registered_services.py +0 -0
  67. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/list_related_specification.py +0 -0
  68. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/list_relationship_types.py +0 -0
  69. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/list_tech_templates.py +0 -0
  70. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/list_valid_metadata_values.py +0 -0
  71. {pyegeria-0.7.30 → pyegeria-0.7.33}/examples/widgets/tech/x_list_related_elements.py +0 -0
  72. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/Xloaded_resources_omvs.py +0 -0
  73. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/_client.py +0 -0
  74. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/_deprecated_gov_engine.py +0 -0
  75. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/_exceptions.py +0 -0
  76. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/_globals.py +0 -0
  77. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/_validators.py +0 -0
  78. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/action_author_omvs.py +0 -0
  79. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/asset_catalog_omvs.py +0 -0
  80. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/classification_manager_omvs.py +0 -0
  81. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/collection_manager_omvs.py +0 -0
  82. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/core_omag_server_config.py +0 -0
  83. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/create_tech_guid_lists.py +0 -0
  84. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/feedback_manager_omvs.py +0 -0
  85. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/full_omag_server_config.py +0 -0
  86. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/glossary_browser_omvs.py +0 -0
  87. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/glossary_manager_omvs.py +0 -0
  88. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/mermaid_utilities.py +0 -0
  89. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/my_profile_omvs.py +0 -0
  90. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/platform_services.py +0 -0
  91. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/project_manager_omvs.py +0 -0
  92. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/registered_info.py +0 -0
  93. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/runtime_manager_omvs.py +0 -0
  94. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/server_operations.py +0 -0
  95. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/utils.py +0 -0
  96. {pyegeria-0.7.30 → pyegeria-0.7.33}/pyegeria/valid_metadata_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.7.30
3
+ Version: 0.7.33
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -22,37 +22,49 @@ from pyegeria import (
22
22
  InvalidParameterException,
23
23
  PropertyServerException,
24
24
  UserNotAuthorizedException,
25
- ClassificationManager
25
+ ClassificationManager,
26
26
  )
27
27
 
28
28
  EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
29
- EGERIA_KAFKA_ENDPOINT = os.environ.get('KAFKA_ENDPOINT', 'localhost:9092')
30
- EGERIA_PLATFORM_URL = os.environ.get('EGERIA_PLATFORM_URL', 'https://localhost:9443')
31
- EGERIA_VIEW_SERVER = os.environ.get('VIEW_SERVER', 'view-server')
32
- EGERIA_VIEW_SERVER_URL = os.environ.get('EGERIA_VIEW_SERVER_URL', 'https://localhost:9443')
33
- EGERIA_INTEGRATION_DAEMON = os.environ.get('INTEGRATION_DAEMON', 'integration-daemon')
34
- EGERIA_ADMIN_USER = os.environ.get('ADMIN_USER', 'garygeeke')
35
- EGERIA_ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD', 'secret')
36
- EGERIA_USER = os.environ.get('EGERIA_USER', 'erinoverview')
37
- EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
38
- EGERIA_JUPYTER = bool(os.environ.get('EGERIA_JUPYTER', 'False'))
39
- EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '200'))
29
+ EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
30
+ EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
31
+ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
32
+ EGERIA_VIEW_SERVER_URL = os.environ.get(
33
+ "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
34
+ )
35
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
36
+ EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
37
+ EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
38
+ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
39
+ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
40
+ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
41
+ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
40
42
 
41
43
 
42
44
  disable_ssl_warnings = True
43
45
 
44
46
 
45
- def list_relationships(search_string: str, server: str, url: str, username: str, user_password: str, time_out: int = 60,
46
- jupyter: bool = EGERIA_JUPYTER, width: int = EGERIA_WIDTH):
47
-
47
+ def list_relationships(
48
+ search_string: str,
49
+ server: str,
50
+ url: str,
51
+ username: str,
52
+ user_password: str,
53
+ time_out: int = 60,
54
+ jupyter: bool = EGERIA_JUPYTER,
55
+ width: int = EGERIA_WIDTH,
56
+ ):
48
57
  console = Console(width=width, force_terminal=not jupyter, soft_wrap=True)
49
- if (search_string is None) or ((len(search_string) < 3)) and (search_string != '*'):
50
- raise ValueError("Invalid Search String - must be greater than four characters long")
51
- g_client = ClassificationManager(server, url, user_id=username,user_pwd=user_password)
58
+ if (search_string is None) or ((len(search_string) < 3)) and (search_string != "*"):
59
+ raise ValueError(
60
+ "Invalid Search String - must be greater than four characters long"
61
+ )
62
+ g_client = ClassificationManager(
63
+ server, url, user_id=username, user_pwd=user_password
64
+ )
52
65
  token = g_client.create_egeria_bearer_token(username, user_password)
53
66
 
54
-
55
- def generate_table(search_string:str = None) -> Table:
67
+ def generate_table(search_string: str = None) -> Table:
56
68
  """Make a new table."""
57
69
  table = Table(
58
70
  title=f"Relationship List for {search_string} @ {time.asctime()}",
@@ -64,40 +76,49 @@ def list_relationships(search_string: str, server: str, url: str, username: str,
64
76
  show_lines=True,
65
77
  box=box.ROUNDED,
66
78
  caption=f"View Server '{server}' @ Platform - {url}",
67
- expand=True
79
+ expand=True,
68
80
  )
69
- table.add_column('End 1 Name')
81
+ table.add_column("End 1 Name")
70
82
  table.add_column("End 1 GUID", no_wrap=True)
71
- table.add_column('End 1 Type')
72
- table.add_column('End 2 Name')
83
+ table.add_column("End 1 Type")
84
+ table.add_column("End 2 Name")
73
85
  table.add_column("End 2 GUID", no_wrap=True)
74
86
  table.add_column("End 2 Type")
75
87
  table.add_column("Properties", min_width=40)
76
88
 
77
- rel_list = g_client.get_relationships(search_string, page_size=100, time_out=time_out)
89
+ rel_list = g_client.get_relationships(
90
+ search_string, page_size=100, time_out=time_out
91
+ )
78
92
  if type(rel_list) is str:
79
93
  return table
80
94
 
81
- for rel in rel_list:
82
- end1_name = rel['end1'].get('uniqueName','---')
83
- end1_guid = rel['end1']['guid']
84
- end1_type = rel['end1']['type']['typeName']
85
- end2_name = rel['end2'].get('uniqueName', '---')
86
- end2_guid = rel['end2']['guid']
87
- end2_type = rel['end2']['type']['typeName']
95
+ for rel in rel_list:
96
+ end1_name = rel["end1"].get("uniqueName", "---")
97
+ end1_guid = rel["end1"]["guid"]
98
+ end1_type = rel["end1"]["type"]["typeName"]
99
+ end2_name = rel["end2"].get("uniqueName", "---")
100
+ end2_guid = rel["end2"]["guid"]
101
+ end2_type = rel["end2"]["type"]["typeName"]
88
102
 
89
- rel_md = ''
90
- p_test = rel.get('properties','---')
103
+ rel_md = ""
104
+ p_test = rel.get("properties", "---")
91
105
  if type(p_test) is str:
92
- rel_md = '---'
106
+ rel_md = "---"
93
107
  else:
94
- for key in rel['properties'].keys():
108
+ for key in rel["properties"].keys():
95
109
  rel_md += f"* {key}: {rel['properties'][key]}\n"
96
110
 
97
111
  rel_out = Markdown(rel_md)
98
112
 
99
113
  table.add_row(
100
- end1_name, end1_guid, end1_type, end1_name, end2_guid, end2_type, rel_out)
114
+ end1_name,
115
+ end1_guid,
116
+ end1_type,
117
+ end2_name,
118
+ end2_guid,
119
+ end2_type,
120
+ rel_out,
121
+ )
101
122
 
102
123
  g_client.close_session()
103
124
 
@@ -112,13 +133,18 @@ def list_relationships(search_string: str, server: str, url: str, username: str,
112
133
  with console.pager(styles=True):
113
134
  console.print(generate_table(search_string), soft_wrap=True)
114
135
 
115
-
116
- except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
136
+ except (
137
+ InvalidParameterException,
138
+ PropertyServerException,
139
+ UserNotAuthorizedException,
140
+ ) as e:
117
141
  console.print_exception()
118
142
  sys.exit(1)
119
143
 
120
144
  except ValueError as e:
121
- console.print(f"\n\n====> Invalid Search String - must be greater than four characters long")
145
+ console.print(
146
+ f"\n\n====> Invalid Search String - must be greater than four characters long"
147
+ )
122
148
  sys.exit(1)
123
149
 
124
150
 
@@ -139,10 +165,11 @@ def main():
139
165
  time_out = args.time_out if args.time_out is not None else 60
140
166
  try:
141
167
  # search_string = Prompt.ask("Enter an asset search string:", default="*")
142
- search_string = 'Certification'
168
+ search_string = "Certification"
143
169
  list_relationships(search_string, server, url, userid, user_pass, time_out)
144
- except(KeyboardInterrupt):
170
+ except KeyboardInterrupt:
145
171
  pass
146
172
 
173
+
147
174
  if __name__ == "__main__":
148
- main()
175
+ main()
@@ -88,11 +88,7 @@ def display_engine_activity(
88
88
 
89
89
  token = g_client.create_egeria_bearer_token()
90
90
  action_status = g_client.get_engine_actions()
91
- sorted_action_status = sorted(
92
- action_status,
93
- key=lambda i: i("requestedTime", time.asctime()),
94
- reverse=True,
95
- )
91
+
96
92
  if type(action_status) is str:
97
93
  requested_time = " "
98
94
  start_time = " "
@@ -104,6 +100,11 @@ def display_engine_activity(
104
100
  process_name = " "
105
101
  completion_message = " "
106
102
  elif type(action_status) is list:
103
+ sorted_action_status = sorted(
104
+ action_status,
105
+ key=lambda i: i.get("requestedTime", time.asctime()),
106
+ reverse=True,
107
+ )
107
108
  for action in sorted_action_status:
108
109
  requested_time = action.get("requestedTime", " ")
109
110
  start_time = action.get("startTime", " ")
@@ -88,11 +88,7 @@ def display_engine_activity_c(
88
88
 
89
89
  token = g_client.create_egeria_bearer_token()
90
90
  action_status = g_client.get_engine_actions()
91
- sorted_action_status = sorted(
92
- action_status,
93
- key=lambda i: i.get("requestedTime", time.asctime()),
94
- reverse=True,
95
- )
91
+
96
92
  if type(action_status) is str:
97
93
  requested_time = " "
98
94
  start_time = " "
@@ -104,6 +100,11 @@ def display_engine_activity_c(
104
100
  process_name = " "
105
101
  completion_message = " "
106
102
  elif type(action_status) is list:
103
+ sorted_action_status = sorted(
104
+ action_status,
105
+ key=lambda i: i.get("requestedTime", time.asctime()),
106
+ reverse=True,
107
+ )
107
108
  for action in sorted_action_status:
108
109
  requested_time = action.get("requestedTime", " ")
109
110
  start_time = action.get("startTime", " ")
@@ -23,25 +23,35 @@ from pyegeria._exceptions import (
23
23
  )
24
24
 
25
25
  EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
26
- EGERIA_KAFKA_ENDPOINT = os.environ.get('KAFKA_ENDPOINT', 'localhost:9092')
27
- EGERIA_PLATFORM_URL = os.environ.get('EGERIA_PLATFORM_URL', 'https://localhost:9443')
28
- EGERIA_VIEW_SERVER = os.environ.get('VIEW_SERVER', 'view-server')
29
- EGERIA_VIEW_SERVER_URL = os.environ.get('EGERIA_VIEW_SERVER_URL', 'https://localhost:9443')
30
- EGERIA_INTEGRATION_DAEMON = os.environ.get('INTEGRATION_DAEMON', 'integration-daemon')
31
- EGERIA_INTEGRATION_DAEMON_URL = os.environ.get('EGERIA_INTEGRATION_DAEMON_URL', 'https://localhost:9443')
32
- EGERIA_ADMIN_USER = os.environ.get('ADMIN_USER', 'garygeeke')
33
- EGERIA_ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD', 'secret')
34
- EGERIA_USER = os.environ.get('EGERIA_USER', 'erinoverview')
35
- EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
36
- EGERIA_JUPYTER = bool(os.environ.get('EGERIA_JUPYTER', 'False'))
37
- EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '200'))
26
+ EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
27
+ EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
28
+ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
29
+ EGERIA_VIEW_SERVER_URL = os.environ.get(
30
+ "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
31
+ )
32
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
33
+ EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
34
+ "EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
35
+ )
36
+ EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
37
+ EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
38
+ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
39
+ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
40
+ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
41
+ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
38
42
 
39
43
  disable_ssl_warnings = True
40
44
  console = Console(width=200)
41
45
 
42
46
 
43
- def display_status(server: str, url: str, username: str, user_pass: str, jupyter: bool = EGERIA_JUPYTER,
44
- width: int = EGERIA_WIDTH):
47
+ def display_status(
48
+ server: str,
49
+ url: str,
50
+ username: str,
51
+ user_pass: str,
52
+ jupyter: bool = EGERIA_JUPYTER,
53
+ width: int = EGERIA_WIDTH,
54
+ ):
45
55
  r_client = RuntimeManager(server, url, username)
46
56
  token = r_client.create_egeria_bearer_token(username, user_pass)
47
57
 
@@ -70,7 +80,7 @@ def display_status(server: str, url: str, username: str, user_pass: str, jupyter
70
80
  "Metadata Access Store": "Store",
71
81
  "View Server": "View",
72
82
  "Engine Host Server": "EngineHost",
73
- "Integration Daemon": "Integration"
83
+ "Integration Daemon": "Integration",
74
84
  }
75
85
  try:
76
86
  platform_list = r_client.get_platforms_by_type()
@@ -79,13 +89,13 @@ def display_status(server: str, url: str, username: str, user_pass: str, jupyter
79
89
  sys.exit(1)
80
90
 
81
91
  for platform in platform_list:
82
- platform_name = platform['properties'].get("displayName", '---')
83
- platform_guid = platform['elementHeader']["guid"]
84
- platform_desc = platform['properties'].get("resourceDescription",'---')
92
+ platform_name = platform["properties"].get("displayName", "---")
93
+ platform_guid = platform["elementHeader"]["guid"]
94
+ platform_desc = platform["properties"].get("resourceDescription", "---")
85
95
  server_list = ""
86
96
 
87
97
  platform_report = r_client.get_platform_report(platform_guid)
88
- platform_url = platform_report.get('platformURLRoot', " ")
98
+ platform_url = platform_report.get("platformURLRoot", " ")
89
99
  platform_origin = platform_report.get("platformOrigin", " ")
90
100
  platform_started = platform_report.get("platformStartTime", " ")
91
101
 
@@ -104,14 +114,23 @@ def display_status(server: str, url: str, username: str, user_pass: str, jupyter
104
114
  server_status = "UNKNOWN"
105
115
  status_flag = "[bright yellow]"
106
116
 
107
- serv = f"{status_flag}{server_types[server_type]}: {server_name}\n"
108
- server_list = server_list + serv
109
-
110
- table.add_row(platform_name, platform_url, platform_origin, platform_desc,
111
- platform_started, server_list, style="bold white on black")
112
-
113
- except (Exception) as e:
114
- # console.print_exception(e)
117
+ server_list = (
118
+ f"{status_flag}{server_types[server_type]}: {server_name}\n"
119
+ )
120
+ # server_list = server_list + serv
121
+
122
+ table.add_row(
123
+ platform_name,
124
+ platform_url,
125
+ platform_origin,
126
+ platform_desc,
127
+ platform_started,
128
+ server_list,
129
+ style="bold white on black",
130
+ )
131
+
132
+ except Exception as e:
133
+ # console.print_exception(e)
115
134
  platform_url = " "
116
135
  platform_origin = " "
117
136
  platform_started = " "
@@ -124,7 +143,11 @@ def display_status(server: str, url: str, username: str, user_pass: str, jupyter
124
143
  time.sleep(2)
125
144
  live.update(generate_table())
126
145
 
127
- except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
146
+ except (
147
+ InvalidParameterException,
148
+ PropertyServerException,
149
+ UserNotAuthorizedException,
150
+ ) as e:
128
151
  print_exception_response(e)
129
152
 
130
153
  except KeyboardInterrupt:
@@ -15,41 +15,60 @@ import time
15
15
  from rich.live import Live
16
16
  from rich.table import Table
17
17
 
18
- from pyegeria._exceptions import (InvalidParameterException, PropertyServerException, UserNotAuthorizedException,
19
- print_exception_response, )
18
+ from pyegeria._exceptions import (
19
+ InvalidParameterException,
20
+ PropertyServerException,
21
+ UserNotAuthorizedException,
22
+ print_exception_response,
23
+ )
20
24
  from pyegeria.core_omag_server_config import CoreServerConfig
21
25
  from pyegeria.server_operations import ServerOps
22
26
 
23
27
  disable_ssl_warnings = True
24
28
 
25
29
  EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
26
- EGERIA_KAFKA_ENDPOINT = os.environ.get('KAFKA_ENDPOINT', 'localhost:9092')
27
- EGERIA_PLATFORM_URL = os.environ.get('EGERIA_PLATFORM_URL', 'https://localhost:9443')
28
- EGERIA_VIEW_SERVER = os.environ.get('VIEW_SERVER', 'view-server')
29
- EGERIA_VIEW_SERVER_URL = os.environ.get('EGERIA_VIEW_SERVER_URL', 'https://localhost:9443')
30
- EGERIA_INTEGRATION_DAEMON = os.environ.get('INTEGRATION_DAEMON', 'integration-daemon')
31
- EGERIA_INTEGRATION_DAEMON_URL = os.environ.get('EGERIA_INTEGRATION_DAEMON_URL', 'https://localhost:9443')
32
- EGERIA_ADMIN_USER = os.environ.get('ADMIN_USER', 'garygeeke')
33
- EGERIA_ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD', 'secret')
34
- EGERIA_USER = os.environ.get('EGERIA_USER', 'erinoverview')
35
- EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
36
- EGERIA_JUPYTER = bool(os.environ.get('EGERIA_JUPYTER', 'False'))
37
- EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '200'))
38
-
39
-
40
- def display_status(server: str, url: str, username: str, user_pass: str, jupyter: bool = EGERIA_JUPYTER,
41
- width: int = EGERIA_WIDTH):
30
+ EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
31
+ EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
32
+ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
33
+ EGERIA_VIEW_SERVER_URL = os.environ.get(
34
+ "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
35
+ )
36
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
37
+ EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
38
+ "EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
39
+ )
40
+ EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
41
+ EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
42
+ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
43
+ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
44
+ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
45
+ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
46
+
47
+
48
+ def display_status(
49
+ server: str,
50
+ url: str,
51
+ username: str,
52
+ user_pass: str,
53
+ jupyter: bool = EGERIA_JUPYTER,
54
+ width: int = EGERIA_WIDTH,
55
+ ):
42
56
  p_client = ServerOps(server, url, username)
43
57
  c_client = CoreServerConfig(server, url, username, user_pass)
44
58
 
45
59
  def generate_table() -> Table:
46
60
  """Make a new table."""
47
- table = Table(title=f"Server Status for Platform - {time.asctime()}", style="bold white on black",
48
- row_styles=["bold white on black"], header_style="white on dark_blue",
49
- title_style="bold white on black",
50
- caption_style="white on black", caption=f"Server Status for Platform - '{url}'", show_lines=True,
51
- # expand=True
52
- )
61
+ table = Table(
62
+ title=f"Server Status for Platform - {time.asctime()}",
63
+ style="bold white on black",
64
+ row_styles=["bold white on black"],
65
+ header_style="white on dark_blue",
66
+ title_style="bold white on black",
67
+ caption_style="white on black",
68
+ caption=f"Server Status for Platform - '{url}'",
69
+ show_lines=True,
70
+ # expand=True
71
+ )
53
72
 
54
73
  table.add_column("Known Server")
55
74
  table.add_column("Status")
@@ -65,11 +84,19 @@ def display_status(server: str, url: str, username: str, user_pass: str, jupyter
65
84
  status = "Active"
66
85
  else:
67
86
  status = "Inactive"
68
- server_type = c_client.get_server_type_classification(server)["serverTypeName"]
69
- description = c_client.get_basic_server_properties(server).get("localServerDescription", " ")
70
-
71
- table.add_row(server, "[red]Inactive" if status == "Inactive" else "[green]Active", server_type,
72
- description)
87
+ server_type = c_client.get_server_type_classification(server)[
88
+ "serverTypeName"
89
+ ]
90
+ description = c_client.get_basic_server_properties(server).get(
91
+ "localServerDescription", " "
92
+ )
93
+
94
+ table.add_row(
95
+ server,
96
+ "[red]Inactive" if status == "Inactive" else "[green]Active",
97
+ server_type,
98
+ description,
99
+ )
73
100
 
74
101
  return table
75
102
 
@@ -79,7 +106,11 @@ def display_status(server: str, url: str, username: str, user_pass: str, jupyter
79
106
  time.sleep(2)
80
107
  live.update(generate_table())
81
108
 
82
- except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
109
+ except (
110
+ InvalidParameterException,
111
+ PropertyServerException,
112
+ UserNotAuthorizedException,
113
+ ) as e:
83
114
  print_exception_response(e)
84
115
  except KeyboardInterrupt:
85
116
  pass
@@ -99,8 +99,10 @@ TEMPLATE_GUIDS[
99
99
  INTEGRATION_GUIDS["JDBC"] = "70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa"
100
100
  TEMPLATE_GUIDS["Program File"] = "32d27e9c-1fdf-455a-ad2a-42b4d7d99108"
101
101
  TEMPLATE_GUIDS["FileFolder"] = "fbdd8efd-1b69-474c-bb6d-0a304b394146"
102
- INTEGRATION_GUIDS["LandingAreaFilesMonitor"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
102
+ INTEGRATION_GUIDS["ContentPacksMonitor"] = "6bb2181e-7724-4515-ba3c-877cded55980"
103
+ INTEGRATION_GUIDS["GeneralFilesMonitor"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
103
104
  INTEGRATION_GUIDS["SampleDataFilesMonitor"] = "cd6479e1-2fe7-4426-b358-8a0cf70be117"
105
+ INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
104
106
  TEMPLATE_GUIDS["PostgreSQL Server"] = "542134e6-b9ce-4dce-8aef-22e8daf34fdb"
105
107
  INTEGRATION_GUIDS["PostgreSQLServer"] = "36f69fd0-54ba-4f59-8a44-11ccf2687a34"
106
108
  TEMPLATE_GUIDS["Audio Data File"] = "39b4b670-7f15-4744-a5ba-62e8edafbcee"
@@ -117,6 +119,7 @@ TEMPLATE_GUIDS["Vector Data File"] = "db1bec7f-55a9-40d3-91c0-a57b76d422e2"
117
119
  TEMPLATE_GUIDS["Apache Kafka Server"] = "5e1ff810-5418-43f7-b7c4-e6e062f9aff7"
118
120
  INTEGRATION_GUIDS["KafkaTopic"] = "fa1f711c-0b34-4b57-8e6e-16162b132b0c"
119
121
  TEMPLATE_GUIDS["Executable File"] = "3d99a163-7a13-4576-a212-784010a8302a"
122
+ INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
120
123
  TEMPLATE_GUIDS["Unity Catalog Table"] = "6cc1e5f5-4c1e-4290-a80e-e06643ffb13d"
121
124
  TEMPLATE_GUIDS["JSON Data File"] = "c4836635-7e9e-446a-83b5-15e206b1aff3"
122
125
  TEMPLATE_GUIDS["File System"] = "522f228c-097c-4f90-9efc-26c1f2696f87"
@@ -139,17 +142,34 @@ TEMPLATE_GUIDS["Script File"] = "dbd5e6bb-1ff8-46f4-a007-fb0485f68c92"
139
142
  TEMPLATE_GUIDS["Apache Atlas Server"] = "fe6dce45-a978-4417-ab55-17f05b8bcea7"
140
143
  TEMPLATE_GUIDS["Raster Data File"] = "47211156-f03f-4881-8526-015e695a3dac"
141
144
  TEMPLATE_GUIDS["Data Folder"] = "372a0379-7060-4c9d-8d84-bc709b31794c"
145
+ INTEGRATION_GUIDS[
146
+ "MaintainDataFolderLastUpdateDate"
147
+ ] = "fd26f07c-ae44-4bc5-b457-37b43112224f"
148
+ INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
142
149
  TEMPLATE_GUIDS["OMAG Server Platform"] = "9b06c4dc-ddc8-47ae-b56b-28775d3a96f0"
143
150
  INTEGRATION_GUIDS["OpenAPI"] = "b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e"
151
+ INTEGRATION_GUIDS["OMAGServerPlatform"] = "dee84e6e-7a96-4975-86c1-152fb3ab759b"
144
152
  INTEGRATION_GUIDS["PostgreSQLServerCataloguer"] = "36f69fd0-54ba-4f59-8a44-11ccf2687a34"
145
153
  INTEGRATION_GUIDS[
146
154
  "UnityCatalogInsideCatalogSynchronizer"
147
155
  ] = "74dde22f-2249-4ea3-af2b-b39e73f79b81"
156
+ INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
148
157
  INTEGRATION_GUIDS["JDBCDatabaseCataloguer"] = "70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa"
158
+ INTEGRATION_GUIDS["FilesCataloguer"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
149
159
  INTEGRATION_GUIDS["SampleDataCataloguer"] = "cd6479e1-2fe7-4426-b358-8a0cf70be117"
160
+ INTEGRATION_GUIDS[
161
+ "OpenLineageGovernanceActionPublisher"
162
+ ] = "206f8faf-04da-4b6f-8280-eeee3943afeb"
150
163
  INTEGRATION_GUIDS["OpenAPICataloguer"] = "b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e"
164
+ INTEGRATION_GUIDS[
165
+ "OMAGServerPlatformCataloguer"
166
+ ] = "dee84e6e-7a96-4975-86c1-152fb3ab759b"
151
167
  INTEGRATION_GUIDS["ApacheKafkaCataloguer"] = "fa1f711c-0b34-4b57-8e6e-16162b132b0c"
152
168
  INTEGRATION_GUIDS[
153
169
  "UnityCatalogServerSynchronizer"
154
170
  ] = "06d068d9-9e08-4e67-8c59-073bbf1013af"
155
- INTEGRATION_GUIDS["LandingAreaCataloguer"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
171
+ INTEGRATION_GUIDS["MaintainLastUpdateDate"] = "fd26f07c-ae44-4bc5-b457-37b43112224f"
172
+ INTEGRATION_GUIDS["OpenLineageKafkaListener"] = "980b989c-de78-4e6a-a58d-51049d7381bf"
173
+ INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
174
+ INTEGRATION_GUIDS["ContentPacksCataloguer"] = "6bb2181e-7724-4515-ba3c-877cded55980"
175
+ INTEGRATION_GUIDS["OpenLineageCataloguer"] = "3347ac71-8dd2-403a-bc16-75a71be64bd7"