pyegeria 0.8.4.21__tar.gz → 0.8.4.23__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.21 → pyegeria-0.8.4.23}/PKG-INFO +1 -1
  2. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cli/egeria_ops.py +3 -2
  3. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/integration_daemon_actions.py +98 -1
  4. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyproject.toml +1 -1
  5. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/LICENSE +0 -0
  6. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/README.md +0 -0
  7. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/README.md +0 -0
  8. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/__init__.py +0 -0
  9. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/get_asset_graph.py +0 -0
  10. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/get_collection.py +0 -0
  11. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/get_project_dependencies.py +0 -0
  12. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/get_project_structure.py +0 -0
  13. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/get_tech_type_elements.py +0 -0
  14. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/get_tech_type_template.py +0 -0
  15. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/list_archives.py +0 -0
  16. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/list_assets.py +0 -0
  17. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/list_cert_types.py +0 -0
  18. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/list_glossary.py +0 -0
  19. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/list_projects.py +0 -0
  20. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/list_relationships.py +0 -0
  21. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/list_tech_types.py +0 -0
  22. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/list_todos.py +0 -0
  23. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cat/list_user_ids.py +0 -0
  24. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cli/__init__.py +0 -0
  25. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cli/egeria.py +0 -0
  26. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cli/egeria_cat.py +0 -0
  27. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cli/egeria_my.py +0 -0
  28. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cli/egeria_tech.py +0 -0
  29. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/cli/ops_config.py +0 -0
  30. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/my/README.md +0 -0
  31. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/my/__init__.py +0 -0
  32. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/my/list_my_profile.py +0 -0
  33. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/my/list_my_roles.py +0 -0
  34. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/my/monitor_my_todos.py +0 -0
  35. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/my/monitor_open_todos.py +0 -0
  36. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/my/my_profile_actions.py +0 -0
  37. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/my/todo_actions.py +0 -0
  38. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/README.md +0 -0
  39. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/__init__.py +0 -0
  40. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/engine_actions.py +0 -0
  41. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/list_catalog_targets.py +0 -0
  42. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/load_archive.py +0 -0
  43. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/monitor_asset_events.py +0 -0
  44. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/monitor_coco_status.py +0 -0
  45. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/monitor_engine_activity.py +0 -0
  46. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/monitor_engine_activity_c.py +0 -0
  47. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/monitor_gov_eng_status.py +0 -0
  48. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/monitor_integ_daemon_status.py +0 -0
  49. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/monitor_platform_status.py +0 -0
  50. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/monitor_server_list.py +0 -0
  51. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/monitor_server_status.py +0 -0
  52. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/refresh_integration_daemon.py +0 -0
  53. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/ops/restart_integration_daemon.py +0 -0
  54. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/README.md +0 -0
  55. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/__init__.py +0 -0
  56. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/get_element_info.py +0 -0
  57. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/get_guid_info.py +0 -0
  58. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/get_tech_details.py +0 -0
  59. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/list_asset_types.py +0 -0
  60. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/list_elements.py +0 -0
  61. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/list_elements_x.py +0 -0
  62. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/list_registered_services.py +0 -0
  63. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/list_related_specification.py +0 -0
  64. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/list_relationship_types.py +0 -0
  65. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/list_tech_templates.py +0 -0
  66. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/list_valid_metadata_values.py +0 -0
  67. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/commands/tech/x_list_related_elements.py +0 -0
  68. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/__init__.py +0 -0
  69. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/_client.py +0 -0
  70. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/_deprecated_gov_engine.py +0 -0
  71. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/_exceptions.py +0 -0
  72. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/_globals.py +0 -0
  73. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/_validators.py +0 -0
  74. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/asset_catalog_omvs.py +0 -0
  75. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/automated_curation_omvs.py +0 -0
  76. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/classification_manager_omvs.py +0 -0
  77. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/collection_manager_omvs.py +0 -0
  78. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/core_omag_server_config.py +0 -0
  79. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/create_tech_guid_lists.py +0 -0
  80. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/egeria_cat_client.py +0 -0
  81. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/egeria_client.py +0 -0
  82. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/egeria_config_client.py +0 -0
  83. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/egeria_my_client.py +0 -0
  84. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/egeria_tech_client.py +0 -0
  85. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/feedback_manager_omvs.py +0 -0
  86. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/full_omag_server_config.py +0 -0
  87. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/glossary_browser_omvs.py +0 -0
  88. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/glossary_manager_omvs.py +0 -0
  89. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/mermaid_utilities.py +0 -0
  90. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/my_profile_omvs.py +0 -0
  91. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/platform_services.py +0 -0
  92. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/project_manager_omvs.py +0 -0
  93. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/registered_info.py +0 -0
  94. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/runtime_manager_omvs.py +0 -0
  95. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/server_operations.py +0 -0
  96. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/utils.py +0 -0
  97. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/pyegeria/valid_metadata_omvs.py +0 -0
  98. {pyegeria-0.8.4.21 → pyegeria-0.8.4.23}/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.21
