pyegeria 0.5.6.2__tar.gz → 0.5.6.5__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 (69) hide show
  1. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/PKG-INFO +3 -1
  2. pyegeria-0.5.6.5/examples/widgets/operational/load_archive.py +60 -0
  3. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/monitor_eng_action_status.py +5 -9
  4. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/monitor_gov_eng_status.py +34 -10
  5. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/monitor_integ_daemon_status.py +38 -10
  6. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/__init__.py +0 -1
  7. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/server_operations.py +1 -1
  8. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/utils.py +0 -2
  9. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyproject.toml +9 -4
  10. pyegeria-0.5.6.2/pyegeria/core_guids.py +0 -127
  11. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/LICENSE +0 -0
  12. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/README.md +0 -0
  13. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/doc_samples/Create_Collection_Sample.py +0 -0
  14. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -0
  15. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/catalog_user/README.md +0 -0
  16. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/catalog_user/__init__.py +0 -0
  17. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/catalog_user/get_asset_graph.py +0 -0
  18. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/catalog_user/get_collection.py +0 -0
  19. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/catalog_user/list_assets.py +0 -0
  20. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/catalog_user/list_glossary.py +0 -0
  21. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/developer/README.md +0 -0
  22. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/developer/__init__.py +0 -0
  23. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/developer/get_guid_info.py +0 -0
  24. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/developer/get_tech_details.py +0 -0
  25. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/developer/list_asset_types.py +0 -0
  26. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/developer/list_registered_services.py +0 -0
  27. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/developer/list_relationship_types.py +0 -0
  28. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/developer/list_tech_templates.py +0 -0
  29. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/developer/list_tech_types.py +0 -0
  30. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/developer/list_valid_metadata_values.py +0 -0
  31. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/README.md +0 -0
  32. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/__init__.py +0 -0
  33. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/get_tech_type_elements.py +0 -0
  34. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/get_tech_type_template.py +0 -0
  35. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/monitor_asset_events.py +0 -0
  36. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/monitor_coco_status.py +0 -0
  37. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/monitor_platform_status.py +0 -0
  38. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/monitor_server_list.py +0 -0
  39. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/monitor_server_status.py +0 -0
  40. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/operational/refresh_integration_daemon.py +0 -0
  41. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/personal_organizer/README.md +0 -0
  42. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/personal_organizer/__init__.py +0 -0
  43. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/personal_organizer/list_my_profile.py +0 -0
  44. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/personal_organizer/list_projects.py +0 -0
  45. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/personal_organizer/list_todos.py +0 -0
  46. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/personal_organizer/monitor_my_todos.py +0 -0
  47. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/examples/widgets/personal_organizer/monitor_open_todos.py +0 -0
  48. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/Xfeedback_manager_omvs.py +0 -0
  49. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/Xloaded_resources_omvs.py +0 -0
  50. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/_client.py +0 -0
  51. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/_deprecated_gov_engine.py +0 -0
  52. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/_exceptions.py +0 -0
  53. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/_globals.py +0 -0
  54. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/_validators.py +0 -0
  55. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/action_author_omvs.py +0 -0
  56. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/asset_catalog_omvs.py +0 -0
  57. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/automated_curation_omvs.py +0 -0
  58. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/collection_manager_omvs.py +0 -0
  59. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/core_omag_server_config.py +0 -0
  60. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/create_tech_guid_lists.py +0 -0
  61. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/full_omag_server_config.py +0 -0
  62. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/glossary_browser_omvs.py +0 -0
  63. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/glossary_manager_omvs.py +0 -0
  64. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/my_profile_omvs.py +0 -0
  65. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/platform_services.py +0 -0
  66. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/project_manager_omvs.py +0 -0
  67. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/registered_info.py +0 -0
  68. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/runtime_manager_omvs.py +0 -0
  69. {pyegeria-0.5.6.2 → pyegeria-0.5.6.5}/pyegeria/valid_metadata_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.5.6.2
3
+ Version: 0.5.6.5
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -14,12 +14,14 @@ Classifier: Programming Language :: Python
14
14
  Classifier: Programming Language :: Python :: 3
15
15
  Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
+ Requires-Dist: click (>=8.1.7,<9.0.0)
17
18
  Requires-Dist: confluent-kafka (>=2.5.0,<3.0.0)
