pyegeria 0.8.4.22__tar.gz → 0.8.4.24__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 (98) hide show
  1. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/PKG-INFO +1 -1
  2. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cli/egeria_ops.py +1 -1
  3. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/integration_daemon_actions.py +99 -1
  4. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyproject.toml +1 -1
  5. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/LICENSE +0 -0
  6. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/README.md +0 -0
  7. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/README.md +0 -0
  8. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/__init__.py +0 -0
  9. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/get_asset_graph.py +0 -0
  10. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/get_collection.py +0 -0
  11. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/get_project_dependencies.py +0 -0
  12. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/get_project_structure.py +0 -0
  13. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/get_tech_type_elements.py +0 -0
  14. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/get_tech_type_template.py +0 -0
  15. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/list_archives.py +0 -0
  16. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/list_assets.py +0 -0
  17. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/list_cert_types.py +0 -0
  18. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/list_glossary.py +0 -0
  19. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/list_projects.py +0 -0
  20. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/list_relationships.py +0 -0
  21. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/list_tech_types.py +0 -0
  22. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/list_todos.py +0 -0
  23. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cat/list_user_ids.py +0 -0
  24. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cli/__init__.py +0 -0
  25. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cli/egeria.py +0 -0
  26. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cli/egeria_cat.py +0 -0
  27. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cli/egeria_my.py +0 -0
  28. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cli/egeria_tech.py +0 -0
  29. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/cli/ops_config.py +0 -0
  30. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/my/README.md +0 -0
  31. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/my/__init__.py +0 -0
  32. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/my/list_my_profile.py +0 -0
  33. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/my/list_my_roles.py +0 -0
  34. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/my/monitor_my_todos.py +0 -0
  35. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/my/monitor_open_todos.py +0 -0
  36. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/my/my_profile_actions.py +0 -0
  37. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/my/todo_actions.py +0 -0
  38. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/README.md +0 -0
  39. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/__init__.py +0 -0
  40. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/engine_actions.py +0 -0
  41. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/list_catalog_targets.py +0 -0
  42. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/load_archive.py +0 -0
  43. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/monitor_asset_events.py +0 -0
  44. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/monitor_coco_status.py +0 -0
  45. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/monitor_engine_activity.py +0 -0
  46. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/monitor_engine_activity_c.py +0 -0
  47. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/monitor_gov_eng_status.py +0 -0
  48. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/monitor_integ_daemon_status.py +0 -0
  49. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/monitor_platform_status.py +0 -0
  50. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/monitor_server_list.py +0 -0
  51. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/monitor_server_status.py +0 -0
  52. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/refresh_integration_daemon.py +0 -0
  53. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/ops/restart_integration_daemon.py +0 -0
  54. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/README.md +0 -0
  55. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/__init__.py +0 -0
  56. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/get_element_info.py +0 -0
  57. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/get_guid_info.py +0 -0
  58. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/get_tech_details.py +0 -0
  59. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/list_asset_types.py +0 -0
  60. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/list_elements.py +0 -0
  61. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/list_elements_x.py +0 -0
  62. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/list_registered_services.py +0 -0
  63. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/list_related_specification.py +0 -0
  64. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/list_relationship_types.py +0 -0
  65. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/list_tech_templates.py +0 -0
  66. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/list_valid_metadata_values.py +0 -0
  67. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/commands/tech/x_list_related_elements.py +0 -0
  68. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/__init__.py +0 -0
  69. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/_client.py +0 -0
  70. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/_deprecated_gov_engine.py +0 -0
  71. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/_exceptions.py +0 -0
  72. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/_globals.py +0 -0
  73. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/_validators.py +0 -0
  74. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/asset_catalog_omvs.py +0 -0
  75. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/automated_curation_omvs.py +0 -0
  76. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/classification_manager_omvs.py +0 -0
  77. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/collection_manager_omvs.py +0 -0
  78. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/core_omag_server_config.py +0 -0
  79. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/create_tech_guid_lists.py +0 -0
  80. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/egeria_cat_client.py +0 -0
  81. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/egeria_client.py +0 -0
  82. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/egeria_config_client.py +0 -0
  83. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/egeria_my_client.py +0 -0
  84. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/egeria_tech_client.py +0 -0
  85. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/feedback_manager_omvs.py +0 -0
  86. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/full_omag_server_config.py +0 -0
  87. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/glossary_browser_omvs.py +0 -0
  88. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/glossary_manager_omvs.py +0 -0
  89. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/mermaid_utilities.py +0 -0
  90. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/my_profile_omvs.py +0 -0
  91. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/platform_services.py +0 -0
  92. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/project_manager_omvs.py +0 -0
  93. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/registered_info.py +0 -0
  94. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/runtime_manager_omvs.py +0 -0
  95. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/server_operations.py +0 -0
  96. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/utils.py +0 -0
  97. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/valid_metadata_omvs.py +0 -0
  98. {pyegeria-0.8.4.22 → pyegeria-0.8.4.24}/pyegeria/x_action_author_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.8.4.22
3
+ Version: 0.8.4.24
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,7 +14,7 @@ from trogon import tui
14
14
 
