pyegeria 5.4.0.7__py3-none-any.whl → 5.4.0.9__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.
@@ -63,7 +63,7 @@ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
63
63
  app_settings = get_app_config()
64
64
  app_config = app_settings.Environment
65
65
  config_logging()
66
-
66
+ logger.info(f"Console width is {app_config.console_width}")
67
67
  console = Console(
68
68
  style="bold bright_white on black",
69
69
  width=app_config.console_width,
@@ -365,11 +365,12 @@ def main():
365
365
 
366
366
  server = args.server if args.server is not None else app_config.egeria_view_server
367
367
  url = args.url if args.url is not None else app_config.egeria_view_server_url
368
+ print(f"root path: {app_config.egeria_root_path}, config_file: {app_config.egeria_config_file}")
368
369
  userid = args.userid if args.userid is not None else EGERIA_USER
369
370
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
370
371
  format_set_name = args.format_set
371
372
  output_format = args.output_format
372
-
373
+ logger.info(f"view server @ {url}")
373
374
  # Collect all user parameters from args
374
375
  kwargs = {}
375
376
  for param in user_params:
commands/cli/egeria.py CHANGED
@@ -1049,7 +1049,7 @@ def show_cat_info(ctx):
1049
1049
  def show_format_set(ctx, format_set, output_format, search_string):
1050
1050
  """Dynamically generate output based on a format set"""
1051
1051
  c = ctx.obj
1052
-
1052
+ logger.info(f"Hey Egeria: view server @ {c.view_server_url}")
1053
1053
  execute_format_set_action(
1054
1054
  format_set, c.view_server, c.view_server_url,
1055
1055
  c.userid, c.password, output_format, search_string = search_string
pyegeria/_client_new.py CHANGED
@@ -375,8 +375,11 @@ class Client2:
375
375
  """Make a request to the Egeria API."""
376
376
  try:
377
377
  loop = asyncio.get_running_loop()
378
- coro = self._async_make_request(request_type, endpoint, payload, time_out, is_json)
379
- return asyncio.run_coroutine_threadsafe(coro, loop).result()
378
+ if loop.is_running():
379
+ coro = self._async_make_request(request_type, endpoint, payload, time_out, is_json)
380
+ return asyncio.run_coroutine_threadsafe(coro, loop).result()
381
+ else:
382
+ return loop.run_until_complete(self._async_make_request(request_type, endpoint, payload, time_out, is_json))
380
383
  except RuntimeError:
381
384
  # No running loop exists; run the coroutine
382
385
  return asyncio.run(self._async_make_request(request_type, endpoint, payload, time_out, is_json))
pyegeria/load_config.py CHANGED
@@ -355,7 +355,7 @@ def load_app_config(env_file: str = None):
355
355
  # Logging section
356
356
  log = config_dict["Logging"]
357
357
  log["console_filter_levels"] = _parse_list_env("PYEGERIA_CONSOLE_FILTER_LEVELS", log.get("console_filter_levels", ["ERROR"]))
358
- log["console_logging_enabled"] = _parse_list_env("PYEGERIA_CONSOLE_LOGGING_ENABLED", log.get("console_logging_enabled", ["tests"]))
358
+ log["console_logging_enabled"] = _parse_list_env("PYEGERIA_CONSOLE_LOGGING_ENABLED", log.get("console_logging_enabled", ["pyegeria"]))
359
359
  log["console_logging_level"] = os.getenv("PYEGERIA_CONSOLE_LOG_LVL", log.get("console_logging_level", "INFO"))
360
360
  log["enable_logging"] = _parse_bool_env("PYEGERIA_ENABLE_LOGGING", log.get("enable_logging", False))
361
361
  log["file_logging_level"] = os.getenv("PYEGERIA_FILE_LOG_LVL", log.get("file_logging_level", "INFO"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyegeria
3
- Version: 5.4.0.7
3
+ Version: 5.4.0.9
4
4
  Summary: A python client for Egeria
5
5
  License: Apache 2.0
6
6
  Keywords: egeria,metadata,governance
@@ -21,7 +21,7 @@ commands/cat/list_deployed_catalogs.py,sha256=VdN6R9kRVWX-fGIgubOigvMVPzhF-hKQep
21
21
  commands/cat/list_deployed_database_schemas.py,sha256=1Qicke1R2_7Xi3Qf5sp8KJ3_reAIt0z1iaz2sG8Z0Qs,9458
22
22
  commands/cat/list_deployed_databases.py,sha256=ryrBW1CxJRfOeLP978qQwxb5oImqhIsHghtcpWeBIrw,7587
23
23
  commands/cat/list_deployed_servers.py,sha256=_xR7EaaCsxIjTphxmoCZlARoja_vQqZ881pFiEuhw-8,5719
24
- commands/cat/list_format_set.py,sha256=HeRikW4LgJ5ZqKbpUnPZTReGjwz7OiOnema97ZArF3E,16957
24
+ commands/cat/list_format_set.py,sha256=J5MRt7MQHAl2t7pqd2YXLF-wHv1DBMdvzZGCKL5NWtE,17152
25
25
  commands/cat/list_glossaries.py,sha256=pKJdiRMrSBpmPv0yOWoR_CdGZP06MuxfPGwCXc-kSQw,7666
26
26
  commands/cat/list_projects.py,sha256=NzWTuepTGUEyxK-eWvuUxtBgCtNWubVwmz2eqm2UN1c,7997
27
27
  commands/cat/list_tech_type_elements.py,sha256=-9omj5en9dSP1xMSljYVHyfXsuhuE1bO2IFj_bZPhAs,6873
@@ -31,7 +31,7 @@ commands/cat/list_todos.py,sha256=NitCw0uyVVjmN1hxb1W-I4FbOsa8wQxW2ICyOElHyc8,65
31
31
  commands/cat/list_user_ids.py,sha256=X5Q-YNEp38saPYDuy9VwdQC5Qpa4HyC3WvAdbyp_P6M,5108
32
32
  commands/cli/__init__.py,sha256=E6vPW3P3iuVPyrwtDIWvU9P0JXOGqP8KupeIZdxc6wc,298
33
33
  commands/cli/debug_log,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
- commands/cli/egeria.py,sha256=NmcpYRflzDElJ7vYxz7zByZ4s6UsRIVcm9v7JOB6Qlk,52192
34
+ commands/cli/egeria.py,sha256=bNnWrVBazMDswK7uuYt4NG74nGYhri-O6Ps6KCHibqw,52257
35
35
  commands/cli/egeria_cat.py,sha256=dzi6WIe-OydX5pRVImtH5TqhqsGynGyJSiaivlrOLus,18299
36
36
  commands/cli/egeria_login_tui.py,sha256=bh9MvJcZPpixXkEtWh_4NK4YcRdeHSVDUBTIhQncSyY,9498
37
37
  commands/cli/egeria_my.py,sha256=pWFgznhBs34a6ldRExAFGmZ7K-wBYqjTUfvdUtPq_uc,6349
@@ -187,7 +187,7 @@ md_processing/md_processing_utils/message_constants.py,sha256=UBf18obM83umM6zplR
187
187
  pyegeria/README.md,sha256=PwX5OC7-YSZUCIsoyHh1O-WBM2hE84sm3Bd4O353NOk,1464
188
188
  pyegeria/__init__.py,sha256=jKqMWRZZoQ7SMpbXQajAfmPTkUc8MX7Du5ALYylBonM,31185
189
189
  pyegeria/_client.py,sha256=hJHn5pD8sbelP_M9dK-M5Z2CYqpRXzXfg1UCgAdQ6dQ,33416
190
- pyegeria/_client_new.py,sha256=T7nX4WpPM33G_O1lZoZYu1Bpa2-bb5ys0H1oC-sA5OM,27537
190
+ pyegeria/_client_new.py,sha256=nXKojaveeLvwIEiSzHRGN53pVnM-Vj8-0kLaAxERp-s,27722
191
191
  pyegeria/_deprecated_gov_engine.py,sha256=dWNcwVsE5__dF2u4QiIyQrssozzzOjBbLld8MdpmVCQ,17264
192
192
  pyegeria/_exceptions.py,sha256=1SrnV194V4_YJNnNAU0myTHQ3dhLn4GF2B2gZcj1u90,18153
193
193
  pyegeria/_exceptions_new.py,sha256=rxfT3KcBUCeXoz_JJotTzylT0o9SZ_yu4EMuWMScCF8,18182
@@ -212,7 +212,7 @@ pyegeria/full_omag_server_config.py,sha256=CQqLCy_3DZFvJZEOcGf50HWdFaWpiAIs6z-kK
212
212
  pyegeria/glossary_browser_omvs.py,sha256=Jb2Tt2qNjnoWQNBDMdZiuQffH6nC4lKekZNEJCiW5BE,166966
213
213
  pyegeria/glossary_manager_omvs.py,sha256=vXHlBuJxUIAkSI7OKbYcspmcfxxX-L7oe5J0AiEefVI,87991
214
214
  pyegeria/governance_officer_omvs.py,sha256=14UnC-fS5LUsWzx-RuzUX_ZNVxldqvVSvZFvJDv980I,91580
215
- pyegeria/load_config.py,sha256=ynT0zDMuuAII3dI7PHrcnecKbv7sSn9enI_oBq1Ixek,22672
215
+ pyegeria/load_config.py,sha256=ij1sb7vr-w1aSePWsmVVTsFgI0i-qeAbKmJNWSl5R-g,22675
216
216
  pyegeria/load_config_orig.py,sha256=lOM37vdIBcYfLQFTLP5bDuNc7vTFGBNYPfqHtWGNvA4,11624
217
217
  pyegeria/logging_configuration.py,sha256=R1pMPHb7Gm8bxRkrvgFFCpIc7cI05FyZS7aWQTErTHM,7715
218
218
  pyegeria/md_processing_helpers.py,sha256=xlQuK5eP_PJqUdy4BScQ97NyBD95jMS3EUg0wK5CsZo,2137
@@ -232,8 +232,8 @@ pyegeria/template_manager_omvs.py,sha256=chBljs1vy5wr9DRAtbvIt4Cob_7HxGfxLkCNlDT
232
232
  pyegeria/utils.py,sha256=CAh8LItgmGf5UHIYeYAOE4roHg1wuBk3zQ1lxK7lcZA,6805
233
233
  pyegeria/valid_metadata_omvs.py,sha256=Xq9DqBQvBFFJzaFIRKcVZ2k4gJvSh9yeXs_j-O3vn1w,65050
234
234
  pyegeria/x_action_author_omvs.py,sha256=RcqSzahUKCtvb_3u_wyintAlc9WFkC_2v0E12TZs8lQ,6433
235
- pyegeria-5.4.0.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
236
- pyegeria-5.4.0.7.dist-info/METADATA,sha256=GiJzmxHpNLEUhzVAmjyy39FNZr8ZWJYOLzobWtFrQC4,2973
237
- pyegeria-5.4.0.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
238
- pyegeria-5.4.0.7.dist-info/entry_points.txt,sha256=HAS-LHaaBfkaZ19XU9g5mXwn2uj2HK99isdijI-VIDk,6353
239
- pyegeria-5.4.0.7.dist-info/RECORD,,
235
+ pyegeria-5.4.0.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
236
+ pyegeria-5.4.0.9.dist-info/METADATA,sha256=1dKttHB7dEUUW_6JcmsMRlEcYKYXdfFuSmhE6esbYpg,2973
237
+ pyegeria-5.4.0.9.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
238
+ pyegeria-5.4.0.9.dist-info/entry_points.txt,sha256=HAS-LHaaBfkaZ19XU9g5mXwn2uj2HK99isdijI-VIDk,6353
239
+ pyegeria-5.4.0.9.dist-info/RECORD,,