18
19
  Requires-Dist: httpx (>=0.27.0,<0.28.0)
19
20
  Requires-Dist: jupyter (>=1.0.0,<2.0.0)
20
21
  Requires-Dist: pytest (>=8.2.2,<9.0.0)
21
22
  Requires-Dist: requests (>=2.32.3,<3.0.0)
22
23
  Requires-Dist: rich (>=13.7.1,<14.0.0)
24
+ Requires-Dist: trogon (>=0.5.0,<0.6.0)
23
25
  Requires-Dist: urllib3 (>=2.2.2,<3.0.0)
24
26
  Requires-Dist: validators (>=0.32.0,<0.33.0)
25
27
  Project-URL: Repository, https://github.com/odpi/egeria-python
@@ -0,0 +1,60 @@
1
+ """
2
+ SPDX-License-Identifier: Apache-2.0
3
+ Copyright Contributors to the ODPi Egeria project.
4
+
5
+
6
+
7
+ This script refreshed an integration daemon.
8
+
9
+ """
10
+
11
+ import os
12
+ import argparse
13
+ import time
14
+ import click
15
+ from trogon import tui
16
+ from pyegeria import ServerOps, AutomatedCuration
17
+ from pyegeria._exceptions import (
18
+ InvalidParameterException,
19
+ PropertyServerException,
20
+ UserNotAuthorizedException,
21
+ print_exception_response,
22
+ )
23
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
24
+ EGERIA_KAFKA_ENDPOINT = os.environ.get('KAFKA_ENDPOINT', 'localhost:9092')
25
+ EGERIA_PLATFORM_URL = os.environ.get('EGERIA_PLATFORM_URL', 'https://localhost:9443')
26
+ EGERIA_VIEW_SERVER = os.environ.get('VIEW_SERVER', 'view-server')
27
+ EGERIA_VIEW_SERVER_URL = os.environ.get('EGERIA_VIEW_SERVER_URL', 'https://localhost:9443')
28
+ EGERIA_INTEGRATION_DAEMON = os.environ.get('INTEGRATION_DAEMON', 'integration-daemon')
29
+ EGERIA_INTEGRATION_DAEMON_URL = os.environ.get('EGERIA_INTEGRATION_DAEMON_URL', 'https://localhost:9443')
30
+ EGERIA_ADMIN_USER = os.environ.get('ADMIN_USER', 'garygeeke')
31
+ EGERIA_ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD', 'secret')
32
+ EGERIA_USER = os.environ.get('EGERIA_USER', 'erinoverview')
33
+ EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
34
+
35
+ @tui()
36
+ @click.command()
37
+ @click.option('--file', prompt= "Path to the archive file to load", help='Full path to the archive file to load')
38
+ @click.option('--server', default = EGERIA_METADATA_STORE, help='Egeria metadata store to load')
39
+ @click.option('--url', default = EGERIA_PLATFORM_URL, help='URL of Egeria platform to connect to')
40
+ @click.option('--userid', default = EGERIA_ADMIN_USER, help='Egeria admin user')
41
+ @click.option('--password', default = EGERIA_ADMIN_PASSWORD, help='Egeria admin password')
42
+ @click.option('--timeout', default = 60, help = 'Number of seconds to wait')
43
+
44
+ def load_archive(file, server, url, userid, password, timeout):
45
+
46
+ try:
47
+
48
+ s_client = ServerOps(server, url, userid, password)
49
+
50
+ s_client.add_archive_file(file, server, timeout = timeout)
51
+
52
+ click.echo(f"Loaded archive: {file}")
53
+
54
+
55
+ except (InvalidParameterException, PropertyServerException) as e:
56
+ print_exception_response(e)
57
+
58
+
59
+ if __name__ == "__main__":
60
+ load_archive()
@@ -15,7 +15,7 @@ import os
15
15
  import sys
16
16
  import time
17
17
  from rich import box
18
- # from rich.box import Box
18
+
19
19
  from rich.live import Live
20
20
  from rich.table import Table
21
21
  from rich.console import Console
@@ -142,16 +142,14 @@ def main_live():
142
142
  parser.add_argument("--url", help="URL Platform to connect to")
143
143
  parser.add_argument("--userid", help="User Id")