15
15
  # from pyegeria import ServerOps
16
16
  from commands.cli.ops_config import Config
17
- from commands.ops.engine_actions import (
17
+ from commands.ops.integration_daemon_actions import (
18
18
  start_server,
19
19
  stop_server,
20
20
  refresh_gov_eng_config,
@@ -13,7 +13,7 @@ from rich import print, print_json
13
13
  from rich.console import Console
14
14
 
15
15
  import click
16
- from pyegeria import ServerOps, AutomatedCuration, INTEGRATION_GUIDS, Platform
16
+ from pyegeria import EgeriaTech, AutomatedCuration, INTEGRATION_GUIDS
17
17
  from pyegeria._exceptions import (
18
18
  InvalidParameterException,
19
19
  PropertyServerException,
@@ -137,3 +137,101 @@ def update_catalog_target(ctx, relationship_guid: str, catalog_target_name: str)
137
137
  #
138
138
  # except (InvalidParameterException, PropertyServerException) as e:
139
139
  # print_exception_response(e)
140
+ @click.command("refresh-gov-eng-config")
141
+ @click.pass_context
142
+ # @click.option(
143
+ # "--engine-host", default=EGERIA_ENGINE_HOST, help="Engine Host to refresh"
144
+ # )
145
+ # @click.option(
146
+ # "--view-server", default=EGERIA_VIEW_SERVER, help="View Server to communicate with"
147
+ # )
148
+ # @click.option(
149
+ # "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
150
+ # )
151
+ # @click.option("--userid", default="garygeeke", envvar="EGERIA_USER", help="Egeria user")
152
+ # @click.option(
153
+ # "--password",
154
+ # default="secret",
155
+ # envvar="EGERIA_PASSWORD",
156
+ # help="Egeria user password",
157
+ # )
158
+ def refresh_gov_eng_config(ctx):
159
+ """Start or restart an engine-host from its known configuration"""
160
+ c = ctx.obj
161
+ p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
162
+ token = p_client.create_egeria_bearer_token()
163
+ try:
164
+ engine_host_guid = p_client.get_guid_for_name(c.engine_host)
165
+ p_client.refresh_gov_eng_config(engine_host_guid)
166
+
167
+ click.echo(f"Refreshed server {c.engine_host}")
168
+
169
+ except (InvalidParameterException, PropertyServerException) as e:
170
+ print_exception_response(e)
171
+ finally:
172
+ p_client.close_session()
173
+
174
+
175
+ @click.command("start")
176
+ @click.pass_context
177
+ @click.option("--server", help="OMAG Server to start")
178
+ # @click.option(
179
+ # "--view-server", default=EGERIA_VIEW_SERVER, help="View Server to communicate with"
180
+ # )
181
+ # @click.option(
182
+ # "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
183
+ # )
184
+ # @click.option("--userid", default="garygeeke", envvar="EGERIA_USER", help="Egeria user")
185
+ # @click.option(
186
+ # "--password",
187
+ # default="secret",
188
+ # envvar="EGERIA_USER_PASSWORD",
189
+ # help="Egeria user password",
190
+ # )
191
+ def start_server(ctx, server):
192
+ """Start or restart an engine-host from its known configuration"""
193
+ c = ctx.obj
194
+ p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
195
+ token = p_client.create_egeria_bearer_token()
196
+ try:
197
+ server_guid = p_client.get_element_guid_by_unique_name(server, "name")
198
+ p_client.activate_server_with_stored_config(server_guid)
199
+
200
+ click.echo(f"Started server {server}")
201
+
202
+ except (InvalidParameterException, PropertyServerException) as e:
203
+ print_exception_response(e)
204
+ finally:
205
+ p_client.close_session()
206
+
207
+
208
+ @click.command("stop")
209
+ @click.option("--server", help="OMAG Server to stop")
210
+ # @click.option(
211
+ # "--view-server", default=EGERIA_VIEW_SERVER, help="View Server to communicate with"
212
+ # )
213
+ # @click.option(
214
+ # "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
215
+ # )
216
+ # @click.option("--userid", default="garygeeke", envvar="EGERIA_USER", help="Egeria user")
217
+ # @click.option(
218
+ # "--password",
219
+ # default="secret",
220
+ # envvar="EGERIA_PASSWORD",
221
+ # help="Egeria user password",
222
+ # )
223
+ @click.pass_context
224
+ def stop_server(ctx, server):
225
+ """Stop an engine-host daemon"""
226
+ c = ctx.obj
227
+ p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
228
+ token = p_client.create_egeria_bearer_token()
229
+ try:
230
+ server_guid = p_client.get_guid_for_name(server)
231
+
232
+ p_client.shutdown_server(server_guid)
233
+ click.echo(f"Stopped server {server}")
234
+ except (InvalidParameterException, PropertyServerException) as e:
235
+ print_exception_response(e)
236
+ finally:
237
+ p_client.close_session()
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "0.8.4.22"
3
+ version = "0.8.4.24"
4
4
  license = 'Apache 2.0'
5
5
  authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
6
6
  readme = "README.md"
File without changes
File without changes