pyegeria 0.2.4__py3-none-any.whl → 5.3.0.dev3__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 (239) hide show
  1. pyegeria/README.md +35 -0
  2. pyegeria/__init__.py +345 -14
  3. pyegeria/_client.py +376 -126
  4. pyegeria/_deprecated_gov_engine.py +451 -0
  5. pyegeria/_exceptions.py +6 -6
  6. pyegeria/_globals.py +7 -1
  7. pyegeria/_validators.py +9 -6
  8. pyegeria/asset_catalog_omvs.py +807 -0
  9. pyegeria/automated_curation_omvs.py +3760 -0
  10. pyegeria/classification_manager_omvs.py +5238 -0
  11. pyegeria/collection_manager_omvs.py +2727 -0
  12. pyegeria/commands/README.md +47 -0
  13. pyegeria/commands/__init__.py +22 -0
  14. pyegeria/commands/cat/README.md +16 -0
  15. pyegeria/commands/cat/__init__.py +1 -0
  16. pyegeria/commands/cat/exp_list_glossaries.py +156 -0
  17. pyegeria/commands/cat/get_asset_graph.py +319 -0
  18. pyegeria/commands/cat/get_collection.py +148 -0
  19. pyegeria/commands/cat/get_project_dependencies.py +168 -0
  20. pyegeria/commands/cat/get_project_structure.py +168 -0
  21. pyegeria/commands/cat/get_tech_type_elements.py +174 -0
  22. pyegeria/commands/cat/glossary_actions.py +362 -0
  23. pyegeria/commands/cat/list_assets.py +176 -0
  24. pyegeria/commands/cat/list_cert_types.py +194 -0
  25. pyegeria/commands/cat/list_collections.py +162 -0
  26. pyegeria/commands/cat/list_deployed_catalogs.py +217 -0
  27. pyegeria/commands/cat/list_deployed_database_schemas.py +251 -0
  28. pyegeria/commands/cat/list_deployed_databases.py +202 -0
  29. pyegeria/commands/cat/list_glossaries.py +150 -0
  30. pyegeria/commands/cat/list_projects.py +221 -0
  31. pyegeria/commands/cat/list_servers_deployed_imp.py +158 -0
  32. pyegeria/commands/cat/list_tech_type_elements.py +190 -0
  33. pyegeria/commands/cat/list_tech_types.py +140 -0
  34. pyegeria/commands/cat/list_terms.py +242 -0
  35. pyegeria/commands/cat/list_todos.py +189 -0
  36. pyegeria/commands/cat/list_user_ids.py +145 -0
  37. pyegeria/commands/cli/__init__.py +13 -0
  38. pyegeria/commands/cli/egeria.py +1844 -0
  39. pyegeria/commands/cli/egeria_cat.py +638 -0
  40. pyegeria/commands/cli/egeria_login_tui.py +313 -0
  41. pyegeria/commands/cli/egeria_my.py +248 -0
  42. pyegeria/commands/cli/egeria_ops.py +502 -0
  43. pyegeria/commands/cli/egeria_tech.py +618 -0
  44. pyegeria/commands/cli/ops_config.py +45 -0
  45. pyegeria/commands/cli/txt_custom_v2.tcss +19 -0
  46. pyegeria/commands/doc/README.md +145 -0
  47. pyegeria/commands/doc/Visual Command Reference/README.md +511 -0
  48. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/asset-graph 2024-11-20 at 15.56.42.png +0 -0
  49. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/assets-in-domain 2024-11-20 at 15.49.55@2x.png +0 -0
  50. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/elements-of-type 2024-11-20 at 16.01.35.png +0 -0
  51. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/tech-type-elements 2024-11-20 at 16.05.05.png +0 -0
  52. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs 2024-12-17 at 15.43.27@2x.png +0 -0
  53. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs-2024-11-20 at 16.17.43@2x.png +0 -0
  54. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-11-25 at 20.14.50@2x.png +0 -0
  55. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-12-17 at 15.48.38@2x.png +0 -0
  56. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-11-25 at 20.21.25@2x.png +0 -0
  57. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-12-17 at 15.52.16@2x.png +0 -0
  58. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed_databases 2024-12-16 at 16.40.31@2x.png +0 -0
  59. pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-glossaries 2024-11-25 at 20.30.02.png +0 -0
  60. pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-terms 2024-11-25 at 20.32.11.png +0 -0
  61. pyegeria/commands/doc/Visual Command Reference/cat/show/info/asset-types 2024-11-25 at 20.34.19@2x.png +0 -0
  62. pyegeria/commands/doc/Visual Command Reference/cat/show/info/certification-types 2024-11-25 at 20.37.07.png +0 -0
  63. pyegeria/commands/doc/Visual Command Reference/cat/show/info/collection-graph 2024-12-12 at 11.33.18@2x.png +0 -0
  64. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-collections 2024-12-10 at 14.25.51@2x.png +0 -0
  65. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-todos 2024-12-12 at 11.46.30@2x.png +0 -0
  66. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-user-ids 2024-12-12 at 11.51.09@2x.png +0 -0
  67. pyegeria/commands/doc/Visual Command Reference/cat/show/info/tech-types 2024-12-12 at 11.37.20@2x.png +0 -0
  68. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_dependencies 2024-12-14 at 16.24.39@2x.png +0 -0
  69. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_structure 2024-12-14 at 16.21.35@2x.png +0 -0
  70. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/projects 2024-12-14 at 16.18.10@2x.png +0 -0
  71. pyegeria/commands/doc/Visual Command Reference/hey_egeria tui 2024-12-16 at 16.58.22@2x.png +0 -0
  72. pyegeria/commands/doc/Visual Command Reference/my/show/my_profile 2024-12-14 at 16.29.27@2x.png +0 -0
  73. pyegeria/commands/doc/Visual Command Reference/my/show/my_roles 2024-12-14 at 16.32.10@2x.png +0 -0
  74. pyegeria/commands/doc/Visual Command Reference/my/show/my_todos 2024-12-15 at 16.24.13@2x.png +0 -0
  75. pyegeria/commands/doc/Visual Command Reference/my/show/open_todos 2024-12-14 at 16.36.12@2x.png +0 -0
  76. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/list_engine_activity compressed 2024-12-15 at 16.48.48@2x.png +0 -0
  77. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity 2024-12-15 at 16.32.55@2x.png +0 -0
  78. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity compressed 2024-12-15 at 16.38.29@2x.png +0 -0
  79. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_status 2024-12-15 at 16.51.26.jpeg +0 -0
  80. pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_daemon_status 2024-12-15 at 16.57.12@2x.png +0 -0
  81. pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_targets 2024-12-15 at 17.02.19@2x.png +0 -0
  82. pyegeria/commands/doc/Visual Command Reference/ops/show/platforms/monitor_platform_status 2024-12-15 at 19.53.18@2x.png +0 -0
  83. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status 2024-12-15 at 19.59.39@2x.png +0 -0
  84. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status full 2024-12-15 at 20.01.57@2x.png +0 -0
  85. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_startup_servers 2024-12-15 at 19.56.07@2x.png +0 -0
  86. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_anchored_elements 2024-12-15 at 21.25.41@2x.png +0 -0
  87. 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
  88. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/info_for_guid 2024-12-16 at 11.35.29@2x.png +0 -0
  89. 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
  90. 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
  91. 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
  92. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/related_elements 2024-12-16 at 14.55.01@2x.png +0 -0
  93. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/show_related_specifications 2024-12-16 at 15.04.55@2x.png +0 -0
  94. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/asset_types 2024-12-16 at 15.10.16@2x.png +0 -0
  95. 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
  96. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/governance_action_processes 2024-12-16 at 15.13.01@2x.png +0 -0
  97. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/registered_services 2024-12-16 at 16.44.54@2x.png +0 -0
  98. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-16 at 16.20.34@2x.png +0 -0
  99. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-19 at 10.51.54@2x.png +0 -0
  100. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/valid_metadata_values 2024-12-16 at 15.31.56@2x.png +0 -0
  101. 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
  102. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_technology_types 2024-12-16 at 15.39.20@2x.png +0 -0
  103. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_details 2024-12-16 at 15.37.21@2x.png +0 -0
  104. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_templates 2024-12-16 at 16.11.48@2x.png +0 -0
  105. pyegeria/commands/doc/glossary/basic-glossary-tui.md +109 -0
  106. pyegeria/commands/doc/glossary/images/delete-glossary-step1 2024-11-06 at 15.47.23@2x.png +0 -0
  107. pyegeria/commands/doc/glossary/images/delete-glossary-step2 2024-11-06 at 15.51.29@2x.png +0 -0
  108. pyegeria/commands/doc/glossary/images/delete-glossary-step3 2024-11-06 at 15.53.19@2x.png +0 -0
  109. pyegeria/commands/doc/glossary/images/delete-glossary-step4 2024-11-06 at 15.55.11@2x.png +0 -0
  110. pyegeria/commands/doc/glossary/images/out-create-glossary example 2024-11-05 at 20.38.04@2x.png +0 -0
  111. pyegeria/commands/doc/glossary/images/out-create-term 2024-11-06 at 20.48.29.png +0 -0
  112. pyegeria/commands/doc/glossary/images/out-delete-term 2024-11-07 at 03.57.25.png +0 -0
  113. pyegeria/commands/doc/glossary/images/out-display-terms-for-glossary-test 2024-11-06 at 20.51.28.png +0 -0
  114. pyegeria/commands/doc/glossary/images/out-export-example 2024-11-07 at 09.54.57.png +0 -0
  115. pyegeria/commands/doc/glossary/images/out-exported-terms 2024-11-06 at 21.06.32.png +0 -0
  116. pyegeria/commands/doc/glossary/images/out-glossary-list example 2024-11-05 at 20.41.02@2x.png +0 -0
  117. pyegeria/commands/doc/glossary/images/out-import-terms 2024-11-07 at 08.15.18.png +0 -0
  118. pyegeria/commands/doc/glossary/images/out-list-all-terms 2024-11-06 at 16.22.20@2x.png +0 -0
  119. pyegeria/commands/doc/glossary/images/out-list-terms-for-example 2024-11-06 at 16.40.12.png +0 -0
  120. pyegeria/commands/doc/glossary/images/out-list-terms-second 2024-11-06 at 16.45.13.png +0 -0
  121. pyegeria/commands/doc/glossary/images/out-pipx install pyegeria 2024-11-10 at 18.12.21.png +0 -0
  122. pyegeria/commands/doc/glossary/images/out-server-status-full 2024-11-10 at 18.25.14.png +0 -0
  123. pyegeria/commands/doc/glossary/images/out-servers-status 2024-11-10 at 18.15.42.png +0 -0
  124. pyegeria/commands/doc/glossary/images/out-upsert-import 2024-11-07 at 19.37.00.png +0 -0
  125. pyegeria/commands/doc/glossary/images/tui-2024-11-10 at 18.26.29.png +0 -0
  126. pyegeria/commands/doc/glossary/images/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png +0 -0
  127. pyegeria/commands/doc/glossary/images/tui-create-term 2024-11-06 at 20.46.35.png +0 -0
  128. pyegeria/commands/doc/glossary/images/tui-delete-term 2024-11-07 at 03.51.57.png +0 -0
  129. pyegeria/commands/doc/glossary/images/tui-display-terms-for-example 2024-11-06 at 20.56.49.png +0 -0
  130. pyegeria/commands/doc/glossary/images/tui-export-example 2024-11-07 at 09.52.59.png +0 -0
  131. pyegeria/commands/doc/glossary/images/tui-hey-egeria 2024-11-10 at 18.31.01.png +0 -0
  132. pyegeria/commands/doc/glossary/images/tui-import-upsert-example 2024-11-07 at 10.08.37.png +0 -0
  133. pyegeria/commands/doc/glossary/images/tui-list-terms-second 2024-11-06 at 16.46.34.png +0 -0
  134. pyegeria/commands/doc/glossary/images/tui-load-archive.png +0 -0
  135. pyegeria/commands/doc/glossary/images/tui-server-status-full 2024-11-10 at 19.14.36.png +0 -0
  136. pyegeria/commands/doc/glossary/images/tui-show-glossaries 2024-11-07 at 20.00.05.png +0 -0
  137. pyegeria/commands/doc/glossary/images/tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png +0 -0
  138. pyegeria/commands/doc/glossary/images/tui-upsert 2024-11-07 at 11.49.04.png +0 -0
  139. pyegeria/commands/doc/glossary/images/upsert-example.om-terms 2024-11-07 at 11.44.05.png +0 -0
  140. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/README.md +346 -0
  141. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/CleanShot 2024-11-18 at 21.32.03@2x.png +0 -0
  142. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/Xmind 1731421782704.png +0 -0
  143. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/Xmind 1731422134920.png +0 -0
  144. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/hey_egeria 2024-11-12 at 20.38.43.png +0 -0
  145. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/hey_egeria cat 2024-11-12 at 21.41.43.png +0 -0
  146. 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
  147. 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
  148. 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
  149. 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
  150. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/short-cut commands 2024-11-12 at 22.22.13.png +0 -0
  151. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-hey-egeria.png +0 -0
  152. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-integration-status-paging.png +0 -0
  153. 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
  154. 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
  155. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-show-server-status-full 2024-11-10.png +0 -0
  156. 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
  157. pyegeria/commands/my/README.md +17 -0
  158. pyegeria/commands/my/__init__.py +0 -0
  159. pyegeria/commands/my/list_my_profile.py +163 -0
  160. pyegeria/commands/my/list_my_roles.py +151 -0
  161. pyegeria/commands/my/monitor_my_todos.py +205 -0
  162. pyegeria/commands/my/monitor_open_todos.py +175 -0
  163. pyegeria/commands/my/todo_actions.py +242 -0
  164. pyegeria/commands/ops/README.md +24 -0
  165. pyegeria/commands/ops/__init__.py +22 -0
  166. pyegeria/commands/ops/gov_server_actions.py +177 -0
  167. pyegeria/commands/ops/list_archives.py +161 -0
  168. pyegeria/commands/ops/list_catalog_targets.py +203 -0
  169. pyegeria/commands/ops/load_archive.py +75 -0
  170. pyegeria/commands/ops/monitor_asset_events.py +107 -0
  171. pyegeria/commands/ops/monitor_engine_activity.py +270 -0
  172. pyegeria/commands/ops/monitor_engine_activity_c.py +286 -0
  173. pyegeria/commands/ops/monitor_gov_eng_status.py +288 -0
  174. pyegeria/commands/ops/monitor_integ_daemon_status.py +321 -0
  175. pyegeria/commands/ops/monitor_platform_status.py +188 -0
  176. pyegeria/commands/ops/monitor_server_startup.py +117 -0
  177. pyegeria/commands/ops/monitor_server_status.py +182 -0
  178. pyegeria/commands/ops/orig_monitor_server_list.py +140 -0
  179. pyegeria/commands/ops/orig_monitor_server_status.py +124 -0
  180. pyegeria/commands/ops/refresh_integration_daemon.py +83 -0
  181. pyegeria/commands/ops/restart_integration_daemon.py +82 -0
  182. pyegeria/commands/ops/table_integ_daemon_status.py +237 -0
  183. pyegeria/commands/ops/x_engine_actions.py +76 -0
  184. pyegeria/commands/tech/README.md +24 -0
  185. pyegeria/commands/tech/__init__.py +0 -0
  186. pyegeria/commands/tech/get_element_info.py +144 -0
  187. pyegeria/commands/tech/get_guid_info.py +134 -0
  188. pyegeria/commands/tech/get_tech_details.py +173 -0
  189. pyegeria/commands/tech/get_tech_type_template.py +166 -0
  190. pyegeria/commands/tech/list_anchored_elements.py +205 -0
  191. pyegeria/commands/tech/list_asset_types.py +123 -0
  192. pyegeria/commands/tech/list_elements.py +168 -0
  193. pyegeria/commands/tech/list_elements_for_classification.py +171 -0
  194. pyegeria/commands/tech/list_elements_x.py +191 -0
  195. pyegeria/commands/tech/list_gov_action_processes.py +139 -0
  196. pyegeria/commands/tech/list_registered_services.py +180 -0
  197. pyegeria/commands/tech/list_related_elements.py +207 -0
  198. pyegeria/commands/tech/list_related_specification.py +169 -0
  199. pyegeria/commands/tech/list_relationship_types.py +164 -0
  200. pyegeria/commands/tech/list_relationships.py +179 -0
  201. pyegeria/commands/tech/list_tech_templates.py +360 -0
  202. pyegeria/commands/tech/list_valid_metadata_values.py +178 -0
  203. pyegeria/commands/tech/table_tech_templates.py +238 -0
  204. pyegeria/commands/tech/x_list_related_elements.py +165 -0
  205. pyegeria/core_omag_server_config.py +550 -313
  206. pyegeria/create_tech_guid_lists.py +105 -0
  207. pyegeria/egeria_cat_client.py +78 -0
  208. pyegeria/egeria_client.py +117 -0
  209. pyegeria/egeria_config_client.py +45 -0
  210. pyegeria/egeria_my_client.py +56 -0
  211. pyegeria/egeria_tech_client.py +93 -0
  212. pyegeria/feedback_manager_omvs.py +4573 -0
  213. pyegeria/full_omag_server_config.py +1337 -0
  214. pyegeria/glossary_browser_omvs.py +2507 -0
  215. pyegeria/glossary_manager_omvs.py +3597 -0
  216. pyegeria/mermaid_utilities.py +218 -0
  217. pyegeria/metadata_explorer_omvs.py +2371 -0
  218. pyegeria/my_profile_omvs.py +1021 -0
  219. pyegeria/platform_services.py +259 -218
  220. pyegeria/project_manager_omvs.py +1854 -0
  221. pyegeria/registered_info.py +111 -108
  222. pyegeria/runtime_manager_omvs.py +2299 -0
  223. pyegeria/server_operations.py +178 -71
  224. pyegeria/template_manager_omvs.py +1414 -0
  225. pyegeria/utils.py +75 -85
  226. pyegeria/valid_metadata_omvs.py +1911 -0
  227. pyegeria/x_action_author_omvs.py +200 -0
  228. pyegeria-5.3.0.dev3.dist-info/METADATA +70 -0
  229. pyegeria-5.3.0.dev3.dist-info/RECORD +232 -0
  230. {pyegeria-0.2.4.dist-info → pyegeria-5.3.0.dev3.dist-info}/WHEEL +1 -1
  231. pyegeria-5.3.0.dev3.dist-info/entry_points.txt +81 -0
  232. pyegeria/config.toml +0 -11
  233. pyegeria/curation_omvs.py +0 -458
  234. pyegeria/exceptions.py +0 -382
  235. pyegeria/glossary_omvs.py +0 -639
  236. pyegeria/gov_engine.py +0 -573
  237. pyegeria-0.2.4.dist-info/METADATA +0 -57
  238. pyegeria-0.2.4.dist-info/RECORD +0 -19
  239. {pyegeria-0.2.4.dist-info/licenses → pyegeria-5.3.0.dev3.dist-info}/LICENSE +0 -0