144
144
  parser.add_argument("--password", help="User Password")
145
- parser.add_argument("--paging", help="Paging (True) or Monitoring (False)")
145
+
146
146
  args = parser.parse_args()
147
147
 
148
148
  server = args.server if args.server is not None else EGERIA_VIEW_SERVER
149
149
  url = args.url if args.url is not None else EGERIA_PLATFORM_URL
150
150
  userid = args.userid if args.userid is not None else EGERIA_USER
151
151
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
152
- paging = args.paging if args.paging is not None else False
153
- # print(f"Starting display_status_engine_actions with {server}, {url}, {userid}")
154
- # print(f"Paging is {paging}")
152
+
155
153
  display_status_engine_actions(server=server, url=url, user=userid, user_pass=user_pass, paging=False)
156
154
 
157
155
  def main_paging():
@@ -160,16 +158,14 @@ def main_paging():
160
158
  parser.add_argument("--url", help="URL Platform to connect to")
161
159
  parser.add_argument("--userid", help="User Id")
162
160
  parser.add_argument("--password", help="User Password")
163
- parser.add_argument("--paging", help="Paging (True) or Monitoring (False)")
161
+
164
162
  args = parser.parse_args()
165
163
 
166
164
  server = args.server if args.server is not None else EGERIA_VIEW_SERVER
167
165
  url = args.url if args.url is not None else EGERIA_PLATFORM_URL
168
166
  userid = args.userid if args.userid is not None else EGERIA_USER
169
167
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
170
- paging = args.paging if args.paging is not None else False
171
- # print(f"Starting display_status_engine_actions with {server}, {url}, {userid}")
172
- # print(f"Paging is {paging}")
168
+
173
169
  display_status_engine_actions(server=server, url=url, user=userid, user_pass=user_pass, paging=True)
174
170
 
175
171
  if __name__ == "__main_live__":
