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,502 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ SPDX-License-Identifier: Apache-2.0
4
+ Copyright Contributors to the ODPi Egeria project.
5
+
6
+
7
+ A command line interface for Egeria operations.
8
+
9
+ This is an emerging capability based on the **click** package. Feedback welcome!
10
+
11
+ """
12
+ import os
13
+
14
+ import click
15
+ from trogon import tui
16
+
17
+ # from pyegeria import ServerOps
18
+ from pyegeria.commands.cli.ops_config import Config
19
+
20
+ from pyegeria.commands.ops.gov_server_actions import (
21
+ add_catalog_target,
22
+ remove_catalog_target,
23
+ update_catalog_target,
24
+ refresh_gov_eng_config,
25
+ start_server,
26
+ stop_server,
27
+ )
28
+ from pyegeria.commands.ops.list_catalog_targets import display_catalog_targets
29
+ from pyegeria.commands.ops.load_archive import load_archive
30
+ from pyegeria.commands.ops.monitor_engine_activity import display_engine_activity
31
+ from pyegeria.commands.ops.monitor_engine_activity_c import display_engine_activity_c
32
+ from pyegeria.commands.ops.monitor_gov_eng_status import display_gov_eng_status
33
+ from pyegeria.commands.ops.monitor_integ_daemon_status import (
34
+ display_integration_daemon_status,
35
+ )
36
+ from pyegeria.commands.ops.monitor_platform_status import (
37
+ display_status as p_display_status,
38
+ )
39
+ from pyegeria.commands.ops.monitor_server_status import (
40
+ display_status as s_display_status,
41
+ )
42
+ from pyegeria.commands.ops.refresh_integration_daemon import refresh_connector
43
+ from pyegeria.commands.ops.restart_integration_daemon import restart_connector
44
+ from pyegeria.commands.ops.monitor_server_startup import display_startup_status
45
+ from pyegeria.commands.ops.list_archives import display_archive_list
46
+
47
+
48
+ # class Config(object):
49
+ # def __init__(self, server: str = None, url: str = None, userid:str = None, password:str = None,
50
+ # timeout:int = 30, paging: bool = False):
51
+ # self.server = server
52
+ # self.url = url
53
+ # self.userid = userid
54
+ # self.password = password
55
+ # self.timeout = timeout
56
+ # self.paging = paging
57
+ #
58
+ #
59
+ # pass_config = click.make_pass_decorator(Config)
60
+
61
+
62
+ @tui()
63
+ # @tui('menu', 'menu', 'A textual command line interface')
64
+ @click.version_option("0.0.1", prog_name="egeria_ops")
65
+ @click.group()
66
+ @click.option(
67
+ "--server",
68
+ default=os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store"),
69
+ help="Egeria metadata store to work with",
70
+ )
71
+ @click.option(
72
+ "--url",
73
+ default=os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443"),
74
+ help="URL of Egeria metadata store platform to connect to",
75
+ )
76
+ @click.option(
77
+ "--integration_daemon",
78
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
79
+ help="Egeria integration daemon to work with",
80
+ )
81
+ @click.option(
82
+ "--integration_daemon_url",
83
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"),
84
+ help="URL of Egeria integration daemon platform to connect to",
85
+ )
86
+ @click.option(
87
+ "--view_server",
88
+ default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
89
+ help="Egeria view server to work with",
90
+ )
91
+ @click.option(
92
+ "--view_server_url",
93
+ default=os.environ.get("EGERIA_VIEW_SERVER_URL", "https://localhost:9443"),
94
+ help="URL of Egeria view server platform to connect to",
95
+ )
96
+ @click.option(
97
+ "--engine_host",
98
+ default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
99
+ help="Egeria engine host to work with",
100
+ )
101
+ @click.option(
102
+ "--engine_host_url",
103
+ default=os.environ.get("EGERIA_ENGINE_HOST_URL", "https://localhost:9443"),
104
+ help="URL of Egeria engine host platform to connect to",
105
+ )
106
+ @click.option(
107
+ "--admin_user",
108
+ default=os.environ.get("EGERIA_ADMIN_USER", "garygeeke"),
109
+ help="Egeria admin user",
110
+ )
111
+ @click.option(
112
+ "--admin_user_password",
113
+ default=os.environ.get("EGERIA_ADMIN_PASSWORD", "secret"),
114
+ help="Egeria admin password",
115
+ )
116
+ @click.option(
117
+ "--userid",
118
+ default=os.environ.get("EGERIA_USER", "peterprofile"),
119
+ help="Egeria user",
120
+ )
121
+ @click.option(
122
+ "--password",
123
+ default=os.environ.get("EGERIA_USER_PASSWORD", "secret"),
124
+ help="Egeria user password",
125
+ )
126
+ @click.option("--timeout", default=60, help="Number of seconds to wait")
127
+ @click.option(
128
+ "--jupyter",
129
+ is_flag=True,
130
+ default=os.environ.get("EGERIA_JUPYTER", "False"),
131
+ help="Enable for rendering in a Jupyter terminal",
132
+ )
133
+ @click.option(
134
+ "--width",
135
+ default=os.environ.get("EGERIA_WIDTH", "200"),
136
+ help="Screen width, in characters, to use",
137
+ )
138
+ @click.option(
139
+ "--home_glossary_guid",
140
+ default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
141
+ help="Glossary guid to use as the home glossary",
142
+ )
143
+ @click.pass_context
144
+ def cli(
145
+ ctx,
146
+ server,
147
+ url,
148
+ view_server,
149
+ view_server_url,
150
+ integration_daemon,
151
+ integration_daemon_url,
152
+ engine_host,
153
+ engine_host_url,
154
+ admin_user,
155
+ admin_user_password,
156
+ userid,
157
+ password,
158
+ timeout,
159
+ jupyter,
160
+ width,
161
+ ):
162
+ """An Egeria Command Line interface for Operations"""
163
+ ctx.obj = Config(
164
+ server,
165
+ url,
166
+ view_server,
167
+ view_server_url,
168
+ integration_daemon,
169
+ integration_daemon_url,
170
+ engine_host,
171
+ engine_host_url,
172
+ admin_user,
173
+ admin_user_password,
174
+ userid,
175
+ password,
176
+ timeout,
177
+ jupyter,
178
+ width,
179
+ )
180
+ ctx.max_content_width = 200
181
+ ctx.ensure_object(Config)
182
+
183
+
184
+ @cli.group("show")
185
+ @click.pass_context
186
+ def show(ctx):
187
+ """Display an Egeria Object"""
188
+ pass
189
+
190
+
191
+ @show.group("platforms")
192
+ @click.pass_context
193
+ def show_platforms(ctx):
194
+ """Group of commands to show information about Egeria platforms"""
195
+ pass
196
+
197
+
198
+ @show_platforms.command("status")
199
+ @click.pass_context
200
+ def show_platform_status(ctx):
201
+ """Display a live status view of known platforms"""
202
+ c = ctx.obj
203
+ p_display_status(
204
+ c.view_server, c.view_server_url, c.admin_user, c.admin_user_password
205
+ )
206
+
207
+
208
+ @show.group("servers")
209
+ @click.pass_context
210
+ def show_server(ctx):
211
+ """Group of commands to show information about Egeria servers"""
212
+ pass
213
+
214
+
215
+ @show_server.command("status")
216
+ @click.option(
217
+ "--full",
218
+ is_flag=True,
219
+ default=False,
220
+ help="If set, full server descriptions will be shown",
221
+ )
222
+ @click.pass_context
223
+ def show_server_status(ctx, full):
224
+ """Display a live status view of Egeria servers for the specified Egeria platform"""
225
+ c = ctx.obj
226
+ s_display_status(
227
+ full,
228
+ c.view_server,
229
+ c.view_server_url,
230
+ c.userid,
231
+ c.password,
232
+ c.jupyter,
233
+ c.width,
234
+ )
235
+
236
+
237
+ @show_server.command("startup")
238
+ @click.pass_context
239
+ def show_startup_status(ctx):
240
+ """Display a live status view of Egeria servers for the specified Egeria platform"""
241
+ c = ctx.obj
242
+ display_startup_status(
243
+ c.server,
244
+ c.url,
245
+ c.userid,
246
+ c.password,
247
+ c.jupyter,
248
+ c.width,
249
+ )
250
+
251
+
252
+ @show_server.command("archives")
253
+ @click.pass_context
254
+ def list_archives(ctx):
255
+ """Display a list of archives"""
256
+ c = ctx.obj
257
+ display_archive_list(
258
+ c.view_server,
259
+ c.view_server_url,
260
+ c.userid,
261
+ c.password,
262
+ False,
263
+ c.jupyter,
264
+ c.width,
265
+ )
266
+
267
+
268
+ @show.group("engines")
269
+ @click.pass_context
270
+ def engine_host(ctx):
271
+ """Group of commands to show information about Egeria engines"""
272
+ pass
273
+
274
+
275
+ @engine_host.command("status")
276
+ @click.option(
277
+ "--engine-list",
278
+ default="*",
279
+ help="Enter the list of connectors you are interested in or ['*'] for all",
280
+ )
281
+ @click.option(
282
+ "--engine-host",
283
+ default="engine-host",
284
+ help="Name of the Engine Host to get status for",
285
+ )
286
+ @click.option(
287
+ "--list", is_flag=True, default=False, help="If True, a paged list will be shown"
288
+ )
289
+ @click.pass_context
290
+ def gov_eng_status(ctx, engine_list, engine_host, list):
291
+ """Display engine-host status information"""
292
+ c = ctx.obj
293
+ display_gov_eng_status(
294
+ [engine_list],
295
+ engine_host=engine_host,
296
+ view_server=c.view_server,
297
+ url=c.view_server_url,
298
+ username=c.userid,
299
+ user_pass=c.password,
300
+ paging=list,
301
+ jupyter=c.jupyter,
302
+ width=c.width,
303
+ )
304
+
305
+
306
+ @engine_host.command("activity")
307
+ @click.option(
308
+ "--rowlimit",
309
+ default=0,
310
+ type=int,
311
+ show_default=True,
312
+ help="If non-zero, limit the number of rows returned",
313
+ )
314
+ @click.option(
315
+ "--compressed",
316
+ is_flag=True,
317
+ default=False,
318
+ show_default=True,
319
+ help="Compressed combines some attributes into a single column",
320
+ )
321
+ @click.option(
322
+ "--list",
323
+ is_flag=True,
324
+ default=False,
325
+ show_default=True,
326
+ help="If True, a paged list will be shown",
327
+ )
328
+ @click.pass_context
329
+ def eng_activity_status(ctx, rowlimit: int, list: bool, compressed: bool):
330
+ """Show Governance Activity in engine-host"""
331
+ c = ctx.obj
332
+ if compressed:
333
+ display_engine_activity_c(
334
+ rowlimit,
335
+ c.view_server,
336
+ c.view_server_url,
337
+ c.admin_user,
338
+ c.admin_user_password,
339
+ list,
340
+ c.jupyter,
341
+ c.width,
342
+ )
343
+ else:
344
+ display_engine_activity(
345
+ rowlimit,
346
+ c.view_server,
347
+ c.view_server_url,
348
+ c.admin_user,
349
+ c.admin_user_password,
350
+ list,
351
+ c.jupyter,
352
+ c.width,
353
+ )
354
+
355
+
356
+ @show.group("integrations")
357
+ @click.pass_context
358
+ def integrations(ctx):
359
+ """Group of commands to show information about Egeria integrations"""
360
+ pass
361
+
362
+
363
+ @integrations.command("status")
364
+ @click.option(
365
+ "--connector-list",
366
+ default="*",
367
+ help="Enter the list of connectors you are interested in or ['*'] for all",
368
+ )
369
+ @click.option(
370
+ "--list", is_flag=True, default=False, help="If True, a paged list will be shown"
371
+ )
372
+ @click.pass_context
373
+ def integrations_status(ctx, connector_list, list):
374
+ """Display integration_daemon status information"""
375
+ c = ctx.obj
376
+ display_integration_daemon_status(
377
+ [connector_list],
378
+ c.integration_daemon,
379
+ c.integration_daemon_url,
380
+ c.view_server,
381
+ c.view_server_url,
382
+ c.userid,
383
+ c.password,
384
+ list,
385
+ c.jupyter,
386
+ c.width,
387
+ )
388
+
389
+
390
+ @integrations.command("--targets")
391
+ @click.pass_context
392
+ @click.argument("connector", nargs=1)
393
+ def integrations_status(ctx, connector):
394
+ """Display Catalog Targets for a connector"""
395
+ c = ctx.obj
396
+ display_catalog_targets(
397
+ connector,
398
+ c.view_server,
399
+ c.view_server_url,
400
+ c.userid,
401
+ c.password,
402
+ c.jupyter,
403
+ c.width,
404
+ )
405
+
406
+
407
+ #
408
+ # Tell
409
+ #
410
+
411
+
412
+ @cli.group("tell")
413
+ @click.pass_context
414
+ def tell(ctx):
415
+ """Perform actions an Egeria Objects"""
416
+ pass
417
+
418
+
419
+ @tell.group("servers")
420
+ @click.pass_context
421
+ def servers(ctx):
422
+ """Perform actions on OMAG Servers"""
423
+ pass
424
+
425
+
426
+ servers.add_command(start_server)
427
+ servers.add_command(stop_server)
428
+
429
+
430
+ @tell.group("integration-daemon")
431
+ @click.pass_context
432
+ def integration_daemon(ctx):
433
+ """Group of commands to an integration_daemon"""
434
+ pass
435
+
436
+
437
+ @integration_daemon.command("refresh")
438
+ @click.pass_context
439
+ @click.option(
440
+ "--connector",
441
+ default="all",
442
+ help="Name of connector to refresh or 'all' to refresh all",
443
+ )
444
+ @click.option(
445
+ "--server",
446
+ default="integration-daemon",
447
+ help="Name of the integration server to refresh",
448
+ )
449
+ def refresh_connectors(ctx, server, connector):
450
+ """Refresh the specified integration connector or ALL connectors if not specified"""
451
+ c = ctx.obj
452
+ refresh_connector(
453
+ connector, server, c.view_server_url, c.view_server, c.userid, c.password
454
+ )
455
+
456
+
457
+ @integration_daemon.command("restart")
458
+ @click.pass_context
459
+ @click.option(
460
+ "--connector",
461
+ default="all",
462
+ help="Name of connector to restart or 'all' to restart all",
463
+ )
464
+ @click.option(
465
+ "--server",
466
+ default="integration-daemon",
467
+ help="Name of the integration server to restart",
468
+ )
469
+ def restart_connectors(ctx, server, connector):
470
+ """Restart the specified integration connector or ALL connectors if not specified"""
471
+ c = ctx.obj
472
+ restart_connector(
473
+ connector, server, c.view_server_url, c.view_server, c.userid, c.password
474
+ )
475
+
476
+
477
+ integration_daemon.add_command(add_catalog_target)
478
+ integration_daemon.add_command(remove_catalog_target)
479
+ integration_daemon.add_command(update_catalog_target)
480
+
481
+
482
+ @tell.group("engine-host")
483
+ @click.pass_context
484
+ def engine_host(ctx):
485
+ """Group of commands to an engine-host"""
486
+ pass
487
+
488
+
489
+ engine_host.add_command(refresh_gov_eng_config)
490
+
491
+
492
+ @tell.group("repository")
493
+ @click.pass_context
494
+ def repository(ctx):
495
+ """Group of commands to a repository"""
496
+ pass
497
+
498
+
499
+ repository.add_command(load_archive)
500
+
501
+ if __name__ == "__main__":
502
+ cli()