pyegeria 1.5.1.1.42__tar.gz → 1.5.1.1.44__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 (125) hide show
  1. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/PKG-INFO +1 -1
  2. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/classification_manager_omvs.py +10 -1
  3. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/glossary_actions.py +1 -1
  4. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_terms.py +10 -7
  5. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cli/egeria.py +2 -2
  6. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cli/egeria_cat.py +2 -2
  7. pyegeria-1.5.1.1.44/pyegeria/commands/doc/command-overview.md +92 -0
  8. pyegeria-1.5.1.1.44/pyegeria/commands/doc/glossary/Glossary-list example 2024-11-05 at 20.41.02@2x.png +0 -0
  9. pyegeria-1.5.1.1.44/pyegeria/commands/doc/glossary/create-glossary 2024-11-05 at 19.18.19@2x.png +0 -0
  10. pyegeria-1.5.1.1.44/pyegeria/commands/doc/glossary/list_glossaries 2024-11-05 at 17.07.21@2x.png +0 -0
  11. pyegeria-1.5.1.1.44/pyegeria/commands/doc/glossary/list_glossaries 2024-11-05 at 19.21.50@2x.png +0 -0
  12. pyegeria-1.5.1.1.44/pyegeria/commands/doc/glossary/result-create-glossary example 2024-11-05 at 20.38.04@2x.png +0 -0
  13. pyegeria-1.5.1.1.44/pyegeria/commands/doc/glossary/show-all-terms 2024-11-05 at 19.43.29@2x.png +0 -0
  14. pyegeria-1.5.1.1.44/pyegeria/commands/doc/glossary/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png +0 -0
  15. pyegeria-1.5.1.1.44/pyegeria/commands/doc/glossary/tui-show glossaries 2024-11-05 at 19.22.49@2x.png +0 -0
  16. pyegeria-1.5.1.1.44/pyegeria/commands/doc/glossary/tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png +0 -0
  17. pyegeria-1.5.1.1.44/pyegeria/commands/doc/glossary/tui-show-glossary-terms-sustainability 2024-11-05 at 19.46.13@2x.png +0 -0
  18. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/my/list_my_profile.py +5 -1
  19. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/my/list_my_roles.py +1 -1
  20. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/my/monitor_my_todos.py +2 -2
  21. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/my/monitor_open_todos.py +22 -7
  22. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/my/todo_actions.py +3 -3
  23. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/glossary_manager_omvs.py +7 -0
  24. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyproject.toml +2 -1
  25. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/LICENSE +0 -0
  26. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/README.md +0 -0
  27. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/README.md +0 -0
  28. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/__init__.py +0 -0
  29. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/_client.py +0 -0
  30. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/_deprecated_gov_engine.py +0 -0
  31. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/_exceptions.py +0 -0
  32. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/_globals.py +0 -0
  33. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/_validators.py +0 -0
  34. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/asset_catalog_omvs.py +0 -0
  35. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/automated_curation_omvs.py +0 -0
  36. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/collection_manager_omvs.py +0 -0
  37. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/README.md +0 -0
  38. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/__init__.py +0 -0
  39. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/README.md +0 -0
  40. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/__init__.py +0 -0
  41. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/get_asset_graph.py +0 -0
  42. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/get_collection.py +0 -0
  43. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/get_project_dependencies.py +0 -0
  44. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/get_project_structure.py +0 -0
  45. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/get_tech_type_elements.py +0 -0
  46. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/get_tech_type_template.py +0 -0
  47. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_archives.py +0 -0
  48. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_assets.py +0 -0
  49. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_cert_types.py +0 -0
  50. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_deployed_catalogs.py +0 -0
  51. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_deployed_database_schemas.py +0 -0
  52. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_deployed_databases.py +0 -0
  53. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_glossaries.py +0 -0
  54. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_projects.py +0 -0
  55. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_relationships.py +0 -0
  56. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_servers_deployed_imp.py +0 -0
  57. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_tech_types.py +0 -0
  58. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_todos.py +0 -0
  59. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cat/list_user_ids.py +0 -0
  60. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cli/__init__.py +0 -0
  61. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cli/egeria_my.py +0 -0
  62. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cli/egeria_ops.py +0 -0
  63. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cli/egeria_tech.py +0 -0
  64. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/cli/ops_config.py +0 -0
  65. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/my/README.md +0 -0
  66. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/my/__init__.py +0 -0
  67. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/README.md +0 -0
  68. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/__init__.py +0 -0
  69. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/gov_server_actions.py +0 -0
  70. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/list_catalog_targets.py +0 -0
  71. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/load_archive.py +0 -0
  72. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/monitor_asset_events.py +0 -0
  73. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/monitor_engine_activity.py +0 -0
  74. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/monitor_engine_activity_c.py +0 -0
  75. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/monitor_gov_eng_status.py +0 -0
  76. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/monitor_integ_daemon_status.py +0 -0
  77. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/monitor_platform_status.py +0 -0
  78. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/monitor_server_startup.py +0 -0
  79. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/monitor_server_status.py +0 -0
  80. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/orig_monitor_server_list.py +0 -0
  81. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/orig_monitor_server_status.py +0 -0
  82. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/refresh_integration_daemon.py +0 -0
  83. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/restart_integration_daemon.py +0 -0
  84. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/table_integ_daemon_status.py +0 -0
  85. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/ops/x_engine_actions.py +0 -0
  86. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/README.md +0 -0
  87. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/__init__.py +0 -0
  88. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/get_element_graph.py +0 -0
  89. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/get_element_info.py +0 -0
  90. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/get_guid_info.py +0 -0
  91. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/get_tech_details.py +0 -0
  92. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_asset_types.py +0 -0
  93. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_elements.py +0 -0
  94. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_elements_for_classification.py +0 -0
  95. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_elements_x.py +0 -0
  96. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_gov_action_processes.py +0 -0
  97. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_registered_services.py +0 -0
  98. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_related_elements.py +0 -0
  99. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_related_specification.py +0 -0
  100. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_relationship_types.py +0 -0
  101. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_tech_templates.py +0 -0
  102. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/list_valid_metadata_values.py +0 -0
  103. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/table_tech_templates.py +0 -0
  104. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/commands/tech/x_list_related_elements.py +0 -0
  105. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/core_omag_server_config.py +0 -0
  106. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/create_tech_guid_lists.py +0 -0
  107. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/egeria_cat_client.py +0 -0
  108. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/egeria_client.py +0 -0
  109. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/egeria_config_client.py +0 -0
  110. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/egeria_my_client.py +0 -0
  111. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/egeria_tech_client.py +0 -0
  112. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/feedback_manager_omvs.py +0 -0
  113. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/full_omag_server_config.py +0 -0
  114. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/glossary_browser_omvs.py +0 -0
  115. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/mermaid_utilities.py +0 -0
  116. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/my_profile_omvs.py +0 -0
  117. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/platform_services.py +0 -0
  118. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/project_manager_omvs.py +0 -0
  119. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/registered_info.py +0 -0
  120. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/runtime_manager_omvs.py +0 -0
  121. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/server_operations.py +0 -0
  122. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/template_manager_omvs.py +0 -0
  123. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/utils.py +0 -0
  124. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/pyegeria/valid_metadata_omvs.py +0 -0
  125. {pyegeria-1.5.1.1.42 → pyegeria-1.5.1.1.44}/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.42
