pyegeria 1.5.1.1.48__py3-none-any.whl → 1.5.1.1.50__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.
Files changed (84) hide show
  1. pyegeria/.DS_Store +0 -0
  2. pyegeria/commands/.DS_Store +0 -0
  3. pyegeria/commands/cat/glossary_actions.py +18 -16
  4. pyegeria/commands/cli/egeria.py +674 -193
  5. pyegeria/commands/cli/egeria_cat.py +105 -116
  6. pyegeria/commands/cli/egeria_ops.py +19 -2
  7. pyegeria/commands/cli/egeria_tech.py +64 -22
  8. pyegeria/commands/doc/.DS_Store +0 -0
  9. pyegeria/commands/doc/glossary/.DS_Store +0 -0
  10. pyegeria/commands/doc/glossary/basic-glossary-tui.md +52 -33
  11. pyegeria/commands/doc/glossary/images/.DS_Store +0 -0
  12. pyegeria/commands/doc/glossary/images/out-create-glossary example 2024-11-05 at 20.38.04@2x.png +0 -0
  13. pyegeria/commands/doc/glossary/images/out-delete-term 2024-11-07 at 03.57.25.png +0 -0
  14. pyegeria/commands/doc/glossary/images/out-export-example 2024-11-07 at 09.54.57.png +0 -0
  15. pyegeria/commands/doc/glossary/images/out-glossary-list example 2024-11-05 at 20.41.02@2x.png +0 -0
  16. pyegeria/commands/doc/glossary/images/out-import-terms 2024-11-07 at 08.15.18.png +0 -0
  17. pyegeria/commands/doc/glossary/images/out-pipx install pyegeria 2024-11-10 at 18.12.21.png +0 -0
  18. pyegeria/commands/doc/glossary/images/out-server-status-full 2024-11-10 at 18.25.14.png +0 -0
  19. pyegeria/commands/doc/glossary/images/out-servers-status 2024-11-10 at 18.15.42.png +0 -0
  20. pyegeria/commands/doc/glossary/images/out-upsert-import 2024-11-07 at 19.37.00.png +0 -0
  21. pyegeria/commands/doc/glossary/images/tui-2024-11-10 at 18.26.29.png +0 -0
  22. pyegeria/commands/doc/glossary/images/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png +0 -0
  23. pyegeria/commands/doc/glossary/images/tui-delete-term 2024-11-07 at 03.51.57.png +0 -0
  24. pyegeria/commands/doc/glossary/images/tui-export-example 2024-11-07 at 09.52.59.png +0 -0
  25. pyegeria/commands/doc/glossary/images/tui-hey-egeria 2024-11-10 at 18.31.01.png +0 -0
  26. pyegeria/commands/doc/glossary/images/tui-import-upsert-example 2024-11-07 at 10.08.37.png +0 -0
  27. pyegeria/commands/doc/glossary/images/tui-load-archive.png +0 -0
  28. pyegeria/commands/doc/glossary/images/tui-server-status-full 2024-11-10 at 19.14.36.png +0 -0
  29. pyegeria/commands/doc/glossary/images/tui-show-glossaries 2024-11-07 at 20.00.05.png +0 -0
  30. pyegeria/commands/doc/glossary/images/tui-upsert 2024-11-07 at 11.49.04.png +0 -0
  31. pyegeria/commands/doc/glossary/images/upsert-example.om-terms 2024-11-07 at 11.44.05.png +0 -0
  32. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/.DS_Store +0 -0
  33. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/hey_egeria: overview.md +164 -0
  34. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-server-status 2024-11-10 at 18.15.42@2x.png +0 -0
  35. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-server-status-full 2024-11-10 at 18.25.14@2x.png +0 -0
  36. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-hey-egeria 2024-11-10 at 18.31.01@2x.png +0 -0
  37. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-load-archive 2024-11-10 at 19.19.09@2x.png +0 -0
  38. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-show-server-status 2024-11-10 at 18.52.01@2x.png +0 -0
  39. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-show-server-status-full 2024-11-10.png +0 -0
  40. pyegeria/glossary_manager_omvs.py +85 -134
  41. {pyegeria-1.5.1.1.48.dist-info → pyegeria-1.5.1.1.50.dist-info}/METADATA +1 -1
  42. {pyegeria-1.5.1.1.48.dist-info → pyegeria-1.5.1.1.50.dist-info}/RECORD +62 -51
  43. {pyegeria-1.5.1.1.48.dist-info → pyegeria-1.5.1.1.50.dist-info}/entry_points.txt +4 -3
  44. pyegeria/commands/doc/glossary/CleanShot 2024-11-06 at 21.02.16@2x.png +0 -0
  45. pyegeria/commands/doc/glossary/CleanShot 2024-11-06 at 21.03.24@2x.png +0 -0
  46. pyegeria/commands/doc/glossary/CleanShot 2024-11-06 at 21.06.32@2x.png +0 -0
  47. pyegeria/commands/doc/glossary/CleanShot 2024-11-07 at 03.29.18@2x.png +0 -0
  48. pyegeria/commands/doc/glossary/CleanShot 2024-11-07 at 03.34.41@2x.png +0 -0
  49. pyegeria/commands/doc/glossary/out-create-glossary example 2024-11-05 at 20.38.04@2x.png +0 -0
  50. pyegeria/commands/doc/glossary/out-glossary-list example 2024-11-05 at 20.41.02@2x.png +0 -0
  51. pyegeria/commands/doc/glossary/out-terms-export 2024-11-06 at 21.03.24.png +0 -0
  52. pyegeria/commands/doc/glossary/out_show-all-terms 2024-11-05 at 19.43.29@2x.png +0 -0
  53. pyegeria/commands/doc/glossary/shell_list_glossaries 2024-11-05 at 17.07.21@2x.png +0 -0
  54. pyegeria/commands/doc/glossary/shell_list_glossaries 2024-11-05 at 19.21.50@2x.png +0 -0
  55. pyegeria/commands/doc/glossary/tui-create-glossary 2024-11-05 at 19.18.19@2x.png +0 -0
  56. pyegeria/commands/doc/glossary/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png +0 -0
  57. pyegeria/commands/doc/glossary/tui-delete-term 2024-11-07 at 03.29.18@2x.png +0 -0
  58. pyegeria/commands/doc/glossary/tui-delete-term 2024-11-07 at 03.34.41.png +0 -0
  59. pyegeria/commands/doc/glossary/tui-display-terms-for-glossary 2024-11-06 at 20.49.51.png +0 -0
  60. pyegeria/commands/doc/glossary/tui-export-glossary 2024-11-06 at 21.02.16.png +0 -0
  61. pyegeria/commands/doc/glossary/tui-list-all-terms 2024-11-06 at 16.19.45@2x.png +0 -0
  62. pyegeria/commands/doc/glossary/tui-list-terms-from-glossary 2024-11-06 at 16.23.54.png +0 -0
  63. pyegeria/commands/doc/glossary/tui-load-terms 2024-11-05 at 20.44.20@2x.png +0 -0
  64. pyegeria/commands/doc/glossary/tui-show glossaries 2024-11-05 at 19.22.49@2x.png +0 -0
  65. pyegeria/commands/doc/glossary/tui-show-glossary-terms-sustainability 2024-11-05 at 19.46.13@2x.png +0 -0
  66. /pyegeria/commands/doc/glossary/{delete-glossary-step1 2024-11-06 at 15.47.23@2x.png → images/delete-glossary-step1 2024-11-06 at 15.47.23@2x.png} +0 -0
  67. /pyegeria/commands/doc/glossary/{delete-glossary-step2 2024-11-06 at 15.51.29@2x.png → images/delete-glossary-step2 2024-11-06 at 15.51.29@2x.png} +0 -0
  68. /pyegeria/commands/doc/glossary/{delete-glossary-step3 2024-11-06 at 15.53.19@2x.png → images/delete-glossary-step3 2024-11-06 at 15.53.19@2x.png} +0 -0
  69. /pyegeria/commands/doc/glossary/{delete-glossary-step4 2024-11-06 at 15.55.11@2x.png → images/delete-glossary-step4 2024-11-06 at 15.55.11@2x.png} +0 -0
  70. /pyegeria/commands/doc/glossary/{out-create-term 2024-11-06 at 20.48.29.png → images/out-create-term 2024-11-06 at 20.48.29.png} +0 -0
  71. /pyegeria/commands/doc/glossary/{out-display-terms-for-glossary-test 2024-11-06 at 20.51.28.png → images/out-display-terms-for-glossary-test 2024-11-06 at 20.51.28.png} +0 -0
  72. /pyegeria/commands/doc/glossary/{out-exported-terms 2024-11-06 at 21.06.32.png → images/out-exported-terms 2024-11-06 at 21.06.32.png} +0 -0
  73. /pyegeria/commands/doc/glossary/{out-list-all-terms 2024-11-06 at 16.22.20@2x.png → images/out-list-all-terms 2024-11-06 at 16.22.20@2x.png} +0 -0
  74. /pyegeria/commands/doc/glossary/{out-list-terms-for-example 2024-11-06 at 16.40.12.png → images/out-list-terms-for-example 2024-11-06 at 16.40.12.png} +0 -0
  75. /pyegeria/commands/doc/glossary/{out-list-terms-second 2024-11-06 at 16.45.13.png → images/out-list-terms-second 2024-11-06 at 16.45.13.png} +0 -0
  76. /pyegeria/commands/doc/glossary/{tui-create-term 2024-11-06 at 20.46.35.png → images/tui-create-term 2024-11-06 at 20.46.35.png} +0 -0
  77. /pyegeria/commands/doc/glossary/{tui-display-terms-for-example 2024-11-06 at 20.56.49.png → images/tui-display-terms-for-example 2024-11-06 at 20.56.49.png} +0 -0
  78. /pyegeria/commands/doc/glossary/{tui-list-terms-second 2024-11-06 at 16.46.34.png → images/tui-list-terms-second 2024-11-06 at 16.46.34.png} +0 -0
  79. /pyegeria/commands/doc/glossary/{tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png → images/tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png} +0 -0
  80. /pyegeria/commands/{cat → ops}/list_archives.py +0 -0
  81. /pyegeria/commands/{cat → tech}/get_tech_type_template.py +0 -0
  82. /pyegeria/commands/{cat → tech}/list_relationships.py +0 -0
  83. {pyegeria-1.5.1.1.48.dist-info → pyegeria-1.5.1.1.50.dist-info}/LICENSE +0 -0
  84. {pyegeria-1.5.1.1.48.dist-info → pyegeria-1.5.1.1.50.dist-info}/WHEEL +0 -0