3
+ Version: 0.8.4.23
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,
@@ -42,6 +42,7 @@ from commands.ops.monitor_server_status import (
42
42
  from commands.ops.refresh_integration_daemon import refresh_connector
43
43
  from commands.ops.restart_integration_daemon import restart_connector
44
44
 
45
+
45
46
  # class Config(object):
46
47
  # def __init__(self, server: str = None, url: str = None, userid:str = None, password:str = None,
47
48
  # timeout:int = 30, paging: bool = False):
@@ -381,6 +382,7 @@ def tell(ctx):
381
382
  @click.pass_context
382
383
  def servers(ctx):
383
384
  """Perform actions on OMAG Servers"""
385
+ pass
384
386
 
385
387
 
386
388
  servers.add_command(start_server)
@@ -448,6 +450,5 @@ def repository(ctx):
448
450
 
449
451
  repository.add_command(load_archive)
450
452
 
451
-
452
453
  if __name__ == "__main__":
453
454
  cli()
@@ -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,100 @@ 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.option("--server", help="OMAG Server to start")
177
+ # @click.option(
178
+ # "--view-server", default=EGERIA_VIEW_SERVER, help="View Server to communicate with"
179
+ # )
180
+ # @click.option(
181
+ # "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
182
+ # )
183
+ # @click.option("--userid", default="garygeeke", envvar="EGERIA_USER", help="Egeria user")
184
+ # @click.option(
185
+ # "--password",
186
+ # default="secret",
187
+ # envvar="EGERIA_USER_PASSWORD",
188
+ # help="Egeria user password",
189
+ # )
190
+ def start_server(ctx, server):
191
+ """Start or restart an engine-host from its known configuration"""
192
+ c = ctx.obj
193
+ p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
194
+ token = p_client.create_egeria_bearer_token()
195
+ try:
196
+ server_guid = p_client.get_element_guid_by_unique_name(server, "name")
197
+ p_client.activate_server_with_stored_config(server_guid)
198
+
199
+ click.echo(f"Started server {server}")
200
+
201
+ except (InvalidParameterException, PropertyServerException) as e:
202
+ print_exception_response(e)
203
+ finally:
204
+ p_client.close_session()
205
+
206
+
207
+ @click.command("stop")
208
+ @click.option("--server", help="OMAG Server to stop")
209
+ # @click.option(
210
+ # "--view-server", default=EGERIA_VIEW_SERVER, help="View Server to communicate with"
211
+ # )
212
+ # @click.option(
213
+ # "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
214
+ # )
215
+ # @click.option("--userid", default="garygeeke", envvar="EGERIA_USER", help="Egeria user")
216
+ # @click.option(
217
+ # "--password",
218
+ # default="secret",
219
+ # envvar="EGERIA_PASSWORD",
220
+ # help="Egeria user password",
221
+ # )
222
+ @click.pass_context
223
+ def stop_server(ctx, server):
224
+ """Stop an engine-host daemon"""
225
+ c = ctx.obj
226
+ p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
227
+ token = p_client.create_egeria_bearer_token()
228
+ try:
229
+ server_guid = p_client.get_guid_for_name(server)
230
+
231
+ p_client.shutdown_server(server_guid)
232
+ click.echo(f"Stopped server {server}")
233
+ except (InvalidParameterException, PropertyServerException) as e:
234
+ print_exception_response(e)
235
+ finally:
236
+ p_client.close_session()
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "0.8.4.21"
3
+ version = "0.8.4.23"
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