pyegeria 5.3.9.5__py3-none-any.whl → 5.3.9.7__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 (240) hide show
  1. {pyegeria/commands → commands}/cat/Dr-Egeria_md-orig.py +10 -11
  2. {pyegeria/commands → commands}/cat/dr_egeria_jupyter.py +4 -4
  3. {pyegeria/commands → commands}/cat/dr_egeria_md.py +36 -16
  4. {pyegeria/commands → commands}/cat/list_categories.py +3 -3
  5. {pyegeria/commands → commands}/cat/list_collections.py +59 -16
  6. commands/cat/list_data_structures.py +223 -0
  7. {pyegeria/commands → commands}/cat/list_glossaries.py +3 -3
  8. {pyegeria/commands → commands}/cat/list_terms.py +4 -4
  9. {pyegeria/commands → commands}/cli/__init__.py +1 -1
  10. {pyegeria/commands → commands}/cli/egeria.py +91 -87
  11. {pyegeria/commands → commands}/cli/egeria_cat.py +29 -29
  12. {pyegeria/commands → commands}/cli/egeria_login_tui.py +1 -1
  13. {pyegeria/commands → commands}/cli/egeria_my.py +8 -8
  14. {pyegeria/commands → commands}/cli/egeria_ops.py +24 -24
  15. {pyegeria/commands → commands}/cli/egeria_tech.py +34 -34
  16. commands/tech/generic_actions.py +74 -0
  17. {pyegeria/commands → commands}/tech/list_information_supply_chains.py +3 -1
  18. pyegeria/__init__.py +11 -9
  19. pyegeria/_client.py +2 -49
  20. pyegeria/collection_manager_omvs.py +484 -735
  21. pyegeria/data_designer_omvs.py +251 -103
  22. pyegeria/egeria_client.py +5 -0
  23. pyegeria/egeria_tech_client.py +10 -1
  24. pyegeria/glossary_browser_omvs.py +144 -260
  25. pyegeria/md_processing_helpers.py +1 -1
  26. pyegeria/md_processing_utils.py +114 -32
  27. pyegeria/md_processing_utils_orig.py +19 -19
  28. pyegeria/mermaid_utilities.py +2 -2
  29. pyegeria/output_formatter.py +389 -0
  30. {pyegeria-5.3.9.5.dist-info → pyegeria-5.3.9.7.dist-info}/METADATA +1 -1
  31. pyegeria-5.3.9.7.dist-info/RECORD +141 -0
  32. pyegeria-5.3.9.7.dist-info/entry_points.txt +99 -0
  33. pyegeria/commands/README.md +0 -47
  34. pyegeria/commands/__init__.py +0 -30
  35. pyegeria/commands/cat/dr_egeria_inbox/glossary_creation_experiment.ipynb +0 -341
  36. pyegeria/commands/doc/README.md +0 -145
  37. pyegeria/commands/doc/Visual Command Reference/README.md +0 -511
  38. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/asset-graph 2024-11-20 at 15.56.42.png +0 -0
  39. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/assets-in-domain 2024-11-20 at 15.49.55@2x.png +0 -0
  40. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/elements-of-type 2024-11-20 at 16.01.35.png +0 -0
  41. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/tech-type-elements 2024-11-20 at 16.05.05.png +0 -0
  42. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs 2024-12-17 at 15.43.27@2x.png +0 -0
  43. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs-2024-11-20 at 16.17.43@2x.png +0 -0
  44. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-11-25 at 20.14.50@2x.png +0 -0
  45. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-12-17 at 15.48.38@2x.png +0 -0
  46. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-11-25 at 20.21.25@2x.png +0 -0
  47. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-12-17 at 15.52.16@2x.png +0 -0
  48. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed_databases 2024-12-16 at 16.40.31@2x.png +0 -0
  49. pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-glossaries 2024-11-25 at 20.30.02.png +0 -0
  50. pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-terms 2024-11-25 at 20.32.11.png +0 -0
  51. pyegeria/commands/doc/Visual Command Reference/cat/show/info/asset-types 2024-11-25 at 20.34.19@2x.png +0 -0
  52. pyegeria/commands/doc/Visual Command Reference/cat/show/info/certification-types 2024-11-25 at 20.37.07.png +0 -0
  53. pyegeria/commands/doc/Visual Command Reference/cat/show/info/collection-graph 2024-12-12 at 11.33.18@2x.png +0 -0
  54. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-collections 2024-12-10 at 14.25.51@2x.png +0 -0
  55. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-todos 2024-12-12 at 11.46.30@2x.png +0 -0
  56. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-user-ids 2024-12-12 at 11.51.09@2x.png +0 -0
  57. pyegeria/commands/doc/Visual Command Reference/cat/show/info/tech-types 2024-12-12 at 11.37.20@2x.png +0 -0
  58. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_dependencies 2024-12-14 at 16.24.39@2x.png +0 -0
  59. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_structure 2024-12-14 at 16.21.35@2x.png +0 -0
  60. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/projects 2024-12-14 at 16.18.10@2x.png +0 -0
  61. pyegeria/commands/doc/Visual Command Reference/hey_egeria tui 2024-12-16 at 16.58.22@2x.png +0 -0
  62. pyegeria/commands/doc/Visual Command Reference/my/show/my_profile 2024-12-14 at 16.29.27@2x.png +0 -0
  63. pyegeria/commands/doc/Visual Command Reference/my/show/my_roles 2024-12-14 at 16.32.10@2x.png +0 -0
  64. pyegeria/commands/doc/Visual Command Reference/my/show/my_todos 2024-12-15 at 16.24.13@2x.png +0 -0
  65. pyegeria/commands/doc/Visual Command Reference/my/show/open_todos 2024-12-14 at 16.36.12@2x.png +0 -0
  66. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/list_engine_activity compressed 2024-12-15 at 16.48.48@2x.png +0 -0
  67. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity 2024-12-15 at 16.32.55@2x.png +0 -0
  68. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity compressed 2024-12-15 at 16.38.29@2x.png +0 -0
  69. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_status 2024-12-15 at 16.51.26.jpeg +0 -0
  70. pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_daemon_status 2024-12-15 at 16.57.12@2x.png +0 -0
  71. pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_targets 2024-12-15 at 17.02.19@2x.png +0 -0
  72. pyegeria/commands/doc/Visual Command Reference/ops/show/platforms/monitor_platform_status 2024-12-15 at 19.53.18@2x.png +0 -0
  73. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status 2024-12-15 at 19.59.39@2x.png +0 -0
  74. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status full 2024-12-15 at 20.01.57@2x.png +0 -0
  75. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_startup_servers 2024-12-15 at 19.56.07@2x.png +0 -0
  76. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_anchored_elements 2024-12-15 at 21.25.41@2x.png +0 -0
  77. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_elements_of_om_type 2024-12-16 at 14.39.59@2x.png +0 -0
  78. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/info_for_guid 2024-12-16 at 11.35.29@2x.png +0 -0
  79. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_by_om-type 2024-12-16 at 14.24.18@2x.png +0 -0
  80. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_by_om-type extended 2024-12-16 at 14.28.46@2x.png +0 -0
  81. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_of_om_type_by_classification 2024-12-16 at 14.35.26@2x.png +0 -0
  82. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/related_elements 2024-12-16 at 14.55.01@2x.png +0 -0
  83. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/show_related_specifications 2024-12-16 at 15.04.55@2x.png +0 -0
  84. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/asset_types 2024-12-16 at 15.10.16@2x.png +0 -0
  85. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/detailed_governance_action_processes 2024-12-16 at 15.16.26@2x.png +0 -0
  86. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/governance_action_processes 2024-12-16 at 15.13.01@2x.png +0 -0
  87. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/registered_services 2024-12-16 at 16.44.54@2x.png +0 -0
  88. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-16 at 16.20.34@2x.png +0 -0
  89. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-19 at 10.51.54@2x.png +0 -0
  90. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/valid_metadata_values 2024-12-16 at 15.31.56@2x.png +0 -0
  91. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_tech_type_template_specs 2024-12-16 at 16.03.22@2x.png +0 -0
  92. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_technology_types 2024-12-16 at 15.39.20@2x.png +0 -0
  93. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_details 2024-12-16 at 15.37.21@2x.png +0 -0
  94. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_templates 2024-12-16 at 16.11.48@2x.png +0 -0
  95. pyegeria/commands/doc/glossary/basic-glossary-tui.md +0 -109
  96. pyegeria/commands/doc/glossary/images/delete-glossary-step1 2024-11-06 at 15.47.23@2x.png +0 -0
  97. pyegeria/commands/doc/glossary/images/delete-glossary-step2 2024-11-06 at 15.51.29@2x.png +0 -0
  98. pyegeria/commands/doc/glossary/images/delete-glossary-step3 2024-11-06 at 15.53.19@2x.png +0 -0
  99. pyegeria/commands/doc/glossary/images/delete-glossary-step4 2024-11-06 at 15.55.11@2x.png +0 -0
  100. pyegeria/commands/doc/glossary/images/out-create-glossary example 2024-11-05 at 20.38.04@2x.png +0 -0
  101. pyegeria/commands/doc/glossary/images/out-create-term 2024-11-06 at 20.48.29.png +0 -0
  102. pyegeria/commands/doc/glossary/images/out-delete-term 2024-11-07 at 03.57.25.png +0 -0
  103. pyegeria/commands/doc/glossary/images/out-display-terms-for-glossary-test 2024-11-06 at 20.51.28.png +0 -0
  104. pyegeria/commands/doc/glossary/images/out-export-example 2024-11-07 at 09.54.57.png +0 -0
  105. pyegeria/commands/doc/glossary/images/out-exported-terms 2024-11-06 at 21.06.32.png +0 -0
  106. pyegeria/commands/doc/glossary/images/out-glossary-list example 2024-11-05 at 20.41.02@2x.png +0 -0
  107. pyegeria/commands/doc/glossary/images/out-import-terms 2024-11-07 at 08.15.18.png +0 -0
  108. pyegeria/commands/doc/glossary/images/out-list-all-terms 2024-11-06 at 16.22.20@2x.png +0 -0
  109. pyegeria/commands/doc/glossary/images/out-list-terms-for-example 2024-11-06 at 16.40.12.png +0 -0
  110. pyegeria/commands/doc/glossary/images/out-list-terms-second 2024-11-06 at 16.45.13.png +0 -0
  111. pyegeria/commands/doc/glossary/images/out-pipx install pyegeria 2024-11-10 at 18.12.21.png +0 -0
  112. pyegeria/commands/doc/glossary/images/out-server-status-full 2024-11-10 at 18.25.14.png +0 -0
  113. pyegeria/commands/doc/glossary/images/out-servers-status 2024-11-10 at 18.15.42.png +0 -0
  114. pyegeria/commands/doc/glossary/images/out-upsert-import 2024-11-07 at 19.37.00.png +0 -0
  115. pyegeria/commands/doc/glossary/images/tui-2024-11-10 at 18.26.29.png +0 -0
  116. pyegeria/commands/doc/glossary/images/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png +0 -0
  117. pyegeria/commands/doc/glossary/images/tui-create-term 2024-11-06 at 20.46.35.png +0 -0
  118. pyegeria/commands/doc/glossary/images/tui-delete-term 2024-11-07 at 03.51.57.png +0 -0
  119. pyegeria/commands/doc/glossary/images/tui-display-terms-for-example 2024-11-06 at 20.56.49.png +0 -0
  120. pyegeria/commands/doc/glossary/images/tui-export-example 2024-11-07 at 09.52.59.png +0 -0
  121. pyegeria/commands/doc/glossary/images/tui-hey-egeria 2024-11-10 at 18.31.01.png +0 -0
  122. pyegeria/commands/doc/glossary/images/tui-import-upsert-example 2024-11-07 at 10.08.37.png +0 -0
  123. pyegeria/commands/doc/glossary/images/tui-list-terms-second 2024-11-06 at 16.46.34.png +0 -0
  124. pyegeria/commands/doc/glossary/images/tui-load-archive.png +0 -0
  125. pyegeria/commands/doc/glossary/images/tui-server-status-full 2024-11-10 at 19.14.36.png +0 -0
  126. pyegeria/commands/doc/glossary/images/tui-show-glossaries 2024-11-07 at 20.00.05.png +0 -0
  127. pyegeria/commands/doc/glossary/images/tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png +0 -0
  128. pyegeria/commands/doc/glossary/images/tui-upsert 2024-11-07 at 11.49.04.png +0 -0
  129. pyegeria/commands/doc/glossary/images/upsert-example.om-terms 2024-11-07 at 11.44.05.png +0 -0
  130. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/README.md +0 -346
  131. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/CleanShot 2024-11-18 at 21.32.03@2x.png +0 -0
  132. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/Xmind 1731421782704.png +0 -0
  133. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/Xmind 1731422134920.png +0 -0
  134. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/hey_egeria 2024-11-12 at 20.38.43.png +0 -0
  135. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/hey_egeria cat 2024-11-12 at 21.41.43.png +0 -0
  136. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-integ-status-list 2024-11-12 at 16.45.26.png +0 -0
  137. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-integ-status-live 2024-11-12 at 16.44.12@2x.png +0 -0
  138. 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
  139. 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
  140. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/short-cut commands 2024-11-12 at 22.22.13.png +0 -0
  141. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-hey-egeria.png +0 -0
  142. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-integration-status-paging.png +0 -0
  143. 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
  144. 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
  145. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-show-server-status-full 2024-11-10.png +0 -0
  146. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-status-paging 2024-11-12 at 16.26.14@2x.png +0 -0
  147. pyegeria/dr_egeria_state.py +0 -67
  148. pyegeria/md_processing/__init__.py +0 -51
  149. pyegeria/md_processing/commands/__init__.py +0 -3
  150. pyegeria/md_processing/commands/blueprint_commands.py +0 -307
  151. pyegeria/md_processing/commands/category_commands.py +0 -242
  152. pyegeria/md_processing/commands/glossary_commands.py +0 -225
  153. pyegeria/md_processing/commands/project_commands.py +0 -169
  154. pyegeria/md_processing/commands/term_commands.py +0 -524
  155. pyegeria/md_processing/utils/__init__.py +0 -3
  156. pyegeria/md_processing/utils/common_utils.py +0 -101
  157. pyegeria/md_processing/utils/display_utils.py +0 -53
  158. pyegeria/md_processing/utils/extraction_utils.py +0 -177
  159. pyegeria/md_processing/utils/validation_utils.py +0 -208
  160. pyegeria-5.3.9.5.dist-info/RECORD +0 -265
  161. pyegeria-5.3.9.5.dist-info/entry_points.txt +0 -98
  162. {pyegeria/commands → commands}/cat/README.md +0 -0
  163. {pyegeria/commands → commands}/cat/__init__.py +0 -0
  164. {pyegeria/commands → commands}/cat/exp_list_glossaries.py +0 -0
  165. {pyegeria/commands → commands}/cat/get_asset_graph.py +0 -0
  166. {pyegeria/commands → commands}/cat/get_collection.py +0 -0
  167. {pyegeria/commands → commands}/cat/get_project_dependencies.py +0 -0
  168. {pyegeria/commands → commands}/cat/get_project_structure.py +0 -0
  169. {pyegeria/commands → commands}/cat/get_tech_type_elements.py +0 -0
  170. {pyegeria/commands → commands}/cat/glossary_actions.py +0 -0
  171. {pyegeria/commands → commands}/cat/list_assets.py +0 -0
  172. {pyegeria/commands → commands}/cat/list_cert_types.py +0 -0
  173. {pyegeria/commands → commands}/cat/list_deployed_catalogs.py +0 -0
  174. {pyegeria/commands → commands}/cat/list_deployed_database_schemas.py +0 -0
  175. {pyegeria/commands → commands}/cat/list_deployed_databases.py +0 -0
  176. {pyegeria/commands → commands}/cat/list_deployed_servers.py +0 -0
  177. {pyegeria/commands → commands}/cat/list_projects.py +0 -0
  178. {pyegeria/commands → commands}/cat/list_tech_type_elements.py +0 -0
  179. {pyegeria/commands → commands}/cat/list_tech_types.py +0 -0
  180. {pyegeria/commands → commands}/cat/list_todos.py +0 -0
  181. {pyegeria/commands → commands}/cat/list_user_ids.py +0 -0
  182. {pyegeria/commands → commands}/cli/ops_config.py +0 -0
  183. {pyegeria/commands → commands}/cli/txt_custom_v2.tcss +0 -0
  184. {pyegeria/commands → commands}/my/README.md +0 -0
  185. {pyegeria/commands → commands}/my/__init__.py +0 -0
  186. {pyegeria/commands → commands}/my/list_my_profile.py +0 -0
  187. {pyegeria/commands → commands}/my/list_my_roles.py +0 -0
  188. {pyegeria/commands → commands}/my/monitor_my_todos.py +0 -0
  189. {pyegeria/commands → commands}/my/monitor_open_todos.py +0 -0
  190. {pyegeria/commands → commands}/my/todo_actions.py +0 -0
  191. {pyegeria/commands → commands}/ops/README.md +0 -0
  192. {pyegeria/commands → commands}/ops/__init__.py +0 -0
  193. {pyegeria/commands → commands}/ops/gov_server_actions.py +0 -0
  194. {pyegeria/commands → commands}/ops/list_archives.py +0 -0
  195. {pyegeria/commands → commands}/ops/list_catalog_targets.py +0 -0
  196. {pyegeria/commands → commands}/ops/load_archive.py +0 -0
  197. {pyegeria/commands → commands}/ops/monitor_asset_events.py +0 -0
  198. {pyegeria/commands → commands}/ops/monitor_engine_activity.py +0 -0
  199. {pyegeria/commands → commands}/ops/monitor_engine_activity_c.py +0 -0
  200. {pyegeria/commands → commands}/ops/monitor_gov_eng_status.py +0 -0
  201. {pyegeria/commands → commands}/ops/monitor_integ_daemon_status.py +0 -0
  202. {pyegeria/commands → commands}/ops/monitor_platform_status.py +0 -0
  203. {pyegeria/commands → commands}/ops/monitor_server_startup.py +0 -0
  204. {pyegeria/commands → commands}/ops/monitor_server_status.py +0 -0
  205. {pyegeria/commands → commands}/ops/orig_monitor_server_list.py +0 -0
  206. {pyegeria/commands → commands}/ops/orig_monitor_server_status.py +0 -0
  207. {pyegeria/commands → commands}/ops/refresh_integration_daemon.py +0 -0
  208. {pyegeria/commands → commands}/ops/restart_integration_daemon.py +0 -0
  209. {pyegeria/commands → commands}/ops/table_integ_daemon_status.py +0 -0
  210. {pyegeria/commands → commands}/ops/x_engine_actions.py +0 -0
  211. {pyegeria/commands → commands}/tech/README.md +0 -0
  212. {pyegeria/commands → commands}/tech/__init__.py +0 -0
  213. {pyegeria/commands → commands}/tech/get_element_info.py +0 -0
  214. {pyegeria/commands → commands}/tech/get_guid_info.py +0 -0
  215. {pyegeria/commands → commands}/tech/get_tech_details.py +0 -0
  216. {pyegeria/commands → commands}/tech/get_tech_type_template.py +0 -0
  217. {pyegeria/commands → commands}/tech/list_all_om_type_elements.py +0 -0
  218. {pyegeria/commands → commands}/tech/list_all_om_type_elements_x.py +0 -0
  219. {pyegeria/commands → commands}/tech/list_all_related_elements.py +0 -0
  220. {pyegeria/commands → commands}/tech/list_anchored_elements.py +0 -0
  221. {pyegeria/commands → commands}/tech/list_asset_types.py +0 -0
  222. {pyegeria/commands → commands}/tech/list_elements_by_classification_by_property_value.py +0 -0
  223. {pyegeria/commands → commands}/tech/list_elements_by_property_value.py +0 -0
  224. {pyegeria/commands → commands}/tech/list_elements_by_property_value_x.py +0 -0
  225. {pyegeria/commands → commands}/tech/list_elements_for_classification.py +0 -0
  226. {pyegeria/commands → commands}/tech/list_gov_action_processes.py +0 -0
  227. {pyegeria/commands → commands}/tech/list_registered_services.py +0 -0
  228. {pyegeria/commands → commands}/tech/list_related_elements_with_prop_value.py +0 -0
  229. {pyegeria/commands → commands}/tech/list_related_specification.py +0 -0
  230. {pyegeria/commands → commands}/tech/list_relationship_types.py +0 -0
  231. {pyegeria/commands → commands}/tech/list_relationships.py +0 -0
  232. {pyegeria/commands → commands}/tech/list_solution_blueprints.py +0 -0
  233. {pyegeria/commands → commands}/tech/list_solution_components.py +0 -0
  234. {pyegeria/commands → commands}/tech/list_solution_roles.py +0 -0
  235. {pyegeria/commands → commands}/tech/list_tech_templates.py +0 -0
  236. {pyegeria/commands → commands}/tech/list_valid_metadata_values.py +0 -0
  237. {pyegeria/commands → commands}/tech/table_tech_templates.py +0 -0
  238. {pyegeria/commands → commands}/tech/x_list_related_elements.py +0 -0
  239. {pyegeria-5.3.9.5.dist-info → pyegeria-5.3.9.7.dist-info}/LICENSE +0 -0
  240. {pyegeria-5.3.9.5.dist-info → pyegeria-5.3.9.7.dist-info}/WHEEL +0 -0