3
+ Version: 1.5.1.1.44
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -660,6 +660,15 @@ class ClassificationManager(Client):
660
660
  )
661
661
  return response
662
662
 
663
+ def get_actor_for_guid(self, guid: str) -> str:
664
+ """Get the name of the actor from the supplied guid."""
665
+ details = self.get_element_by_guid(guid)
666
+ if type(details) is str:
667
+ return details
668
+ if details["elementHeader"]["type"]["typeName"] != "UserIdentity":
669
+ return "GUID does not represent a UserIdentity"
670
+ return details["properties"]["userId"]
671
+
663
672
  async def _async_get_element_by_unique_name(
664
673
  self,
665
674
  name: str,
@@ -951,7 +960,7 @@ class ClassificationManager(Client):
951
960
  the requesting user is not authorized to issue this request.
952
961
  """
953
962
 
954
- property_name = ["name", "qualifiedName", "title"]
963
+ property_name = ["name", "displayName", "title"]
955
964
  elements = await self._async_get_elements_by_property_value(
956
965
  name, property_name, None
957
966
  )
@@ -256,7 +256,7 @@ def create_term(
256
256
  @click.option("--userid", default=EGERIA_USER, help="Egeria user")
257
257
  @click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
258
258
  @click.option("--timeout", default=60, help="Number of seconds to wait")
259
- def load_terms(
259
+ def import_terms(
260
260
  glossary_name, file_name, verbose, upsert, server, url, userid, password, timeout
261
261
  ):
262
262
  """Load terms from file into the glossary specified"""
@@ -25,7 +25,6 @@ from pyegeria import (
25
25
  UserNotAuthorizedException,
26
26
  EgeriaTech,
27
27
  )
28
- from pyegeria.glossary_browser_omvs import GlossaryBrowser
29
28
 
30
29
  disable_ssl_warnings = True
31
30
 
@@ -84,12 +83,19 @@ def display_glossary_terms(
84
83
  width : int
85
84
  The width of the console output. Defaults to EGERIA_WIDTH.
86
85
  """
86
+
87
+ console = Console(
88
+ style="bold bright_white on black", width=width, force_terminal=not jupyter
89
+ )
87
90
  g_client = EgeriaTech(view_server, view_url, user_id, user_pass)
88
91
  token = g_client.create_egeria_bearer_token()
89
92
  if (glossary_name is not None) and (glossary_name != "*"):
90
- glossary_guid = g_client.__get_guid__(
91
- glossary_guid, glossary_name, "qualifiedName", None, "Glossary"
92
- )
93
+ glossary_guid = g_client.get_guid_for_name(glossary_name)
94
+ if glossary_guid == "No elements found":
95
+ console.print(
96
+ f"\nThe glossary name {glossary_name} was not found. Please try using the glossary guid"
97
+ )
98
+ sys.exit(0)
93
99
 
94
100
  def generate_table(search_string: str, glossary_guid: str = None) -> Table:
95
101
  """Make a new table."""
@@ -185,9 +191,6 @@ def display_glossary_terms(
185
191
  return table
186
192
 
187
193
  try:
188
- console = Console(
189
- style="bold bright_white on black", width=width, force_terminal=not jupyter
190
- )
191
194
  with console.pager(styles=True):
192
195
  console.print(generate_table(search_string, glossary_guid))
193
196
 
@@ -42,7 +42,7 @@ from pyegeria.commands.cat.glossary_actions import (
42
42
  create_glossary,
43
43
  delete_glossary,
44
44
  create_term,
45
- load_terms,
45
+ import_terms,
46
46
  delete_term,
47
47
  export_terms,
48
48
  )
@@ -1037,7 +1037,7 @@ tell.add_command(mark_todo_complete)
1037
1037
  tell.add_command(reassign_todo)
1038
1038
  tell.add_command(delete_todo)
1039
1039
  tell.add_command(create_todo)
1040
- tell.add_command(load_terms)
1040
+ tell.add_command(import_terms)
1041
1041
  tell.add_command(delete_term)
1042
1042
  tell.add_command(export_terms)
1043
1043
 
@@ -23,7 +23,7 @@ from pyegeria.commands.cat.glossary_actions import (
23
23
  delete_glossary,
24
24
  create_term,
25
25
  delete_term,
26
- load_terms,
26
+ import_terms,
27
27
  export_terms,
28
28
  )
29
29
  from pyegeria.commands.cat.list_servers_deployed_imp import display_servers_by_dep_imp
@@ -619,7 +619,7 @@ tell.add_command(reassign_todo)
619
619
  tell.add_command(delete_todo)
620
620
  tell.add_command(create_todo)
621
621
  tell.add_command(delete_term)
622
- tell.add_command(load_terms)
622
+ tell.add_command(import_terms)
623
623
  tell.add_command(export_terms)
624
624
 
625
625
 
@@ -0,0 +1,92 @@
1
+ # Overview
2
+
3
+ # Command Line Interfaces
4
+
5
+ ## hey_egeria
6
+
7
+ ## hey_egeria_cat
8
+
9
+ ## hey_egeria_my
10
+
11
+ ## hey_egeria_ops
12
+
13
+ ## hey_egeria_tech
14
+
15
+ # Command Reference
16
+
17
+ | Command | Purpose | Cat | My | Ops | Tech | python |
18
+ |------------------------------------|---------|-----|----|-----|------|--------|
19
+ | change_todo_status | | | ✓ | | | |
20
+ | create_glossary | | ✓ | | | | |
21
+ | create_term | | ✓ | | | | |
22
+ | create_todo | | | ✓ | | | |
23
+ | export_terms_to_file | | ✓ | | | | |
24
+ | get_asset_graph | | ✓ | | | | |
25
+ | get_collection | | ✓ | | | | |
26
+ | get_element_info | | | | | ✓ | |
27
+ | get_guid_info | | | | | ✓ | |
28
+ | get_project_dependencies | | ✓ | | | | |
29
+ | get_project_structure | | ✓ | | | | |
30
+ | get_tech_details | | | | | ✓ | |
31
+ | get_tech_type_elements | | ✓ | | | | |
32
+ | get_tech_type_template | | ✓ | | | | |
33
+ | hey_egeria | | | | | | |
34
+ | hey_egeria_cat | | | | | | |
35
+ | hey_egeria_my | | | | | | |
36
+ | hey_egeria_ops | | | | | | |
37
+ | hey_egeria_tech | | | | | | |
38
+ | list_archives | | ✓ | | | | |
39
+ | list_asset_types | | | | | ✓ | |
40
+ | list_assets | | ✓ | | | | |
41
+ | list_catalog_targets | | | | ✓ | | ✓ |
42
+ | list_cert_types | | ✓ | | | | |
43
+ | list_deployed_catalogs | | ✓ | | | | ✓ |
44
+ | list_deployed_databases | | ✓ | | | | ✓ |
45
+ | list_deployed_schemas | | ✓ | | | | ✓ |
46
+ | list_deployed_servers | | ✓ | | | | |
47
+ | list_element_graph | | | | | ✓ | |
48
+ | list_elements | | | | | ✓ | |
49
+ | list_elements_for_classification | | | | | ✓ | |
50
+ | list_engine_activity | | | | ✓ | | |
51
+ | list_engine_activity_compressed | | | | ✓ | | ✓ |
52
+ | list_glossaries | | ✓ | | | | ✓ |
53
+ | list_gov_action_processes | | | | | ✓ | |
54
+ | list_gov_eng_status | | | | ✓ | | ✓ |
55
+ | list_integ_daemon_status | | | | ✓ | | ✓ |
56
+ | list_my_profile | | | ✓ | | | |
57
+ | list_my_roles | | | ✓ | | | |
58
+ | list_projects | | ✓ | | | | |
59
+ | list_registered_services | | | | | ✓ | |
60
+ | list_related_elements | | | | | ✓ | |
61
+ | list_related_specification | | | | | ✓ | |
62
+ | list_relationship_types | | | | | ✓ | |
63
+ | list_relationships | | ✓ | | | | |
64
+ | list_tech_templates | | | | | ✓ | |
65
+ | list_tech_types | | ✓ | | | | |
66
+ | list_terms | | ✓ | | | | ✓ |
67
+ | list_todos | | ✓ | | | | |
68
+ | list_user_ids | | ✓ | | | | |
69
+ | list_valid_metadata_values | | | | | ✓ | |
70
+ | load_archive | | | | ✓ | | |
71
+ | load_archive_tui | | | | ✓ | | |
72
+ | load_terms_from_file | | ✓ | | | | |
73
+ | mark_todo_complete | | | ✓ | | | |
74
+ | monitor_asset_events | | | | ✓ | | |
75
+ | monitor_coco_status | | | | ✓ | | |
76
+ | monitor_engine_activity | | | | ✓ | | |
77
+ | monitor_engine_activity_compressed | | | | ✓ | | |
78
+ | monitor_gov_eng_status | | | | ✓ | | |
79
+ | monitor_integ_daemon_status | | | | ✓ | | |
80
+ | monitor_my_todos | | | ✓ | | | |
81
+ | monitor_open_todos | | | ✓ | | | |
82
+ | monitor_platform_status | | | | ✓ | | |
83
+ | monitor_server_list | | | | ✓ | | |
84
+ | monitor_server_startup | | | | ✓ | | |
85
+ | monitor_server_status | | | | ✓ | | |
86
+ | reassign_todo | | | ✓ | | | |
87
+ | refresh_gov_eng_config | | | | ✓ | | |
88
+ | refresh_integration_daemon | | | | ✓ | | |
89
+ | restart_integration_daemon | | | | ✓ | | |
90
+ | start_daemon | | | | ✓ | | |
91
+ | stop_daemon | | | | ✓ | | |
92
+
@@ -68,6 +68,7 @@ def display_my_profile(
68
68
 
69
69
  profile_props = my_profiles.get("profileProperties", "---")
70
70
  name = profile_props["fullName"]
71
+
71
72
  tree = Tree(
72
73
  Panel(f"Profile of {name}", title="Personal Profile"),
73
74
  expanded=True,
@@ -93,7 +94,10 @@ def display_my_profile(
93
94
 
94
95
  id_list_md = ""
95
96
  for identities in my_profiles["userIdentities"]:
96
- id_list_md += f"* {identities['userIdentity']['properties']['userId']}\n"
97
+ id_list_md += (
98
+ f"* {identities['userIdentity']['properties']['userId']}\n"
99
+ f"* {identities['userIdentity']['elementHeader']['guid']}\n"
100
+ )
97
101
  t2 = tree.add(Panel(Markdown(id_list_md), title="Identities", expand=False))
98
102
 
99
103
  contact_methods = my_profiles["contactMethods"]
@@ -6,7 +6,7 @@ Copyright Contributors to the ODPi Egeria project.
6
6
  Unit tests for the Utils helper functions using the Pytest framework.
7
7
 
8
8
 
9
- A simple display for my profile
9
+ List the roles for a given user.
10
10
  """
11
11
  import os
12
12
  import argparse
@@ -144,8 +144,8 @@ def display_my_todos(
144
144
  if type(my_roles) is list:
145
145
  for role in my_roles:
146
146
  role_guid = role["elementHeader"]["guid"]
147
- role_title = role["properties"].get("title", "No Title")
148
- add_rows(table, role_guid, role_title)
147
+ role_id = role["properties"].get("roleId", "No Role Id")
148
+ add_rows(table, role_guid, role_id)
149
149
 
150
150
  # m_client.close_session()
151
151
  return table
@@ -14,9 +14,11 @@ import time
14
14
  import sys
15
15
  from rich import box
16
16
  from rich.live import Live
17
+ from rich.markdown import Markdown
17
18
  from rich.table import Table
18
19
  from rich.console import Console
19
20
 
21
+ from pyegeria import EgeriaTech
20
22
  from pyegeria._exceptions import (
21
23
  InvalidParameterException,
22
24
  PropertyServerException,
@@ -57,7 +59,7 @@ def display_todos(
57
59
  ):
58
60
  console = Console(width=width, force_terminal=not jupyter)
59
61
 
60
- m_client = MyProfile(server, url, user_id=user)
62
+ m_client = EgeriaTech(server, url, user_id=user)
61
63
  token = m_client.create_egeria_bearer_token(user, user_pass)
62
64
 
63
65
  def generate_table(search_string: str = "*") -> Table:
@@ -81,7 +83,7 @@ def display_todos(
81
83
  table.add_column("Due")
82
84
  table.add_column("Completion")
83
85
  table.add_column("Status")
84
- table.add_column("Sponsor")
86
+ table.add_column("Assigned Actors")
85
87
 
86
88
  todo_items = m_client.find_to_do("*", starts_with=True)
87
89
  if type(todo_items) is str:
@@ -95,7 +97,7 @@ def display_todos(
95
97
  due = " "
96
98
  completed = " "
97
99
  status = " "
98
- sponsor = " "
100
+ assigned = " "
99
101
  else:
100
102
  for item in todo_items:
101
103
  props = item["properties"]
@@ -106,9 +108,15 @@ def display_todos(
106
108
  due = props.get("dueTime", " ")
107
109
  completed = props.get("completionTime", " ")
108
110
  status = props.get("toDoStatus", "---")
109
- # assigned_actors = item["assignedActors"]
110
- # sponsor = assigned_actors[0].get("uniqueName", " ")
111
- sponsor = "erinoverview"
111
+ assigned_actors = item["assignedActors"]
112
+
113
+ assigned = ""
114
+ if type(assigned_actors) is list:
115
+ for actor in assigned_actors:
116
+ actor_guid = actor["guid"]
117
+ assigned += f"* {m_client.get_actor_for_guid(actor_guid)} "
118
+ assigned_out = Markdown(assigned)
119
+
112
120
  if status in ("WAITING", "OPEN"):
113
121
  status = f"[yellow]{status}"
114
122
  elif status in ("INPROGRESS", "COMPLETE"):
@@ -117,7 +125,14 @@ def display_todos(
117
125
  status = f"[red]{status}"
118
126
 
119
127
  table.add_row(
120
- name, type_name, created, priority, due, completed, status, sponsor
128
+ name,
129
+ type_name,
130
+ created,
131
+ priority,
132
+ due,
133
+ completed,
134
+ status,
135
+ assigned_out,
121
136
  )
122
137
 
123
138
  return table
@@ -21,9 +21,9 @@ from pyegeria._exceptions import (
21
21
  print_exception_response,
22
22
  )
23
23
 
24
- erins_guid = "a588fb08-ae09-4415-bd5d-991882ceacba"
25
- peter_guid = "a187bc48-8154-491f-97b4-a2f3c3f1a00e"
26
- tanya_guid = "26ec1614-bede-4b25-a2a3-f8ed26db3aaa"
24
+ erins_guid = "dcfd7e32-8074-4cdf-bdc5-9a6f28818a9d"
25
+ peter_guid = "59f0232c-f834-4365-8e06-83695d238d2d"
26
+ tanya_guid = "a987c2d2-c8b6-4882-b344-c47956d2de97"
27
27
 
28
28
  EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
29
29
  EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
@@ -7,6 +7,7 @@ added in subsequent versions of the glossary_omvs module.
7
7
 
8
8
  """
9
9
  import asyncio
10
+ import os
10
11
  import time
11
12
  import csv
12
13
  from datetime import datetime
@@ -1534,6 +1535,11 @@ class GlossaryManager(GlossaryBrowser):
1534
1535
  self, glossary_name: str, filename: str, upsert: bool = False
1535
1536
  ) -> List[dict]:
1536
1537
  """This method loads glossary terms into the specified glossary from the indicated file."""
1538
+ # check that the file exists
1539
+ if not os.path.exists(filename):
1540
+ raise InvalidParameterException("File not found")
1541
+ sys.exit(1)
1542
+
1537
1543
  # Check that glossary exists and get guid
1538
1544
  glossaries = self.get_glossaries_by_name(glossary_name)
1539
1545
  if type(glossaries) is not list:
@@ -1597,6 +1603,7 @@ class GlossaryManager(GlossaryBrowser):
1597
1603
 
1598
1604
  version = row.get("Version Identifier", "1.0")
1599
1605
  status = row.get("Status", "DRAFT")
1606
+ print(row)
1600
1607
  status = status.upper()
1601
1608
 
1602
1609
  # quality check the row
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "1.5.1.1.42"
3
+ version = "1.5.1.1.44"
4
4
  license = 'Apache 2.0'
5
5
  authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
6
6
  readme = "README.md"
@@ -102,6 +102,7 @@ pytest = "^8.2.2"
102
102
  stop_daemon = "pyegeria.commands.ops.engine_actions:stop_daemon"
103
103
 
104
104
  list_my_profile = "pyegeria.commands.my.list_my_profile:main"
105
+ list_my_roles = "pyegeria.commands.my.list_my_roles:main"
105
106
  monitor_open_todos = "pyegeria.commands.my.monitor_open_todos:main"
106
107
  monitor_my_todos = "pyegeria.commands.my.monitor_my_todos:main"
107
108
  create_todo = "pyegeria.commands.my.todo_actions:create_todo"
File without changes
File without changes