pyegeria 1.5.1.1.3__tar.gz → 1.5.1.1.5__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 (110) hide show
  1. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/PKG-INFO +1 -1
  2. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/glossary_actions.py +12 -1
  3. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/glossary_manager_omvs.py +26 -0
  4. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyproject.toml +1 -1
  5. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/LICENSE +0 -0
  6. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/README.md +0 -0
  7. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/README.md +0 -0
  8. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/__init__.py +0 -0
  9. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/get_asset_graph.py +0 -0
  10. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/get_collection.py +0 -0
  11. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/get_project_dependencies.py +0 -0
  12. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/get_project_structure.py +0 -0
  13. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/get_tech_type_elements.py +0 -0
  14. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/get_tech_type_template.py +0 -0
  15. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_archives.py +0 -0
  16. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_assets.py +0 -0
  17. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_cert_types.py +0 -0
  18. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_deployed_catalogs.py +0 -0
  19. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_deployed_database_schemas.py +0 -0
  20. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_deployed_databases.py +0 -0
  21. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_glossary.py +0 -0
  22. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_projects.py +0 -0
  23. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_relationships.py +0 -0
  24. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_tech_types.py +0 -0
  25. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_todos.py +0 -0
  26. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cat/list_user_ids.py +0 -0
  27. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cli/__init__.py +0 -0
  28. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cli/egeria.py +0 -0
  29. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cli/egeria_cat.py +0 -0
  30. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cli/egeria_my.py +0 -0
  31. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cli/egeria_ops.py +0 -0
  32. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cli/egeria_tech.py +0 -0
  33. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/cli/ops_config.py +0 -0
  34. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/my/README.md +0 -0
  35. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/my/__init__.py +0 -0
  36. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/my/list_my_profile.py +0 -0
  37. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/my/list_my_roles.py +0 -0
  38. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/my/monitor_my_todos.py +0 -0
  39. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/my/monitor_open_todos.py +0 -0
  40. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/my/todo_actions.py +0 -0
  41. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/README.md +0 -0
  42. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/__init__.py +0 -0
  43. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/engine_actions.py +0 -0
  44. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/gov_server_actions.py +0 -0
  45. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/list_catalog_targets.py +0 -0
  46. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/load_archive.py +0 -0
  47. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/monitor_asset_events.py +0 -0
  48. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/monitor_engine_activity.py +0 -0
  49. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/monitor_engine_activity_c.py +0 -0
  50. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/monitor_gov_eng_status.py +0 -0
  51. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/monitor_integ_daemon_status.py +0 -0
  52. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/monitor_platform_status.py +0 -0
  53. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/monitor_server_startup.py +0 -0
  54. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/monitor_server_status.py +0 -0
  55. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/orig_monitor_server_list.py +0 -0
  56. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/orig_monitor_server_status.py +0 -0
  57. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/refresh_integration_daemon.py +0 -0
  58. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/restart_integration_daemon.py +0 -0
  59. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/ops/table_integ_daemon_status.py +0 -0
  60. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/README.md +0 -0
  61. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/__init__.py +0 -0
  62. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/get_element_graph.py +0 -0
  63. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/get_element_info.py +0 -0
  64. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/get_guid_info.py +0 -0
  65. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/get_tech_details.py +0 -0
  66. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_asset_types.py +0 -0
  67. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_elements.py +0 -0
  68. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_elements_for_classification.py +0 -0
  69. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_elements_x.py +0 -0
  70. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_gov_action_processes.py +0 -0
  71. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_registered_services.py +0 -0
  72. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_related_elements.py +0 -0
  73. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_related_specification.py +0 -0
  74. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_relationship_types.py +0 -0
  75. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_tech_templates.py +0 -0
  76. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/list_valid_metadata_values.py +0 -0
  77. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/table_tech_templates.py +0 -0
  78. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/commands/tech/x_list_related_elements.py +0 -0
  79. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/README.md +0 -0
  80. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/__init__.py +0 -0
  81. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/_client.py +0 -0
  82. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/_deprecated_gov_engine.py +0 -0
  83. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/_exceptions.py +0 -0
  84. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/_globals.py +0 -0
  85. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/_validators.py +0 -0
  86. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/asset_catalog_omvs.py +0 -0
  87. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/automated_curation_omvs.py +0 -0
  88. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/classification_manager_omvs.py +0 -0
  89. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/collection_manager_omvs.py +0 -0
  90. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/core_omag_server_config.py +0 -0
  91. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/create_tech_guid_lists.py +0 -0
  92. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/egeria_cat_client.py +0 -0
  93. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/egeria_client.py +0 -0
  94. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/egeria_config_client.py +0 -0
  95. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/egeria_my_client.py +0 -0
  96. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/egeria_tech_client.py +0 -0
  97. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/feedback_manager_omvs.py +0 -0
  98. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/full_omag_server_config.py +0 -0
  99. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/glossary_browser_omvs.py +0 -0
  100. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/mermaid_utilities.py +0 -0
  101. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/my_profile_omvs.py +0 -0
  102. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/platform_services.py +0 -0
  103. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/project_manager_omvs.py +0 -0
  104. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/registered_info.py +0 -0
  105. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/runtime_manager_omvs.py +0 -0
  106. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/server_operations.py +0 -0
  107. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/template_manager_omvs.py +0 -0
  108. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/utils.py +0 -0
  109. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/valid_metadata_omvs.py +0 -0
  110. {pyegeria-1.5.1.1.3 → pyegeria-1.5.1.1.5}/pyegeria/x_action_author_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 1.5.1.1.3