@@ -1,225 +0,0 @@
1
- """
2
- This file contains glossary-related command functions for processing Egeria Markdown
3
- """
4
- from typing import Optional
5
-
6
- from rich.markdown import Markdown
7
-
8
- from pyegeria.egeria_tech_client import EgeriaTech
9
- from pyegeria.md_processing.utils.common_utils import (
10
- debug_level, print_msg, ALWAYS, ERROR, INFO, WARNING, pre_command, command_seperator, EXISTS_REQUIRED
11
- )
12
- from pyegeria.md_processing.utils.extraction_utils import (
13
- extract_command_plus, extract_command, process_simple_attribute
14
- )
15
- from pyegeria.md_processing.utils.validation_utils import (
16
- process_element_identifiers, update_a_command
17
- )
18
- from pyegeria.md_processing.utils.display_utils import (
19
- GLOSSARY_NAME_LABELS
20
- )
21
- from pyegeria.dr_egeria_state import update_element_dictionary
22
-
23
- def process_glossary_upsert_command(egeria_client: EgeriaTech, txt: str, directive: str = "display") -> Optional[str]:
24
- """
25
- Processes a glossary create or update command by extracting key attributes such as
26
- glossary name, language, description, and usage from the given text.
27
-
28
- :param txt: A string representing the input cell to be processed for
29
- extracting glossary-related attributes.
30
- :param directive: an optional string indicating the directive to be used - display, validate or execute
31
- :return: A string summarizing the outcome of the processing.
32
- """
33
-
34
- command, object_type, object_action = extract_command_plus(txt)
35
- from pyegeria.md_processing.utils.common_utils import set_debug_level
36
- set_debug_level(directive)
37
-
38
- glossary_name = process_simple_attribute(txt, GLOSSARY_NAME_LABELS, ERROR)
39
- print(Markdown(
40
- f"{pre_command} `{object_action}` `{object_type}` for glossary: `\'{glossary_name}\'` with directive: `"
41
- f"{directive}` "))
42
- language = process_simple_attribute(txt, ['Language'], INFO)
43
- description = process_simple_attribute(txt, ['Description'], INFO)
44
- usage = process_simple_attribute(txt, ['Usage'], INFO)
45
- q_name = process_simple_attribute(txt, ['Qualified Name'], INFO)
46
- valid = True
47
-
48
- if glossary_name is None:
49
- valid = False
50
- known_q_name = None
51
- known_guid = None
52
- glossary_exists = False
53
- else:
54
- element_labels = GLOSSARY_NAME_LABELS
55
- element_labels.append('Display Name')
56
- known_q_name, known_guid, valid, glossary_exists = process_element_identifiers(egeria_client, object_type,
57
- element_labels, txt,
58
- object_action, None)
59
- glossary_display = (f"\n* Command: `{command}`\n\t* Glossary Name: {glossary_name}\n\t"
60
- f"* Language: {language}\n\t* Description:\n{description}\n"
61
- f"* Usage: {usage}\n")
62
-
63
- if object_action == 'Update':
64
- guid = process_simple_attribute(txt, ['GUID', 'guid', 'Guid'])
65
- glossary_display += f"* Qualified Name: `{q_name}`\n\t* GUID: {guid}\n\n"
66
- if not glossary_exists:
67
- msg = f"Glossary can't be updated; `{glossary_name}` not found"
68
- print_msg("ERROR", msg, debug_level)
69
- valid = False
70
- else:
71
- msg = f"Glossary can be updated; `{glossary_name}` found"
72
- print_msg(ALWAYS, msg, debug_level)
73
-
74
-
75
- elif object_action == "Create":
76
- if glossary_exists:
77
- msg = f"Glossary `{glossary_name}` can't be created because it already exists.\n"
78
- print_msg("ERROR", msg, debug_level)
79
- valid = False
80
- elif valid:
81
- msg = f"It is valid to create Glossary `{glossary_name}` with:\n"
82
- print_msg("ALWAYS", msg, debug_level)
83
-
84
- if directive == "display":
85
- print(Markdown(glossary_display))
86
- return None
87
-
88
- elif directive == "validate":
89
- if valid:
90
- print(Markdown(glossary_display))
91
- else:
92
- msg = f"Validation failed for Glossary `{glossary_name}`\n"
93
- print_msg(ERROR, msg, debug_level)
94
- print(Markdown(glossary_display))
95
-
96
- return valid
97
-
98
- elif directive == "process":
99
- if valid:
100
- print(Markdown(glossary_display))
101
- else:
102
- if glossary_exists and object_action == "Create":
103
- msg = f"Create failed because glossary `{glossary_name}` exists - changing `Create` to `Update` in processed output \n"
104
- print_msg(ERROR, msg, debug_level)
105
- print(Markdown(glossary_display))
106
- return update_a_command(txt, command, object_type, known_q_name, known_guid)
107
- else:
108
- return None
109
- if object_action == "Update":
110
- if not glossary_exists:
111
- print(f"\n{ERROR}Glossary `{glossary_name}` does not exist! Updating result document with Create "
112
- f"command\n")
113
- return update_a_command(txt, command, object_type, known_q_name, known_guid)
114
-
115
- body = {
116
- "class": "ReferenceableRequestBody", "elementProperties": {
117
- "class": "GlossaryProperties", "qualifiedName": known_q_name, "description": description,
118
- "language": language, "usage": usage
119
- }
120
- }
121
- egeria_client.update_glossary(known_guid, body)
122
- print_msg(ALWAYS, f"Updated Glossary `{glossary_name}` with GUID {known_guid}", debug_level)
123
- update_element_dictionary(known_q_name, {
124
- 'guid': known_guid, 'display_name': glossary_name
125
- })
126
- return egeria_client.get_glossary_by_guid(known_guid, output_format='MD')
127
- elif object_action == "Create":
128
- glossary_guid = None
129
-
130
- if glossary_exists:
131
- print(f"\nGlossary `{glossary_name}` already exists and result document updated\n")
132
- return update_a_command(txt, command, object_type, known_q_name, known_guid)
133
- else:
134
- glossary_guid = egeria_client.create_glossary(glossary_name, description, language, usage)
135
- if glossary_guid:
136
- print_msg(ALWAYS, f"Created Glossary `{glossary_name}` with GUID {glossary_guid}", debug_level)
137
- return egeria_client.get_glossary_by_guid(glossary_guid, output_format='MD')
138
- else:
139
- print_msg(ERROR, f"Failed to create Glossary `{glossary_name}`", debug_level)
140
- return None
141
- else:
142
- return None
143
- else:
144
- return None
145
-
146
- def process_glossary_list_command(egeria_client: EgeriaTech, txt: str, directive: str = "display") -> Optional[str]:
147
- """
148
- Processes a glossary list command by extracting key attributes such as
149
- output format and search string from the given text.
150
-
151
- :param txt: A string representing the input cell to be processed for
152
- extracting glossary-related attributes.
153
- :param directive: an optional string indicating the directive to be used - display, validate or execute
154
- :return: A string summarizing the outcome of the processing.
155
- """
156
- from pyegeria.md_processing.utils.common_utils import set_debug_level
157
- from pyegeria.md_processing.utils.display_utils import OUTPUT_LABELS, SEARCH_LABELS, ELEMENT_OUTPUT_FORMATS
158
-
159
- command = extract_command(txt)
160
- set_debug_level(directive)
161
- print(Markdown(f"{pre_command} `{command}` with directive: `{directive}`"))
162
-
163
- output_format = process_simple_attribute(txt, OUTPUT_LABELS)
164
- output_format = output_format.upper() if output_format else "MD"
165
- if output_format not in ELEMENT_OUTPUT_FORMATS:
166
- print_msg(WARNING, f"Output format {output_format} not recognized, using MD", debug_level)
167
- output_format = "MD"
168
-
169
- search_string = process_simple_attribute(txt, SEARCH_LABELS)
170
-
171
- if directive == "display":
172
- print(Markdown(f"\n* Command: {command}\n\t* Output Format: {output_format}\n\t* Search String: {search_string}"))
173
- return None
174
- elif directive == "validate":
175
- print(Markdown(f"\n* Command: {command}\n\t* Output Format: {output_format}\n\t* Search String: {search_string}"))
176
- return True
177
- elif directive == "process":
178
- print(Markdown(f"\n* Command: {command}\n\t* Output Format: {output_format}\n\t* Search String: {search_string}"))
179
- return egeria_client.list_glossaries(output_format=output_format, search_string=search_string)
180
-
181
-
182
- def process_glossary_structure_command(egeria_client: EgeriaTech, txt: str, directive: str = "display") -> Optional[str]:
183
- """
184
- Processes a glossary structure command by extracting key attributes such as
185
- glossary name and output format from the given text.
186
-
187
- :param txt: A string representing the input cell to be processed for
188
- extracting glossary-related attributes.
189
- :param directive: an optional string indicating the directive to be used - display, validate or execute
190
- :return: A string summarizing the outcome of the processing.
191
- """
192
- from pyegeria.md_processing.utils.common_utils import set_debug_level
193
- from pyegeria.md_processing.utils.display_utils import OUTPUT_LABELS, ELEMENT_OUTPUT_FORMATS
194
-
195
- command = extract_command(txt)
196
- set_debug_level(directive)
197
- print(Markdown(f"{pre_command} `{command}` with directive: `{directive}`"))
198
-
199
- glossary_name = process_simple_attribute(txt, GLOSSARY_NAME_LABELS, ERROR)
200
- output_format = process_simple_attribute(txt, OUTPUT_LABELS)
201
- output_format = output_format.upper() if output_format else "MD"
202
- if output_format not in ELEMENT_OUTPUT_FORMATS:
203
- print_msg(WARNING, f"Output format {output_format} not recognized, using MD", debug_level)
204
- output_format = "MD"
205
-
206
- if glossary_name is None:
207
- print_msg(ERROR, "No glossary name found", debug_level)
208
- return None
209
-
210
- known_q_name, known_guid, valid, glossary_exists = process_element_identifiers(egeria_client, "Glossary",
211
- GLOSSARY_NAME_LABELS, txt,
212
- EXISTS_REQUIRED, None)
213
- if not glossary_exists:
214
- print_msg(ERROR, f"Glossary {glossary_name} not found", debug_level)
215
- return None
216
-
217
- if directive == "display":
218
- print(Markdown(f"\n* Command: {command}\n\t* Glossary Name: {glossary_name}\n\t* Output Format: {output_format}"))
219
- return None
220
- elif directive == "validate":
221
- print(Markdown(f"\n* Command: {command}\n\t* Glossary Name: {glossary_name}\n\t* Output Format: {output_format}"))
222
- return True
223
- elif directive == "process":
224
- print(Markdown(f"\n* Command: {command}\n\t* Glossary Name: {glossary_name}\n\t* Output Format: {output_format}"))
225
- return egeria_client.get_glossary_structure(known_guid, output_format=output_format)
@@ -1,169 +0,0 @@
1
- """
2
- This file contains project-related command functions for processing Egeria Markdown
3
- """
4
- from typing import Optional, Tuple
5
-
6
- from rich.markdown import Markdown
7
-
8
- from pyegeria.project_manager_omvs import ProjectManager
9
- from pyegeria.md_processing.utils.common_utils import (
10
- debug_level, print_msg, ALWAYS, ERROR, INFO, WARNING, pre_command, command_seperator, is_valid_iso_date
11
- )
12
- from pyegeria.md_processing.utils.extraction_utils import (
13
- extract_command, process_simple_attribute
14
- )
15
- from pyegeria.md_processing.utils.display_utils import (
16
- PROJECT_NAME_LABELS
17
- )
18
- from pyegeria._globals import NO_PROJECTS_FOUND
19
-
20
- def process_per_proj_upsert_command(egeria_client: ProjectManager, txt: str, directive: str = "display") -> str | None:
21
- """
22
- Processes a personal project create or update command by extracting key attributes such as
23
- glossary name, language, description, and usage from the given cell.
24
-
25
- :param txt: A string representing the input cell to be processed for
26
- extracting glossary-related attributes.
27
- :param directive: an optional string indicating the directive to be used - display, validate or execute
28
- :return: A string summarizing the outcome of the processing.
29
- """
30
- from pyegeria.md_processing.utils.common_utils import set_debug_level
31
-
32
- command = extract_command(txt)
33
- object = command.split()
34
- object_type = f"{object[1]} {object[2]}"
35
- object_action = object[0]
36
- set_debug_level(directive)
37
-
38
- project_name = process_simple_attribute(txt, ['Project Name'])
39
- description = process_simple_attribute(txt, ['Description'])
40
- project_identifier = process_simple_attribute(txt, ['Project Identifier'])
41
- project_status = process_simple_attribute(txt, ['Project Status'])
42
- project_phase = process_simple_attribute(txt, ['Project Phase'])
43
- project_health = process_simple_attribute(txt, ['Project Health'])
44
- start_date = process_simple_attribute(txt, ['Start Date'])
45
- planned_end_date = process_simple_attribute(txt, ['Planned End Date'])
46
- print(Markdown(f"{pre_command} `\'{command}\'` for project: `{project_name}` with directive: `{directive}` "))
47
-
48
- project_display = (f"\n* Command: {command}\n\t* Project: {project_name}\n\t"
49
- f"* Status: {project_status}\n\t* Description: {description}\n\t"
50
- f"* Phase: {project_phase}\n\t* Health: {project_health}\n\t"
51
- f"* Start Date: {start_date}\n\t* Planned End Date: {planned_end_date}\n")
52
-
53
- def validate_project(obj_action: str) -> tuple[bool, bool, str, str]:
54
- valid = True
55
- msg = ""
56
- known_guid = None
57
- known_q_name = None
58
-
59
- project_details = egeria_client.get_projects_by_name(project_name)
60
- if project_details == NO_PROJECTS_FOUND:
61
- project_exists = False
62
- else:
63
- project_exists = True
64
-
65
- if project_name is None:
66
- msg = f"* {ERROR}Project name is missing\n"
67
- valid = False
68
- if project_status is None:
69
- msg += f"* {INFO}No Project status found\n"
70
-
71
- if description is None:
72
- msg += f"* {INFO}No Description found\n"
73
-
74
- if project_identifier is None:
75
- msg += f"* {INFO}No Project Identifier found\n"
76
-
77
- if project_phase is None:
78
- msg += f"* {INFO}No Project Phase found\n"
79
-
80
- if project_health is None:
81
- msg += f"* {INFO}No Project Health found\n"
82
-
83
- if start_date is None:
84
- msg += f"* {INFO}No Start Date found\n"
85
- elif not is_valid_iso_date(start_date):
86
- msg += f"* {ERROR}Start Date is not a valid ISO date of form YYYY-MM-DD\n"
87
- valid = False
88
-
89
- if planned_end_date is None:
90
- msg += f"* {INFO} No Planned End Date found\n"
91
- elif not is_valid_iso_date(planned_end_date):
92
- msg += f"* {ERROR}Planned End Date is not a valid ISO date of form YYYY-MM-DD\n"
93
- valid = False
94
-
95
- if obj_action == "Update":
96
- q_name = process_simple_attribute(txt, 'Qualified Name')
97
-
98
- if not project_exists:
99
- msg += f"* {ERROR}Project {project_name} does not exist\n"
100
- valid = False
101
- if len(project_details) > 1 and project_exists:
102
- msg += f"* {ERROR}More than one project with name {project_name} found\n"
103
- valid = False
104
- if len(project_details) == 1:
105
- known_guid = project_details[0]['elementHeader'].get('guid', None)
106
- known_q_name = project_details[0]['glossaryProperties'].get('qualifiedName', None)
107
- if q_name is None:
108
- msg += f"* {INFO}Qualified Name is missing => can use known qualified name of {known_q_name}\n"
109
- valid = True
110
- elif q_name != known_q_name:
111
- msg += (f"* {ERROR}Project {project_name} qualifiedName mismatch between {q_name} and {known_q_name}\n")
112
- valid = False
113
- if valid:
114
- msg += project_display
115
- msg += f"* -->Project {project_name} exists and can be updated\n"
116
- else:
117
- msg += f"* --> validation failed\n"
118
- msg += '---'
119
- print(Markdown(msg))
120
- return valid, project_exists, known_guid, known_q_name
121
-
122
- elif obj_action == "Create":
123
- if project_exists:
124
- msg += f"\n{ERROR}Project {project_name} already exists"
125
- else:
126
- msg += f"\n-->It is valid to create Project \'{project_name}\' with:\n"
127
- print(Markdown(msg))
128
- return valid, project_exists, known_guid, known_q_name
129
-
130
- if directive == "display":
131
- print(Markdown(project_display))
132
- return None
133
- elif directive == "validate":
134
- valid, project_exists, known_guid, known_q_name = validate_project(object_action)
135
- return valid
136
- elif directive == "process":
137
- valid, project_exists, known_guid, known_q_name = validate_project(object_action)
138
- if valid:
139
- if object_action == "Create":
140
- if project_exists:
141
- print(f"\n{ERROR}Project {project_name} already exists\n")
142
- return None
143
- else:
144
- project_guid = egeria_client.create_personal_project(project_name, description, project_identifier,
145
- project_status, project_phase, project_health,
146
- start_date, planned_end_date)
147
- if project_guid:
148
- print_msg(ALWAYS, f"Created Project {project_name} with GUID {project_guid}", debug_level)
149
- return egeria_client.get_project_by_guid(project_guid, output_format='MD')
150
- else:
151
- print_msg(ERROR, f"Failed to create Project {project_name}", debug_level)
152
- return None
153
- elif object_action == "Update":
154
- if not project_exists:
155
- print(f"\n{ERROR}Project {project_name} does not exist\n")
156
- return None
157
- else:
158
- project_guid = egeria_client.update_personal_project(known_guid, project_name, description,
159
- project_identifier, project_status,
160
- project_phase, project_health, start_date,
161
- planned_end_date)
162
- if project_guid:
163
- print_msg(ALWAYS, f"Updated Project {project_name} with GUID {project_guid}", debug_level)
164
- return egeria_client.get_project_by_guid(project_guid, output_format='MD')
165
- else:
166
- print_msg(ERROR, f"Failed to update Project {project_name}", debug_level)
167
- return None
168
- else:
169
- return None