@@ -0,0 +1,140 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ SPDX-License-Identifier: Apache-2.0
4
+ Copyright Contributors to the ODPi Egeria project.
5
+
6
+ Unit tests for the Utils helper functions using the Pytest framework.
7
+
8
+
9
+ A simple display for my profile
10
+ """
11
+ import os
12
+ import argparse
13
+ import sys
14
+ import time
15
+
16
+ from rich import box
17
+ from rich.console import Console
18
+ from rich.prompt import Prompt
19
+ from rich.table import Table
20
+
21
+ from pyegeria import (
22
+ InvalidParameterException,
23
+ PropertyServerException,
24
+ UserNotAuthorizedException,
25
+ print_exception_response,
26
+ AutomatedCuration,
27
+ )
28
+
29
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
30
+ EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
31
+ EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
32
+ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
33
+ EGERIA_VIEW_SERVER_URL = os.environ.get(
34
+ "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
35
+ )
36
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
37
+ EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
38
+ EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
39
+ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
40
+ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
41
+ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
42
+ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
43
+
44
+
45
+ disable_ssl_warnings = True
46
+
47
+
48
+ def display_tech_types(
49
+ search_string: str,
50
+ server: str,
51
+ url: str,
52
+ username: str,
53
+ user_pass: str,
54
+ jupyter: bool = EGERIA_JUPYTER,
55
+ width: int = EGERIA_WIDTH,
56
+ ):
57
+ a_client = AutomatedCuration(server, url, username)
58
+ token = a_client.create_egeria_bearer_token(username, user_pass)
59
+ tech_list = a_client.find_technology_types(search_string, page_size=0)
60
+
61
+ def generate_table() -> Table:
62
+ """Make a new table."""
63
+ table = Table(
64
+ title=f"Technology Types for: {url} @ {time.asctime()}",
65
+ style="bold white on black",
66
+ row_styles=["bold white on black"],
67
+ header_style="white on dark_blue",
68
+ title_style="bold white on black",
69
+ caption_style="white on black",
70
+ show_lines=True,
71
+ box=box.ROUNDED,
72
+ caption=f"Technology Types from Server '{server}' @ Platform - {url}",
73
+ expand=True,
74
+ )
75
+
76
+ table.add_column("Name")
77
+ table.add_column("Qualified Name")
78
+ table.add_column("Category")
79
+ table.add_column("Description")
80
+
81
+ name = " "
82
+ description = " "
83
+ version = " "
84
+ super_type = " "
85
+ if type(tech_list) is list:
86
+ for item in tech_list:
87
+ if "deployedImplementationType" not in item["qualifiedName"]:
88
+ continue
89
+ qualified_name = item.get("qualifiedName", " ")
90
+ name = item.get("name", "none")
91
+ category = item.get("category", "none")
92
+ description = item.get("description", "none")
93
+
94
+ table.add_row(name, qualified_name, category, description)
95
+ return table
96
+ else:
97
+ print("Unknown technology type")
98
+ sys.exit(1)
99
+
100
+ try:
101
+ console = Console(width=width, force_terminal=not jupyter)
102
+ with console.pager(styles=True):
103
+ console.print(generate_table())
104
+
105
+ except (
106
+ InvalidParameterException,
107
+ PropertyServerException,
108
+ UserNotAuthorizedException,
109
+ ) as e:
110
+ print_exception_response(e)
111
+ assert e.related_http_code != "200", "Invalid parameters"
112
+ finally:
113
+ a_client.close_session()
114
+
115
+
116
+ def main():
117
+ parser = argparse.ArgumentParser()
118
+ parser.add_argument("--server", help="Name of the server to display status for")
119
+ parser.add_argument("--url", help="URL Platform to connect to")
120
+ parser.add_argument("--userid", help="User Id")
121
+ parser.add_argument("--password", help="User Password")
122
+
123
+ args = parser.parse_args()
124
+
125
+ server = args.server if args.server is not None else EGERIA_VIEW_SERVER
126
+ url = args.url if args.url is not None else EGERIA_PLATFORM_URL
127
+ userid = args.userid if args.userid is not None else EGERIA_USER
128
+ user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
129
+
130
+ try:
131
+ search_string = Prompt.ask(
132
+ "Enter the technology you are searching for:", default="*"
133
+ )
134
+ display_tech_types(search_string, server, url, userid, user_pass)
135
+ except KeyboardInterrupt:
136
+ pass
137
+
138
+
139
+ if __name__ == "__main__":
140
+ main()
@@ -0,0 +1,242 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ SPDX-License-Identifier: Apache-2.0
4
+ Copyright Contributors to the ODPi Egeria project.
5
+
6
+ Unit tests for the Utils helper functions using the Pytest framework.
7
+
8
+
9
+ A simple display for glossary terms
10
+ """
11
+ import argparse
12
+ import os
13
+ import sys
14
+ import time
15
+
16
+ from rich import box
17
+ from rich.console import Console
18
+ from rich.prompt import Prompt
19
+ from rich.table import Table
20
+ from rich.text import Text
21
+
22
+ from pyegeria import (
23
+ InvalidParameterException,
24
+ PropertyServerException,
25
+ UserNotAuthorizedException,
26
+ EgeriaTech,
27
+ )
28
+ from pyegeria.commands.cat.glossary_actions import EGERIA_HOME_GLOSSARY_GUID
29
+
30
+ disable_ssl_warnings = True
31
+
32
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
33
+ EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
34
+ EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
35
+ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
36
+ EGERIA_VIEW_SERVER_URL = os.environ.get(
37
+ "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
38
+ )
39
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
40
+ EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
41
+ EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
42
+ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
43
+ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
44
+ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
45
+ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
46
+ EGERIA_HOME_GLOSSARY_GUID = os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None)
47
+
48
+
49
+ def display_glossary_terms(
50
+ search_string: str = "*",
51
+ glossary_guid: str = EGERIA_HOME_GLOSSARY_GUID,
52
+ glossary_name: str = None,
53
+ view_server: str = EGERIA_VIEW_SERVER,
54
+ view_url: str = EGERIA_VIEW_SERVER_URL,
55
+ user_id: str = EGERIA_USER,
56
+ user_pass: str = EGERIA_USER_PASSWORD,
57
+ jupyter: bool = EGERIA_JUPYTER,
58
+ width: int = EGERIA_WIDTH,
59
+ ):
60
+ """Display a table of glossary terms filtered by search_string and glossary, if specified. If no
61
+ filters then all terms are displayed. If glossary_guid or name is specified, then only terms from that
62
+ glossary are displayed.
63
+ Parameters
64
+ ----------
65
+ search_string : str, optional
66
+ The string to search for terms. Defaults to "*".
67
+ glossary_guid : str, optional
68
+ The unique identifier of the glossary. Defaults to None. If specified, then only terms from that glossary
69
+ are displayed. If both glossary_guid and glossary_name are provided then glossary_guid will take precedence.
70
+ glossary_name : str, optional
71
+ The display name of the glossary. Defaults to None. If specified, then only terms from that glossary
72
+ are displayed. If both glossary_guid and glossary_name are provided then glossary_guid will take precedence.
73
+ Note that the use of glossary display name relies on the qualified name conforming to convention. GUID is more
74
+ reliable.
75
+ view_server : str
76
+ The server where the glossary is hosted. Defaults to EGERIA_VIEW_SERVER.
77
+ view_url : str
78
+ The URL of the server where the glossary is hosted. Defaults to EGERIA_VIEW_SERVER_URL.
79
+ user_id : str
80
+ The user ID for authentication. Defaults to EGERIA_USER.
81
+ user_pass : str
82
+ The user password for authentication. Defaults to EGERIA_USER_PASSWORD.
83
+ jupyter : bool
84
+ Flag to indicate if the output should be formatted for Jupyter notebook. Defaults to EGERIA_JUPYTER.
85
+ width : int
86
+ The width of the console output. Defaults to EGERIA_WIDTH.
87
+ """
88
+
89
+ console = Console(
90
+ style="bold bright_white on black", width=width, force_terminal=not jupyter
91
+ )
92
+ g_client = EgeriaTech(view_server, view_url, user_id, user_pass)
93
+ token = g_client.create_egeria_bearer_token()
94
+ if (glossary_name is not None) and (glossary_name != "*"):
95
+ glossary_guid = g_client.get_guid_for_name(glossary_name)
96
+ if glossary_guid == "No elements found":
97
+ console.print(
98
+ f"\nThe glossary name {glossary_name} was not found. Please try using the glossary guid"
99
+ )
100
+ sys.exit(0)
101
+
102
+ def generate_table(search_string: str, glossary_guid: str = None) -> Table:
103
+ """Make a new table."""
104
+ table = Table(
105
+ title=f"Glossary Definitions for Terms like {search_string} @ {time.asctime()}",
106
+ style="bright_white on black",
107
+ # row_styles="bright_white on black",
108
+ header_style="bright_white on dark_blue",
109
+ title_style="bold white on black",
110
+ caption_style="white on black",
111
+ show_lines=True,
112
+ box=box.ROUNDED,
113
+ caption=f"View Server '{view_server}' @ Platform - {view_url}",
114
+ expand=True,
115
+ )
116
+ table.add_column("Term Name")
117
+ table.add_column("Qualified Name / GUID", width=38, no_wrap=True)
118
+ table.add_column("Abbreviation")
119
+ table.add_column("Summary")
120
+ table.add_column("Description")
121
+ table.add_column("Version Id")
122
+ table.add_column("Glossary")
123
+ table.add_column("Status")
124
+ table.add_column("Example")
125
+
126
+ terms = g_client.find_glossary_terms(
127
+ search_string,
128
+ glossary_guid,
129
+ starts_with=False,
130
+ ends_with=False,
131
+ status_filter=[],
132
+ page_size=500,
133
+ )
134
+
135
+ if type(terms) is str:
136
+ print(f"No terms found!")
137
+ sys.exit(0)
138
+ sorted_terms = sorted(
139
+ terms, key=lambda k: k["glossaryTermProperties"]["displayName"]
140
+ )
141
+ style = "bright_white on black"
142
+ if type(terms) is str:
143
+ return table
144
+ glossary_info = {}
145
+ for term in sorted_terms:
146
+ props = term.get("glossaryTermProperties", "None")
147
+ if props == "None":
148
+ return table
149
+
150
+ display_name = Text(props["displayName"], style=style, justify="center")
151
+ qualified_name = props["qualifiedName"]
152
+ term_guid = term["elementHeader"]["guid"]
153
+ q_name = Text(
154
+ f"{qualified_name}\n&\n{term_guid}", style=style, justify="center"
155
+ )
156
+ abbrev = Text(props.get("abbreviation", " "), style=style, justify="center")
157
+ summary = Text(props.get("summary", " "), style=style)
158
+ description = Text(props.get("description", " "), style=style)
159
+ version = Text(
160
+ props.get("publishVersionIdentifier", " "),
161
+ style=style,
162
+ justify="center",
163
+ )
164
+ example = Text(props.get("example", " "), style=style)
165
+
166
+ classifications = term["elementHeader"]["classifications"]
167
+ glossary_guid = None
168
+ for c in classifications:
169
+ if c["classificationName"] == "Anchors":
170
+ glossary_guid = c["classificationProperties"]["anchorGUID"]
171
+
172
+ if glossary_guid and glossary_guid in glossary_info:
173
+ glossary_name = glossary_info[glossary_guid]
174
+ elif glossary_guid:
175
+ g = g_client.get_glossary_for_term(term_guid)
176
+ glossary_name = g["glossaryProperties"].get("displayName", "---")
177
+ glossary_info[glossary_guid] = glossary_name
178
+ else:
179
+ glossary_name = "---"
180
+
181
+ term_status = term["elementHeader"]["status"]
182
+ table.add_row(
183
+ display_name,
184
+ q_name,
185
+ abbrev,
186
+ summary,
187
+ description,
188
+ version,
189
+ glossary_name,
190
+ term_status,
191
+ example,
192
+ style="bold white on black",
193
+ )
194
+
195
+ g_client.close_session()
196
+ return table
197
+
198
+ try:
199
+ with console.pager(styles=True):
200
+ console.print(generate_table(search_string, glossary_guid))
201
+
202
+ except (
203
+ InvalidParameterException,
204
+ PropertyServerException,
205
+ UserNotAuthorizedException,
206
+ ) as e:
207
+ console.print_exception()
208
+
209
+
210
+ def main():
211
+ sus_guid = "f9b78b26-6025-43fa-9299-a905cc6d1575"
212
+ parser = argparse.ArgumentParser()
213
+ parser.add_argument("--server", help="Name of the server to display status for")
214
+ parser.add_argument("--url", help="URL Platform to connect to")
215
+ parser.add_argument("--userid", help="User Id")
216
+ parser.add_argument("--password", help="User Password")
217
+ parser.add_argument("--guid", help="GUID of glossary to search")
218
+
219
+ args = parser.parse_args()
220
+
221
+ server = args.server if args.server is not None else EGERIA_VIEW_SERVER
222
+ url = args.url if args.url is not None else EGERIA_PLATFORM_URL
223
+ userid = args.userid if args.userid is not None else EGERIA_USER
224
+ user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
225
+ guid = args.guid if args.guid is not None else EGERIA_HOME_GLOSSARY_GUID
226
+
227
+ try:
228
+ search_string = Prompt.ask("Enter the term you are searching for:", default="*")
229
+ glossary_name = Prompt.ask(
230
+ "Enter the name of the glossary to search or '*' for all glossaries:",
231
+ default="*",
232
+ )
233
+ display_glossary_terms(
234
+ search_string, guid, glossary_name, server, url, userid, user_pass
235
+ )
236
+
237
+ except KeyboardInterrupt:
238
+ pass
239
+
240
+
241
+ if __name__ == "__main__":
242
+ main()
@@ -0,0 +1,189 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ SPDX-Lic
4
+ ense-Identifier: Apache-2.0
5
+ Copyright Contributors to the ODPi Egeria project.
6
+
7
+ Unit tests for the Utils helper functions using the Pytest framework.
8
+
9
+
10
+ A simple display for glossary terms
11
+ """
12
+ import os
13
+ import argparse
14
+ import time
15
+
16
+ from rich import box
17
+ from rich.console import Console
18
+ from rich.markdown import Markdown
19
+ from rich.prompt import Prompt
20
+ from rich.table import Table
21
+
22
+ from pyegeria import (
23
+ InvalidParameterException,
24
+ PropertyServerException,
25
+ UserNotAuthorizedException,
26
+ print_exception_response,
27
+ )
28
+ from pyegeria.my_profile_omvs import MyProfile
29
+
30
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
31
+ EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
32
+ EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
33
+ EGERIA_VIEW_SERVER = os.environ.get("VIEW_SERVER", "view-server")
34
+ EGERIA_VIEW_SERVER_URL = os.environ.get(
35
+ "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
36
+ )
37
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-daemon")
38
+ EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
39
+ "EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
40
+ )
41
+ EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
42
+ EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
43
+ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
44
+ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
45
+ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
46
+ EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
47
+
48
+
49
+ def display_to_dos(
50
+ search_string: str,
51
+ status_filter: str,
52
+ server: str,
53
+ url: str,
54
+ username: str,
55
+ user_pass: str,
56
+ jupyter: bool = EGERIA_JUPYTER,
57
+ width: int = EGERIA_WIDTH,
58
+ ):
59
+ m_client = MyProfile(server, url, user_id=username)
60
+ token = m_client.create_egeria_bearer_token(username, user_pass)
61
+
62
+ def generate_table(search_string: str = "*") -> Table:
63
+ """Make a new table."""
64
+ table = Table(
65
+ title=f"Open ToDos for Platform {url} @ {time.asctime()}",
66
+ # style = "black on grey66",
67
+ header_style="white on dark_blue",
68
+ show_lines=True,
69
+ box=box.ROUNDED,
70
+ caption=f"ToDos for Server '{server}' @ Platform - {url}",
71
+ expand=True,
72
+ )
73
+
74
+ table.add_column("Name")
75
+ table.add_column("Type Name")
76
+ table.add_column("GUID", no_wrap=True)
77
+ table.add_column("Created")
78
+ table.add_column("Priority")
79
+ table.add_column("Due")
80
+ table.add_column("Completion")
81
+ table.add_column("Status")
82
+ table.add_column("Sponsor")
83
+ table.add_column("Assigned")
84
+
85
+ todo_items = m_client.find_to_do(search_string, status=status_filter)
86
+
87
+ if type(todo_items) is str:
88
+ name = " "
89
+ type_name = " "
90
+ created = " "
91
+ priority = " "
92
+ due = " "
93
+ completed = " "
94
+
95
+ status = " "
96
+ sponsor = " "
97
+ assigned_out = ""
98
+ else:
99
+ for item in todo_items:
100
+ guid = item["elementHeader"]["guid"]
101
+ props = item["properties"]
102
+ name = props["name"]
103
+ type_name = props.get("toDoType", " ")
104
+ created = props.get("creationTime", " ")[:-19]
105
+ priority = str(props.get("priority", " "))
106
+ due = props.get("dueTime", " ")[:-19]
107
+ completed = props.get("completionTime", " ")[:-10]
108
+ status = props.get("toDoStatus", "---")
109
+
110
+ assigned_out = ""
111
+ assigned_actors = item.get("assignedActors", "---")
112
+ if type(assigned_actors) is list:
113
+ assigned_md = ""
114
+ for actor in assigned_actors:
115
+ assigned_md += f"* {actor['uniqueName'].split(',')[0]}\n"
116
+ assigned_out = Markdown(assigned_md)
117
+
118
+ sponsor = "erinoverview"
119
+ if status in ("WAITING", "OPEN"):
120
+ status = f"[yellow]{status}"
121
+ elif status in ("IN_PROGRESS", "COMPLETE"):
122
+ status = f"[green]{status}"
123
+ else:
124
+ status = f"[red]{status}"
125
+
126
+ table.add_row(
127
+ name,
128
+ type_name,
129
+ guid,
130
+ created,
131
+ priority,
132
+ due,
133
+ completed,
134
+ status,
135
+ sponsor,
136
+ assigned_out,
137
+ )
138
+
139
+ m_client.close_session()
140
+ return table
141
+
142
+ try:
143
+ # with Live(generate_table(), refresh_per_second=4, screen=True) as live:
144
+ # while True:
145
+ # time.sleep(2)
146
+ # live.update(generate_table())
147
+ console = Console(width=width, force_terminal=not jupyter)
148
+ with console.pager():
149
+ console.print(generate_table(search_string))
150
+
151
+ except (
152
+ InvalidParameterException,
153
+ PropertyServerException,
154
+ UserNotAuthorizedException,
155
+ ) as e:
156
+ print_exception_response(e)
157
+ except KeyboardInterrupt:
158
+ pass
159
+ finally:
160
+ m_client.close_session()
161
+
162
+
163
+ def main():
164
+ parser = argparse.ArgumentParser()
165
+ parser.add_argument("--server", help="Name of the server to display status for")
166
+ parser.add_argument("--url", help="URL Platform to connect to")
167
+ parser.add_argument("--userid", help="User Id")
168
+ parser.add_argument("--password", help="User Password")
169
+ # parser.add_argument("--sponsor", help="Name of sponsor to search")
170
+ args = parser.parse_args()
171
+
172
+ server = args.server if args.server is not None else EGERIA_VIEW_SERVER
173
+ url = args.url if args.url is not None else EGERIA_PLATFORM_URL
174
+ userid = args.userid if args.userid is not None else EGERIA_USER
175
+ user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
176
+ try:
177
+ search_string = Prompt.ask("Enter the ToDo you are searching for", default="*")
178
+ status_filter = Prompt.ask(
179
+ "Enter an optional status filter ['OPEN','IN_PROGRESS','WAITING','COMPLETE',"
180
+ "'ABANDONED', 'None']",
181
+ default=None,
182
+ )
183
+ display_to_dos(search_string, status_filter, server, url, userid, user_pass)
184
+ except KeyboardInterrupt:
185
+ pass
186
+
187
+
188
+ if __name__ == "__main__":
189
+ main()