pyegeria 0.8.4.23__py3-none-any.whl → 0.8.4.25__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.
commands/cli/egeria.py CHANGED
@@ -32,14 +32,12 @@ from commands.my.list_my_profile import display_my_profile
32
32
  from commands.my.list_my_roles import display_my_roles
33
33
  from commands.my.monitor_my_todos import display_my_todos
34
34
  from commands.my.monitor_open_todos import display_todos
35
- from commands.ops.engine_actions import (
36
- start_daemon as start_engine_host,
37
- stop_daemon as stop_engine_host,
38
- )
39
- from commands.ops.integration_daemon_actions import (
35
+
36
+ from commands.ops.gov_server_actions import (
40
37
  add_catalog_target,
41
38
  remove_catalog_target,
42
39
  update_catalog_target,
40
+ refresh_gov_eng_config,
43
41
  stop_server,
44
42
  start_server,
45
43
  )
@@ -1161,8 +1159,8 @@ def engine_host(ctx):
1161
1159
  pass
1162
1160
 
1163
1161
 
1164
- engine_host.add_command(start_engine_host)
1165
- engine_host.add_command(stop_engine_host)
1162
+ engine_host.add_command(start_server)
1163
+ engine_host.add_command(stop_server)
1166
1164
 
1167
1165
 
1168
1166
  @tell.group("repository")
@@ -14,15 +14,14 @@ 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.integration_daemon_actions import (
18
- start_server,
19
- stop_server,
20
- refresh_gov_eng_config,
21
- )
22
- from commands.ops.integration_daemon_actions import (
17
+
18
+ from commands.ops.gov_server_actions import (
23
19
  add_catalog_target,
24
20
  remove_catalog_target,
25
21
  update_catalog_target,
22
+ refresh_gov_eng_config,
23
+ start_server,
24
+ stop_server,
26
25
  )
27
26
  from commands.ops.list_catalog_targets import display_catalog_targets
28
27
  from commands.ops.load_archive import load_archive
@@ -387,6 +386,9 @@ def servers(ctx):
387
386
 
388
387
  servers.add_command(start_server)
389
388
  servers.add_command(stop_server)
389
+ servers.add_command(refresh_gov_eng_config)
390
+
391
+ CONTEXT_SETTINGS = dict(default_map={"runserver": {"port": 5000}})
390
392
 
391
393
 
392
394
  @tell.group("integration-daemon")
@@ -429,6 +431,8 @@ def restart_connectors(ctx, connector):
429
431
  integration_daemon.add_command(add_catalog_target)
430
432
  integration_daemon.add_command(remove_catalog_target)
431
433
  integration_daemon.add_command(update_catalog_target)
434
+ integration_daemon.add_command(start_server)
435
+ integration_daemon.add_command(stop_server)
432
436
 
433
437
 
434
438
  @tell.group("engine-host")
@@ -104,57 +104,8 @@ def update_catalog_target(ctx, relationship_guid: str, catalog_target_name: str)
104
104
  print_exception_response(e)
105
105
 
106
106
 
107
- # @click.command("stop")
108
- # @click.pass_context
109
- # def stop_server(ctx):
110
- # """Stop an integration daemon"""
111
- # try:
112
- # c = ctx.obj
113
- # p_client = Platform(
114
- # c.integration_daemon, c.integration_daemon_url, c.userid, c.password
115
- # )
116
- #
117
- # p_client.shutdown_server()
118
- #
119
- # click.echo(f"Stopped server {c.integration_daemon}")
120
- # except (InvalidParameterException, PropertyServerException) as e:
121
- # print_exception_response(e)
122
- #
123
- #
124
- # @click.command("start")
125
- # @click.pass_context
126
- # def start_server(ctx):
127
- # """Start or restart an integration daemon from its known configuration"""
128
- # try:
129
- # c = ctx.obj
130
- # p_client = Platform(
131
- # c.integration_daemon, c.integration_daemon_url, c.userid, c.password
132
- # )
133
- #
134
- # p_client.activate_server_stored_config()
135
- #
136
- # click.echo(f"Started server {c.integration_daemon}")
137
- #
138
- # except (InvalidParameterException, PropertyServerException) as e:
139
- # print_exception_response(e)
140
107
  @click.command("refresh-gov-eng-config")
141
108
  @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
109
  def refresh_gov_eng_config(ctx):
159
110
  """Start or restart an engine-host from its known configuration"""
160
111
  c = ctx.obj
@@ -173,23 +124,14 @@ def refresh_gov_eng_config(ctx):
173
124
 
174
125
 
175
126
  @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
- # )
127
+ @click.pass_context
128
+ @click.option("--server", default=None, help="OMAG Server to start")
190
129
  def start_server(ctx, server):
191
130
  """Start or restart an engine-host from its known configuration"""
192
131
  c = ctx.obj
132
+ if server is None:
133
+ click.echo(c.parent.info_name)
134
+ server = "simple-metadata-store"
193
135
  p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
194
136
  token = p_client.create_egeria_bearer_token()
195
137
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.8.4.23
3
+ Version: 0.8.4.25
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -16,10 +16,10 @@ commands/cat/list_tech_types.py,sha256=20T4v6L5qeebSsaL1nGkFMDAIsy2W3A3SMm1RcgFo
16
16
  commands/cat/list_todos.py,sha256=iPxHRyW3X5tiREio4TUOwRPvNPjU0gxm3pVnUI79ir4,6542
17
17
  commands/cat/list_user_ids.py,sha256=7JinL7rknPbGusIb8ikXKEaV1vvbuvx_WWtbmlfS_DY,5093
18
18
  commands/cli/__init__.py,sha256=6d_R0KZBNnJy9EBz9J2xvGFlx-3j_ZPqPCxKgdvYeDQ,291
19
- commands/cli/egeria.py,sha256=diSjRmatdj9RNsHEZbcstxvH4TPf99PXdILp7DyqgTQ,28411
19
+ commands/cli/egeria.py,sha256=PrWt07cTZSNqyBrJifMnvCWH0vor4zcydsIznQJqPQM,28302
20
20
  commands/cli/egeria_cat.py,sha256=LWspOYRcdJIIx2n9wvhBhkNnACGDIpFTWfsoVTGeiV0,12957
21
21
  commands/cli/egeria_my.py,sha256=9zIpUDLeA_R-0rgCSQfEZTtVmkxPcEAsYcCTn1wQFrE,6181
22
- commands/cli/egeria_ops.py,sha256=IoFtzuOPJb4fjEag8AhlHIr5dOg4ODGAjrghmmQBiCg,11092
22
+ commands/cli/egeria_ops.py,sha256=0kIBvxnS4slJzKfxg6KrJ1-UJ4IYHQfN1OPKIQ3ArG8,11230
23
23
  commands/cli/egeria_tech.py,sha256=PfEIf8pLgbCiPlUikZss97R78XOue0P3aZG5PswUtQ4,11161
24
24
  commands/cli/ops_config.py,sha256=m4AfPjf-fR4EBTx8Dc2mcgrfWwAxb30YGeV-v79bg4U,1450
25
25
  commands/my/README.md,sha256=ZheFhj_VoPMhcWjW3pGchHB0vH_A9PklSmrSkzKdrcQ,844
@@ -33,7 +33,7 @@ commands/my/todo_actions.py,sha256=uihltirrAPtwYNygnNBAVWgfS0W7acoETz1_h3XW_4o,8
33
33
  commands/ops/README.md,sha256=PJsSDcvMv6E6og6y-cwvxFX5lhCII0UCwgKiM1T17MQ,1595
34
34
  commands/ops/__init__.py,sha256=SCfzF3-aMx8EpqLWmH7JQf13gTmMAtHRbg69oseLvi8,480
35
35
  commands/ops/engine_actions.py,sha256=00s_wkzs0zlZ6PyZ0J5J9lHhw4Viyzbeox7b1K1lmyc,4609
36
- commands/ops/integration_daemon_actions.py,sha256=cfhB9EqIcDtvYLGC-wH3CO_rKiG7Jb8wm55xqj5yjIA,7605
36
+ commands/ops/gov_server_actions.py,sha256=tRcAW_TExuRm__gSBcx4SMqVC8LplTutvwNzIGJ_xGU,5714
37
37
  commands/ops/list_catalog_targets.py,sha256=0FIZqZu7DSh7tnrme6EOhNiVvK8wyvN1iTZKEDuwTmw,6620
38
38
  commands/ops/load_archive.py,sha256=duf3wq2ANRBiOj9KTFsw8TseEkJLKdzITAeTCjsMvI0,2453
39
39
  commands/ops/monitor_asset_events.py,sha256=cjdlVqE0XYnoRW3aorNbsVkjByDXefPBnllaZLelGls,3838
@@ -92,8 +92,8 @@ pyegeria/server_operations.py,sha256=ciH890hYT85YQ6OpByn4w7s3a7TtvWZpIG5rkRqbcI0
92
92
  pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
93
93
  pyegeria/valid_metadata_omvs.py,sha256=6Hc4g9BOS8w1ILfTG3_A1tfIX3HLtpgZZvcC-z9GePU,36185
94
94
  pyegeria/x_action_author_omvs.py,sha256=za472slZ5tN9Pkd-ukyHS5Sn6MlKkJyIlbLlU3bL_Go,6451
95
- pyegeria-0.8.4.23.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
96
- pyegeria-0.8.4.23.dist-info/METADATA,sha256=684NHEnLYQABBYXVqLY_LvOuT3B7sd1byxS6Tnni5no,2820
97
- pyegeria-0.8.4.23.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
98
- pyegeria-0.8.4.23.dist-info/entry_points.txt,sha256=CkFcA_eJ_pXLSlpZ7AAPDiNVHyFuW0tDHc_y9LTlLx8,3344
99
- pyegeria-0.8.4.23.dist-info/RECORD,,
95
+ pyegeria-0.8.4.25.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
96
+ pyegeria-0.8.4.25.dist-info/METADATA,sha256=oLkdOsN67ebuQ2T-2BiUQdub6hNNlNJlZId8YT94K2E,2820
97
+ pyegeria-0.8.4.25.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
98
+ pyegeria-0.8.4.25.dist-info/entry_points.txt,sha256=CkFcA_eJ_pXLSlpZ7AAPDiNVHyFuW0tDHc_y9LTlLx8,3344
99
+ pyegeria-0.8.4.25.dist-info/RECORD,,