3
+ Version: 1.5.1.1.5
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -8,6 +8,7 @@ Execute Glossary actions.
8
8
 
9
9
  """
10
10
  import csv
11
+ import json
11
12
  import os
12
13
  import sys
13
14
  import time
@@ -216,6 +217,12 @@ def create_term(
216
217
  @click.command("load-terms-from-file")
217
218
  @click.option("--glossary-name", help="Name of Glossary", required=True)
218
219
  @click.option("--file-name", help="Path of CSV file", required=True)
220
+ @click.option(
221
+ "--verbose",
222
+ type=bool,
223
+ default=False,
224
+ help="If true, result descriptions are provided",
225
+ )
219
226
  @click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use")
220
227
  @click.option(
221
228
  "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
@@ -223,7 +230,9 @@ def create_term(
223
230
  @click.option("--userid", default=EGERIA_USER, help="Egeria user")
224
231
  @click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
225
232
  @click.option("--timeout", default=60, help="Number of seconds to wait")
226
- def load_terms(glossary_name, file_name, server, url, userid, password, timeout):
233
+ def load_terms(
234
+ glossary_name, file_name, verbose, server, url, userid, password, timeout
235
+ ):
227
236
  """Delete the glossary specified"""
228
237
  m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
229
238
  token = m_client.create_egeria_bearer_token()
@@ -233,6 +242,8 @@ def load_terms(glossary_name, file_name, server, url, userid, password, timeout)
233
242
  click.echo(
234
243
  f"Loaded terms from into glossary: {glossary_name} from {file_name}"
235
244
  )
245
+ if verbose:
246
+ print(f"\n Verbose output:\n{json.dumps(result, indent = 2)}")
236
247
 
237
248
  except (InvalidParameterException, PropertyServerException) as e:
238
249
  print_exception_response(e)
@@ -64,6 +64,11 @@ class GlossaryManager(GlossaryBrowser):
64
64
  # Get Valid Values for Enumerations
65
65
  #
66
66
 
67
+ def __validate_term_status__(self, status: str) -> bool:
68
+ """Return True if the status is a legal glossary term status"""
69
+ recognized_term_status = {"DRAFT", "ACTIVE", "DEPRACATED", "OBSOLETE", "OTHER"}
70
+ return status in recognized_term_status
71
+
67
72
  async def _async_create_glossary(
68
73
  self,
69
74
  display_name: str,
@@ -1338,6 +1343,8 @@ class GlossaryManager(GlossaryBrowser):
1338
1343
  """
1339
1344
 
1340
1345
  validate_guid(glossary_guid)
1346
+ if self.__validate_term_status__(body["initialStatus"]) is False:
1347
+ raise InvalidParameterException("Bad status value")
1341
1348
 
1342
1349
  url = (
1343
1350
  f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
@@ -1467,7 +1474,26 @@ class GlossaryManager(GlossaryBrowser):
1467
1474
 
1468
1475
  # process the row
1469
1476
  if term_name is None:
1477
+ term_info.append(
1478
+ {
1479
+ {"term_name": "---"},
1480
+ {"qualified_name": "---"},
1481
+ {"term_guid": "---"},
1482
+ {"error": "missing term names - skipping"},
1483
+ }
1484
+ )
1485
+ continue
1486
+ if self.__validate_term_status__(status) is False:
1487
+ term_info.append(
1488
+ {
1489
+ {"term_name": "---"},
1490
+ {"qualified_name": "---"},
1491
+ {"term_guid": "---"},
1492
+ {"error": "invalid term status"},
1493
+ }
1494
+ )
1470
1495
  continue
1496
+
1471
1497
  body = {
1472
1498
  "class": "ReferenceableRequestBody",
1473
1499
  "elementProperties": {
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "1.5.1.1.3"
3
+ version = "1.5.1.1.5"
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