@@ -22,7 +22,8 @@ from pyegeria import (
22
22
  from rich.table import Table
23
23
  from rich.live import Live
24
24
  from rich import box
25
- from rich import console
25
+ from rich.console import Console
26
+
26
27
 
27
28
  from pyegeria.server_operations import ServerOps
28
29
  EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
@@ -39,7 +40,7 @@ EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
39
40
 
40
41
  disable_ssl_warnings = True
41
42
 
42
- def display_gov_actions_status(server: str, url: str, username: str, user_pass:str):
43
+ def display_gov_actions_status(server: str, url: str, username: str, user_pass:str, paging:bool):
43
44
  server_name = server
44
45
  s_client = ServerOps(server_name, url, username, user_pass)
45
46
 
@@ -86,10 +87,15 @@ def display_gov_actions_status(server: str, url: str, username: str, user_pass:s
86
87
  return table
87
88
 
88
89
  try:
89
- with Live(generate_table(), refresh_per_second=1, screen=True, vertical_overflow="visible") as live:
90
- while True:
91
- time.sleep(2)
92
- live.update(generate_table())
90
+ if paging is True:
91
+ console = Console()
92
+ with console.pager():
93
+ console.print(generate_table())
94
+ else:
95
+ with Live(generate_table(), refresh_per_second=1, screen=True, vertical_overflow="visible") as live:
96
+ while True:
97
+ time.sleep(2)
98
+ live.update(generate_table())
93
99
 
94
100
  except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
95
101
  print_exception_response(e)
@@ -99,7 +105,7 @@ def display_gov_actions_status(server: str, url: str, username: str, user_pass:s
99
105
  s_client.close_session()
100
106
 
101
107
 
102
- def main():
108
+ def main_live():
103
109
  parser = argparse.ArgumentParser()
104
110
  parser.add_argument("--server", help="Name of the server to display status for")
105
111
  parser.add_argument("--url", help="URL Platform to connect to")
@@ -111,7 +117,25 @@ def main():
111
117
  url = args.url if args.url is not None else EGERIA_PLATFORM_URL
112
118
  userid = args.userid if args.userid is not None else EGERIA_USER
113
119
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
114
- display_gov_actions_status(server=server, url=url, username=userid, user_pass=user_pass)
120
+ display_gov_actions_status(server=server, url=url, username=userid, user_pass=user_pass, paging=False)
121
+
122
+ def main_paging():
123
+ parser = argparse.ArgumentParser()
124
+ parser.add_argument("--server", help="Name of the server to display status for")
125
+ parser.add_argument("--url", help="URL Platform to connect to")
126
+ parser.add_argument("--userid", help="User Id")
127
+ parser.add_argument("--password", help="User Password")
128
+ args = parser.parse_args()
129
+
130
+ server = args.server if args.server is not None else EGERIA_ENGINE_HOST
131
+ url = args.url if args.url is not None else EGERIA_PLATFORM_URL
132
+ userid = args.userid if args.userid is not None else EGERIA_USER
133
+ user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
134
+ display_gov_actions_status(server=server, url=url, username=userid, user_pass=user_pass, paging=True)
135
+
136
+ if __name__ == "__main_live__":
137
+ main_live()
138
+
115
139
 
116
- if __name__ == "__main__":
117
- main()
140
+ if __name__ == "__main_paging__":
141
+ main_paging()
@@ -17,6 +17,7 @@ import time
17
17
  from datetime import datetime
18
18
 
19
19
  from rich import box
20
+ from rich.console import Console
20
21
  from rich.live import Live
21
22
  from rich.table import Table
22
23
 
@@ -43,7 +44,7 @@ disable_ssl_warnings = True
43
44
 
44
45
 
45
46
  def display_integration_daemon_status(integ_server: str, integ_url: str,
46
- view_server:str, view_url: str, user: str, user_pass:str):
47
+ view_server:str, view_url: str, user: str, user_pass:str, paging: bool):
47
48
  s_client = ServerOps(integ_server, integ_url, user)
48
49
  a_client = AutomatedCuration(view_server, view_url, user, user_pass)
49
50
  token = a_client.create_egeria_bearer_token()
@@ -119,11 +120,16 @@ def display_integration_daemon_status(integ_server: str, integ_url: str,
119
120
  return table
120
121
 
121
122
  try:
122
- with Live(generate_table(), refresh_per_second=4, screen=True) as live:
123
- while True:
124
- time.sleep(2)
125
- live.update(generate_table())
126
- live.console.pager()
123
+ if paging is True:
124
+ console = Console()
125
+ with console.pager():
126
+ console.print(generate_table())
127
+ else:
128
+ with Live(generate_table(), refresh_per_second=1, screen=True, vertical_overflow="visible") as live:
129
+ while True:
130
+ time.sleep(2)
131
+ live.update(generate_table())
132
+
127
133
 
128
134
  except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
129
135
  print_exception_response(e)
@@ -134,7 +140,27 @@ def display_integration_daemon_status(integ_server: str, integ_url: str,
134
140
  a_client.close_session()
135
141
 
136
142
 
137
- def main():
143
+ def main_live():
144
+ parser = argparse.ArgumentParser()
145
+ parser.add_argument("--integ_server", help="Name of the integration server to display status for")
146
+ parser.add_argument("--integ_url", help="URL Platform to connect to")
147
+ parser.add_argument("--view_server", help="Name of the view server to use")
148
+ parser.add_argument("--view_url", help="view server URL Platform to connect to")
149
+ parser.add_argument("--userid", help="User Id")
150
+ parser.add_argument("--password", help="User Password")
151
+ args = parser.parse_args()
152
+
153
+ integ_server = args.integ_server if args.integ_server is not None else EGERIA_INTEGRATION_DAEMON
154
+ integ_url = args.integ_url if args.integ_url is not None else EGERIA_INTEGRATION_DAEMON_URL
155
+ view_server = args.view_server if args.view_server is not None else EGERIA_VIEW_SERVER
156
+ view_url = args.view_url if args.view_url is not None else EGERIA_VIEW_SERVER_URL
157
+ userid = args.userid if args.userid is not None else EGERIA_USER
158
+ user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
159
+ display_integration_daemon_status(integ_server=integ_server, integ_url=integ_url,
160
+ view_server = view_server, view_url = view_url,
161
+ user=userid, user_pass = user_pass, paging = False)
162
+
163
+ def main_paging():
138
164
  parser = argparse.ArgumentParser()
139
165
  parser.add_argument("--integ_server", help="Name of the integration server to display status for")
140
166
  parser.add_argument("--integ_url", help="URL Platform to connect to")
@@ -152,7 +178,9 @@ def main():
152
178
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
153
179
  display_integration_daemon_status(integ_server=integ_server, integ_url=integ_url,
154
180
  view_server = view_server, view_url = view_url,
155
- user=userid, user_pass = user_pass)
181
+ user=userid, user_pass = user_pass, paging = True)
182
+ if __name__ == "__main_live__":
183
+ main_live()
156
184
 
157
- if __name__ == "__main__":
158
- main()
185
+ if __name__ == "__main_paging__":
186
+ main_paging()
@@ -13,7 +13,6 @@ the server platform and servers.
13
13
 
14
14
  from ._globals import (is_debug, disable_ssl_warnings, max_paging_size, TEMPLATE_GUIDS, INTEGRATION_GUIDS
15
15
  )
16
- from .core_guids import *
17
16
 
18
17
  if disable_ssl_warnings:
19
18
  from urllib3.exceptions import InsecureRequestWarning
@@ -86,7 +86,7 @@ class ServerOps(Platform):
86
86
  #
87
87
  # Archive Files
88
88
  #
89
- async def _async_add_archive_file(self, archive_file: str, server: str = None, timeout: int = 30) -> None:
89
+ async def _async_add_archive_file(self, archive_file: str, server: str = None, timeout: int = 60) -> None:
90
90
  """
91
91
  Load the server with the contents of the indicated archive file.
92
92
 
@@ -72,8 +72,6 @@ console = Console(width=200)
72
72
  # df = pd.json_normalize(data)
73
73
  # print(tabulate(wrap_text(df, wrap_len), headers="keys", tablefmt=tablefmt))
74
74
 
75
- template_guids: dict = None
76
- integration_guids: dict = None
77
75
 
78
76
  def print_rest_request_body(body):
79
77
  """
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "0.5.6.2"
3
+ version = "0.5.6.5"
4
4
  license = 'Apache 2.0'
5
5
  authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
6
6
  readme = "README.md"
@@ -33,6 +33,8 @@ requests = "^2.32.3"
33
33
  confluent-kafka = "^2.5.0"
34
34
  pytest = "^8.2.2"
35
35
  jupyter = "^1.0.0"
36
+ click = "^8.1.7"
37
+ trogon = "^0.5.0"
36
38
 
37
39
 
38
40
  [build-system]
@@ -58,13 +60,16 @@ pytest = "^8.2.2"
58
60
  monitor_coco_status = "examples.widgets.operational.monitor_coco_status:main"
59
61
  monitor_eng_action_status = "examples.widgets.operational.monitor_eng_action_status:main_live"
60
62
  list_eng_action_status = "examples.widgets.operational.monitor_eng_action_status:main_paging "
61
- monitor_gov_eng_status = "examples.widgets.operational.monitor_gov_eng_status:main"
62
- monitor_integ_daemon_status = "examples.widgets.operational.monitor_integ_daemon_status:main"
63
+ monitor_gov_eng_status = "examples.widgets.operational.monitor_gov_eng_status:main_live"
64
+ list_gov_eng_status = "examples.widgets.operational.monitor_gov_eng_status:main_paging"
65
+ monitor_integ_daemon_status = "examples.widgets.operational.monitor_integ_daemon_status:main_live"
66
+ list_integ_daemon_status = "examples.widgets.operational.monitor_integ_daemon_status:main_paging"
63
67
  monitor_platform_status = "examples.widgets.operational.monitor_platform_status:main"
64
68
  monitor_server_list = "examples.widgets.operational.monitor_server_list:main"
65
69
  monitor_server_status = "examples.widgets.operational.monitor_server_status:main"
66
70
  refresh_integration_daemon = "examples.widgets.operational.refresh_integration_daemon:main"
67
-
71
+ load_archive = "examples.widgets.operational.load_archive.py:load_archive"
72
+ load_archive_tui = "examples.widgets.operational.load_archive.py:tui"
68
73
  list_my_profile = "examples.widgets.personal_organizer.list_my_profile:main"
69
74
  list_projects = "examples.widgets.personal_organizer.list_projects:main"
70
75
  list_todos = "examples.widgets.personal_organizer.list_todos:main"
@@ -1,127 +0,0 @@
1
- """
2
- SPDX-License-Identifier: Apache-2.0
3
- Copyright Contributors to the ODPi Egeria project.
4
-
5
- Useful from core content archive
6
- """
7
-
8
- #
9
- # Template guids
10
- #
11
-
12
- CSV_DATA_FILE_TEMPLATE_GUID = '13770f93-13c8-42be-9bb8-e0b1b1e52b1f'
13
-
14
- KEYSTORE_FILE_TEMPLATE_GUID = 'fbcfcc0c-1652-421f-b49b-c3e1c108768f'
15
-
16
- OSS_UNITY_CATALOG_FUNCTION_TEMPLATE_GUID = '5b72bd18-665d-4696-8ebb-f6d0885312e2'
17
-
18
- DATA_FILE_TEMPLATE_GUID = '66d8dda9-00cf-4e59-938c-4b0583596b1e'
19
-
20
- VIEW_SERVER_TEMPLATE_GUID = 'fd61ca01-390d-4aa2-a55d-426826aa4e1b'
21
-
22
- ARCHIVE_FILE_TEMPLATE_GUID = '7578e504-d00f-406d-a194-3fc0a351cdf9'
23
-
24
- POSTGRESQL_RELATIONAL_DATABASE_TEMPLATE_GUID = '3d398b3f-7ae6-4713-952a-409f3dea8520'
25
-
26
- OSS_UNITY_CATALOG_VOLUME_TEMPLATE_GUID = 'dfc0c928-0db3-4eb4-a1f0-0760dab168c5'
27
-
28
- PROGRAM_FILE_TEMPLATE_GUID = '32d27e9c-1fdf-455a-ad2a-42b4d7d99108'
29
-
30
- FILEFOLDER_TEMPLATE_GUID = 'fbdd8efd-1b69-474c-bb6d-0a304b394146'
31
-
32
- OSS_UNITY_CATALOG_CATALOG_TEMPLATE_GUID = 'f7b05a3e-913c-497d-96f5-acdeb2ec897e'
33
-
34
- POSTGRESQL_SERVER_TEMPLATE_GUID = '542134e6-b9ce-4dce-8aef-22e8daf34fdb'
35
-
36
- AUDIO_DATA_FILE_TEMPLATE_GUID = '39b4b670-7f15-4744-a5ba-62e8edafbcee'
37
-
38
- DOCUMENT_FILE_TEMPLATE_GUID = 'eb6f728d-fa54-4350-9807-1199cbf96851'
39
-
40
- INTEGRATION_DAEMON_TEMPLATE_GUID = '6b3516f0-dd13-4786-9601-07215f995197'
41
-
42
- XML_DATA_FILE_TEMPLATE_GUID = 'ea67ae71-c674-473e-b38b-689879d2a7d9'
43
-
44
- PARQUET_DATA_FILE_TEMPLATE_GUID = '7f6cd744-79c3-4d25-a056-eeb1a91574c3'
45
-
46
- THREED_IMAGE_DATA_FILE_TEMPLATE_GUID = '0059ea2b-6292-4cac-aa6f-a80a605f1114'
47
-
48
- YAML_FILE_TEMPLATE_GUID = '2221855b-2b64-4b45-a2ee-c40adc5e2a64'
49
-
50
- METADATA_ACCESS_SERVER_TEMPLATE_GUID = 'bd8de890-fa79-4c24-aab8-20b41b5893dd'
51
-
52
- PROPERTIES_FILE_TEMPLATE_GUID = '3b281111-a0ef-4fc4-99e7-9a0ef84a7636'
53
-
54
- VECTOR_DATA_FILE_TEMPLATE_GUID = 'db1bec7f-55a9-40d3-91c0-a57b76d422e2'
55
-
56
- APACHE_KAFKA_SERVER_TEMPLATE_GUID = '5e1ff810-5418-43f7-b7c4-e6e062f9aff7'
57
-
58
- OSS_UNITY_CATALOG_SCHEMA_TEMPLATE_GUID = 'd68f5aa3-152e-40fa-8c16-e73db8d925d6'
59
-
60
- EXECUTABLE_FILE_TEMPLATE_GUID = '3d99a163-7a13-4576-a212-784010a8302a'
61
-
62
- JSON_DATA_FILE_TEMPLATE_GUID = 'c4836635-7e9e-446a-83b5-15e206b1aff3'
63
-
64
- FILE_SYSTEM_TEMPLATE_GUID = '522f228c-097c-4f90-9efc-26c1f2696f87'
65
-
66
- SOURCE_CODE_FILE_TEMPLATE_GUID = '9c7013ef-f29b-4b01-a8ea-5ea14f64c67a'
67
-
68
- OSS_UNITY_CATALOG_SERVER_TEMPLATE_GUID = '1077a346-7a50-4cb0-a795-b219bafaabf6'
69
-
70
- APPLE_MACBOOK_PRO_TEMPLATE_GUID = '32a9fd56-85c9-47fe-a211-9da3871bf4da'
71
-
72
- OSS_UNITY_CATALOG_TABLE_TEMPLATE_GUID = 'cb34184b-d6a9-4a27-9fd2-ea4c78978f9f'
73
-
74
- BUILD_INSTRUCTION_FILE_TEMPLATE_GUID = 'fbb2fa2e-8bcb-402e-9be7-5c6db9f2c504'
75
-
76
- SPREADSHEET_DATA_FILE_TEMPLATE_GUID = 'e4fabff5-2ba9-4050-9076-6ed917970b4c'
77
-
78
- UNIX_FILE_SYSTEM_TEMPLATE_GUID = '27117270-8667-41d0-a99a-9118f9b60199'
79
-
80
- VIDEO_DATA_FILE_TEMPLATE_GUID = '93b2b722-ec0f-4da4-960a-b8d4922f8bf5'
81
-
82
- POSTGRESQL_RELATIONAL_DATABASE_SCHEMA_TEMPLATE_GUID = '82a5417c-d882-4271-8444-4c6a996a8bfc'
83
-
84
- ENGINE_HOST_TEMPLATE_GUID = '1764a891-4234-45f1-8cc3-536af40c790d'
85
-
86
- AVRO_DATA_FILE_TEMPLATE_GUID = '9f5be428-058e-41dd-b506-3a222283b579'
87
-
88
- FILE_TEMPLATE_GUID = 'ae3067c7-cc72-4a18-88e1-746803c2c86f'
89
-
90
- APACHE_KAFKA_TOPIC_TEMPLATE_GUID = 'ea8f81c9-c59c-47de-9525-7cc59d1251e5'
91
-
92
- SCRIPT_FILE_TEMPLATE_GUID = 'dbd5e6bb-1ff8-46f4-a007-fb0485f68c92'
93
-
94
- APACHE_ATLAS_SERVER_TEMPLATE_GUID = 'fe6dce45-a978-4417-ab55-17f05b8bcea7'
95
-
96
- RASTER_DATA_FILE_TEMPLATE_GUID = '47211156-f03f-4881-8526-015e695a3dac'
97
-
98
- DATA_FOLDER_TEMPLATE_GUID = '372a0379-7060-4c9d-8d84-bc709b31794c'
99
-
100
- OMAG_SERVER_PLATFORM_TEMPLATE_GUID = '9b06c4dc-ddc8-47ae-b56b-28775d3a96f0'
101
-
102
-
103
-
104
- #
105
- # Integration Connector GUIDS
106
- #
107
-
108
-
109
-
110
- JDBC_RELATIONAL_DATABASE_Integration_Connector_GUID = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
111
-
112
- POSTGRESQL_RELATIONAL_DATABASE_Integration_Connector_GUID = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
113
-
114
- FILEFOLDER_Integration_Connector_GUID = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
115
-
116
- FILEFOLDER_Integration_Connector_GUID = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
117
-
118
- OSS_UNITY_CATALOG_CATALOG_Integration_Connector_GUID = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
119
-
120
- POSTGRESQL_SERVER_Integration_Connector_GUID = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
121
-
122
- APACHE_KAFKA_SERVER_Integration_Connector_GUID = 'fa1f711c-0b34-4b57-8e6e-16162b132b0c'
123
-
124
- SOFTWARE_SERVER_Integration_Connector_GUID = 'b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e'
125
-
126
- OSS_UNITY_CATALOG_SERVER_Integration_Connector_GUID = '06d068d9-9e08-4e67-8c59-073bbf1013af'
127
-
File without changes
File without changes