pyegeria/.DS_Store ADDED
Binary file
Binary file
@@ -248,11 +248,9 @@ def delete_term(server, url, userid, password, timeout, term_guid):
248
248
  m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
249
249
  token = m_client.create_egeria_bearer_token()
250
250
  try:
251
- term_guid = term_guid.trim()
251
+ term_guid = term_guid.strip()
252
252
  term_info = m_client.get_terms_by_guid(term_guid)
253
- click.echo(
254
- f"Found term with GUID: {term_guid} and Display Name: {term_info['glossaryTermProperties']['displayName']}"
255
- )
253
+
256
254
  m_client.delete_term(term_guid)
257
255
 
258
256
  click.echo(
@@ -265,13 +263,13 @@ def delete_term(server, url, userid, password, timeout, term_guid):
265
263
  m_client.close_session()
266
264
 
267
265
 
268
- @click.command("load-terms-from-file")
266
+ @click.command("import-terms")
269
267
  @click.option("--glossary-name", help="Name of Glossary", required=True)
270
268
  @click.option("--file-name", help="Path of CSV file", required=True)
271
269
  @click.option(
272
270
  "--verbose",
273
271
  is_flag=True,
274
- default=False,
272
+ default=True,
275
273
  help="If set, result descriptions are provided",
276
274
  )
277
275
  @click.option(
@@ -288,19 +286,23 @@ def delete_term(server, url, userid, password, timeout, term_guid):
288
286
  @click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
289
287
  @click.option("--timeout", default=60, help="Number of seconds to wait")
290
288
  def import_terms(
291
- glossary_name, file_name, verbose, upsert, server, url, userid, password, timeout
289
+ glossary_name: str,
290
+ file_name: str,
291
+ verbose: bool,
292
+ upsert: bool,
293
+ server: str,
294
+ url: str,
295
+ userid: str,
296
+ password: str,
297
+ timeout: int,
292
298
  ):
293
299
  """Load terms from file into the glossary specified"""
294
300
  m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
295
301
  token = m_client.create_egeria_bearer_token()
296
302
  try:
297
- if os.path.exists(file_name):
298
- print(f"Found file at: {file_name}\n")
299
- else:
300
- print(f"File not found at: {file_name}\n")
301
- sys.exit(0)
302
-
303
- result = m_client.load_terms_from_file(glossary_name, file_name, upsert=upsert)
303
+ result = m_client.load_terms_from_file(
304
+ glossary_name, file_name, upsert=upsert, verbose=verbose
305
+ )
304
306
 
305
307
  click.echo(
306
308
  f"Loaded terms from into glossary: {glossary_name} from {file_name}"
@@ -314,7 +316,7 @@ def import_terms(
314
316
  m_client.close_session()
315
317
 
316
318
 
317
- @click.command("export-terms-to-file")
319
+ @click.command("export-terms")
318
320
  @click.option("--glossary-guid", help="GUID of Glossary to export", required=True)
319
321
  @click.option("--file-name", help="Path of CSV file", required=True)
320
322
  @click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use")
@@ -324,7 +326,7 @@ def import_terms(
324
326
  @click.option("--userid", default=EGERIA_USER, help="Egeria user")
325
327
  @click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
326
328
  @click.option("--timeout", default=60, help="Number of seconds to wait")
327
- def export_terms(glossary_guid, file_name, server, url, userid, password, timeout):
329
+ def export_terms(glossary_guid: str, file_name, server, url, userid, password, timeout):
328
330
  """Export the glossary specified"""
329
331
  m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
330
332
  token = m_client.create_egeria_bearer_token()