pyegeria 5.3.0.dev4__py3-none-any.whl → 5.3.0.dev6__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.
@@ -1396,21 +1396,6 @@ def show_user_ids(ctx):
1396
1396
  )
1397
1397
 
1398
1398
 
1399
- @show_server.command("archives")
1400
- @click.pass_context
1401
- def archives(ctx):
1402
- """Display a list of archivest"""
1403
- c = ctx.obj
1404
- display_archive_list(
1405
- c.view_server,
1406
- c.view_server_url,
1407
- c.userid,
1408
- c.password,
1409
- False,
1410
- c.jupyter,
1411
- c.width,
1412
- )
1413
-
1414
1399
 
1415
1400
  @deployed_data.command("deployed-servers")
1416
1401
  @click.option(
@@ -1537,6 +1522,26 @@ def show_ops(ctx):
1537
1522
  """Display an Egeria Object"""
1538
1523
  pass
1539
1524
 
1525
+ @show_ops.group("repository")
1526
+ @click.pass_context
1527
+ def show_repo(ctx):
1528
+ """Group of commands to show repository information"""
1529
+ pass
1530
+
1531
+
1532
+ @show_repo.command("archives")
1533
+ @click.pass_context
1534
+ def show_archives(ctx):
1535
+ c= ctx.obj
1536
+ display_archive_list(
1537
+ c.view_server,
1538
+ c.view_server_url,
1539
+ c.userid,
1540
+ c.password,
1541
+ False,
1542
+ c.jupyter,
1543
+ c.width,
1544
+ )
1540
1545
 
1541
1546
  @show_ops.group("platforms")
1542
1547
  @click.pass_context
@@ -124,6 +124,12 @@ from pyegeria.commands.my.todo_actions import (
124
124
  default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
125
125
  help="Glossary guid to use as the home glossary",
126
126
  )
127
+ @click.option(
128
+ "--glossary_path",
129
+ default=os.environ.get("EGERIA_GLOSSARY_PATH", "/home/jovyan/loading-bay/glossary"),
130
+ help="Path to glossary import/export files",
131
+ )
132
+
127
133
  @click.pass_context
128
134
  def cli(
129
135
  ctx,
@@ -142,6 +148,8 @@ def cli(
142
148
  timeout,
143
149
  jupyter,
144
150
  width,
151
+ home_glossary_guid,
152
+ glossary_path,
145
153
  ):
146
154
  """An Egeria Command Line interface for Operations"""
147
155
  ctx.obj = Config(
@@ -160,6 +168,8 @@ def cli(
160
168
  timeout,
161
169
  jupyter,
162
170
  width,
171
+ home_glossary_guid,
172
+ glossary_path,
163
173
  )
164
174
  ctx.max_content_width = 200
165
175
  ctx.ensure_object(Config)
@@ -140,6 +140,11 @@ from pyegeria.commands.ops.list_archives import display_archive_list
140
140
  default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
141
141
  help="Glossary guid to use as the home glossary",
142
142
  )
143
+ @click.option(
144
+ "--glossary_path",
145
+ default=os.environ.get("EGERIA_GLOSSARY_PATH", "/home/jovyan/loading-bay/glossary"),
146
+ help="Path to glossary import/export files",
147
+ )
143
148
  @click.pass_context
144
149
  def cli(
145
150
  ctx,
@@ -158,6 +163,8 @@ def cli(
158
163
  timeout,
159
164
  jupyter,
160
165
  width,
166
+ home_glossary_guid,
167
+ glossary_path,
161
168
  ):
162
169
  """An Egeria Command Line interface for Operations"""
163
170
  ctx.obj = Config(
@@ -176,6 +183,8 @@ def cli(
176
183
  timeout,
177
184
  jupyter,
178
185
  width,
186
+ home_glossary_guid,
187
+ glossary_path
179
188
  )
180
189
  ctx.max_content_width = 200
181
190
  ctx.ensure_object(Config)
@@ -248,12 +257,17 @@ def show_startup_status(ctx):
248
257
  c.width,
249
258
  )
250
259
 
260
+ @show.group("repository")
261
+ @click.pass_context
262
+ def show_repo(ctx):
263
+ """Group of commands to show repository information"""
264
+ pass
265
+
251
266
 
252
- @show_server.command("archives")
267
+ @show_repo.command("archives")
253
268
  @click.pass_context
254
- def list_archives(ctx):
255
- """Display a list of archives"""
256
- c = ctx.obj
269
+ def show_archives(ctx):
270
+ c= ctx.obj
257
271
  display_archive_list(
258
272
  c.view_server,
259
273
  c.view_server_url,
@@ -139,6 +139,11 @@ from pyegeria.commands.tech.get_tech_type_template import template_viewer
139
139
  default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
140
140
  help="Glossary guid to use as the home glossary",
141
141
  )
142
+ @click.option(
143
+ "--glossary_path",
144
+ default=os.environ.get("EGERIA_GLOSSARY_PATH", "/home/jovyan/loading-bay/glossary"),
145
+ help="Path to glossary import/export files",
146
+ )
142
147
  @click.pass_context
143
148
  def cli(
144
149
  ctx,
@@ -157,6 +162,8 @@ def cli(
157
162
  timeout,
158
163
  jupyter,
159
164
  width,
165
+ home_glossary_guid,
166
+ home_glossary_path,
160
167
  ):
161
168
  """An Egeria Command Line interface for Operations"""
162
169
  ctx.obj = Config(
@@ -175,6 +182,8 @@ def cli(
175
182
  timeout,
176
183
  jupyter,
177
184
  width,
185
+ home_glossary_guid,
186
+ home_glossary_path,
178
187
  )
179
188
  ctx.max_content_width = 200
180
189
  ctx.ensure_object(Config)
@@ -103,7 +103,6 @@ def display_integration_daemon_status(
103
103
 
104
104
  Nothing
105
105
  """
106
- print(f"i={integ_server}\nv={view_server}\n")
107
106
  s_client = EgeriaTech(view_server, view_url, user, user_pass)
108
107
  token = s_client.create_egeria_bearer_token()
109
108
 
@@ -258,7 +257,6 @@ def main_live(paging: bool = False) -> None:
258
257
  "Enter the list of connectors you are interested in or '*' for all",
259
258
  default="*",
260
259
  )
261
- print(f"i={integ_server}\nv={view_server}\n")
262
260
  display_integration_daemon_status(
263
261
  search_list=[search_list],
264
262
  integ_server=integ_server,
@@ -50,14 +50,14 @@ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
50
50
 
51
51
  def display_status(
52
52
  extended: bool,
53
- view_server: str,
54
- url: str,
55
- username: str,
56
- user_pass: str,
57
- jupyter: bool = EGERIA_JUPYTER,
58
- width: int = EGERIA_WIDTH,
53
+ view_server: str = os.environ.get("EGERIA_VIEW_SERVER"),
54
+ view_server_url: str = os.environ.get("EGERIA_VIEW_SERVER_URL"),
55
+ username: str = os.environ.get("EGERIA_USER"),
56
+ user_pass: str = os.environ.get("EGERIA_USER_PASSWORD"),
57
+ jupyter: bool = os.environ.get("EGERIA_JUPYTER", "False"),
58
+ width: int = os.environ.get("EGERIA_WIDTH", 150),
59
59
  ):
60
- p_client = RuntimeManager(view_server, url, username, user_pass)
60
+ p_client = RuntimeManager(view_server, view_server_url, username, user_pass)
61
61
  token = p_client.create_egeria_bearer_token()
62
62
 
63
63
  def generate_table() -> Table:
@@ -69,7 +69,7 @@ def display_status(
69
69
  header_style="white on dark_blue",
70
70
  title_style="bold white on black",
71
71
  caption_style="white on black",
72
- caption=f"Server Status from Platform - '{url}'",
72
+ caption=f"Server Status from Platform - '{view_server_url}'",
73
73
  show_lines=True,
74
74
  )
75
75
 
@@ -175,7 +175,7 @@ def main():
175
175
  userid = args.userid if args.userid is not None else EGERIA_ADMIN_USER
176
176
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
177
177
 
178
- display_status(full, server, url, userid, user_pass)
178
+ display_status(full, args.server, args.url, userid, user_pass)
179
179
 
180
180
 
181
181
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 5.3.0.dev4
3
+ Version: 5.3.0.dev6
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -35,12 +35,12 @@ pyegeria/commands/cat/list_terms.py,sha256=P0kkOP5oA3sBveDqwIECqqyZYuaKRhV4INRhx
35
35
  pyegeria/commands/cat/list_todos.py,sha256=iPxHRyW3X5tiREio4TUOwRPvNPjU0gxm3pVnUI79ir4,6542
36
36
  pyegeria/commands/cat/list_user_ids.py,sha256=7JinL7rknPbGusIb8ikXKEaV1vvbuvx_WWtbmlfS_DY,5093
37
37
  pyegeria/commands/cli/__init__.py,sha256=hpTVSMP2gnPRhcAZPdeUEsQ-eaDySlXlk239dNWYmng,292
38
- pyegeria/commands/cli/egeria.py,sha256=4oL4SnHV5TBY87DX659UCZh4YoNFw-hu_SNrZ_BoFXs,45825
38
+ pyegeria/commands/cli/egeria.py,sha256=jp1iFt5iJtedgZj9XwssH_8xkf3gFcEFGFmHtsgx8Ss,45928
39
39
  pyegeria/commands/cli/egeria_cat.py,sha256=P6pd17KvldSYCWJJAu56_DX90NOBFuQBireZ0gCuPB4,16017
40
40
  pyegeria/commands/cli/egeria_login_tui.py,sha256=m7gUiiPdeu2vxjiyxy-6OhAekSa5kVQnOUur2qyvbUA,9480
41
- pyegeria/commands/cli/egeria_my.py,sha256=XLd5ARwrVHZM7SGUKadJznb5KUULCmx2WIid3TKKmhY,6116
42
- pyegeria/commands/cli/egeria_ops.py,sha256=gVdLv5CgIyccZAAGS-RjwaW3cFrQOJJYhgWuMWQcl60,12580
43
- pyegeria/commands/cli/egeria_tech.py,sha256=DllmvtwPdYLnztyxEVg3fCcUT9XMlXAdIJyU8qAilb0,15709
41
+ pyegeria/commands/cli/egeria_my.py,sha256=ncLN1DM_P7A0N2J96lET64t4fW21ifpDr8S6yI2lZHQ,6389
42
+ pyegeria/commands/cli/egeria_ops.py,sha256=rB2th7K5SAsbfAVR3R-U_rjeRkVK8oce7JS29vBt15w,12946
43
+ pyegeria/commands/cli/egeria_tech.py,sha256=jkeA6CdAT8iOtqMXAWE4emsu1583VY2KUxIAQYmAPiU,15991
44
44
  pyegeria/commands/cli/ops_config.py,sha256=4ShMgVl2eJoQLqJTK4npAdeAeJuq3FE6qsqngXYON74,1331
45
45
  pyegeria/commands/cli/txt_custom_v2.tcss,sha256=ixkzpFyTZ5i3byFO9EmEAeJgzbEa7nZb_3iTgxNtVPk,232
46
46
  pyegeria/commands/doc/README.md,sha256=3TDtLjanw5Sn5fhw0apsYv2HS2Hd7NSdjLu3qTwwXBg,13941
@@ -171,10 +171,10 @@ pyegeria/commands/ops/monitor_asset_events.py,sha256=B5GKzsAeLUbn_uBKLDWKlnNpX5A
171
171
  pyegeria/commands/ops/monitor_engine_activity.py,sha256=8RX-3znYx-4oWsI8nGFwODkWZ5Fc4qPttam_twymcjs,9856
172
172
  pyegeria/commands/ops/monitor_engine_activity_c.py,sha256=kuSNeq0YaD9w8kjyijPxp5L4oa7_68IhsU6sFl16SAg,10747
173
173
  pyegeria/commands/ops/monitor_gov_eng_status.py,sha256=MijZMxdSpzJAr3-d3PlDJaIkIYKmabiWqEpzpNu5vEo,9856
174
- pyegeria/commands/ops/monitor_integ_daemon_status.py,sha256=QDePegHb6XxKa_Q5670UXMW_a9MHz1UqHFCrR63GBEI,11826
174
+ pyegeria/commands/ops/monitor_integ_daemon_status.py,sha256=1-IUXlQtNZhxhO-FI8enYTHcRrjWx3APjLCDYB3hlEk,11726
175
175
  pyegeria/commands/ops/monitor_platform_status.py,sha256=fpv8rZxdkcmbQ5SXQpGpqoY_nyqpT7NmOWQSll0cq8Q,7173
176
176
  pyegeria/commands/ops/monitor_server_startup.py,sha256=0pwnhv761uuFHGJXVANa5RhQQPPTXFldJ45TfeT7qfk,3901
177
- pyegeria/commands/ops/monitor_server_status.py,sha256=LnBDSbMeuVojpyHfwHM4i9Vnt-y1JkfmTVEutR1xFRU,6873
177
+ pyegeria/commands/ops/monitor_server_status.py,sha256=lXDDzNXEpkuREfC3xupLq2xusZVp_9J86J0ExfYZoDA,7124
178
178
  pyegeria/commands/ops/orig_monitor_server_list.py,sha256=Uhtn8lv7QVXJBi9DSR3Nelmz8TB0vOsat10nFS6Nu20,4637
179
179
  pyegeria/commands/ops/orig_monitor_server_status.py,sha256=45lS8flHhBAnP7sRzYIXy1iFXVlFERxNAj_nOeYwWU0,4019
180
180
  pyegeria/commands/ops/refresh_integration_daemon.py,sha256=WncX_E45Gq6xZF6Z_NlUXXVlrvDh549wRLAclTdCH7s,2962
@@ -225,8 +225,8 @@ pyegeria/template_manager_omvs.py,sha256=Sw5xsQAhy7a48xFCg59mg9_nqyhawoS9v4WyF-P
225
225
  pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
226
226
  pyegeria/valid_metadata_omvs.py,sha256=kmcyXBsu99L25r16w9xVXqU_KwADsGuft4yPDZzyUds,65032
227
227
  pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
228
- pyegeria-5.3.0.dev4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
229
- pyegeria-5.3.0.dev4.dist-info/METADATA,sha256=G4vfPKgJVH27hXKZSJHIkSzHGe-zOozx5H5hdVyrbM0,2675
230
- pyegeria-5.3.0.dev4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
231
- pyegeria-5.3.0.dev4.dist-info/entry_points.txt,sha256=JK212otpaYZogRHHwMrHy3fQUpAsg_DC3LkRUl59V2s,5373
232
- pyegeria-5.3.0.dev4.dist-info/RECORD,,
228
+ pyegeria-5.3.0.dev6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
229
+ pyegeria-5.3.0.dev6.dist-info/METADATA,sha256=qygEJ1qiEh4ND9BOG1_S0xZDGoKrtXLwkoIDXl_3rzU,2675
230
+ pyegeria-5.3.0.dev6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
231
+ pyegeria-5.3.0.dev6.dist-info/entry_points.txt,sha256=JK212otpaYZogRHHwMrHy3fQUpAsg_DC3LkRUl59V2s,5373
232
+ pyegeria-5.3.0.dev6.dist-info/RECORD,,