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,618 @@
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 Data techs.
8
+
9
+ This is an emerging capability based on the **click** package. Feedback welcome!
10
+
11
+ """
12
+ import os
13
+ import sys
14
+
15
+ import click
16
+ from trogon import tui
17
+
18
+ from pyegeria.commands.cat.list_tech_types import display_tech_types
19
+ from pyegeria.commands.cli.ops_config import Config
20
+ from pyegeria.commands.tech.get_guid_info import display_guid
21
+ from pyegeria.commands.tech.get_tech_details import tech_details_viewer
22
+ from pyegeria.commands.tech.list_asset_types import display_asset_types
23
+ from pyegeria.commands.tech.list_elements_x import list_elements_x
24
+ from pyegeria.commands.tech.list_registered_services import display_registered_svcs
25
+ from pyegeria.commands.tech.list_relationship_types import display_relationship_types
26
+ from pyegeria.commands.tech.list_tech_templates import display_templates_spec
27
+ from pyegeria.commands.tech.list_valid_metadata_values import display_metadata_values
28
+ from pyegeria.commands.tech.get_tech_type_template import template_viewer
29
+ from pyegeria.commands.tech.list_anchored_elements import display_anchored_elements
30
+ from pyegeria.commands.tech.list_elements import list_elements
31
+
32
+ from pyegeria.commands.tech.get_element_info import display_elements
33
+ from pyegeria.commands.tech.list_related_specification import (
34
+ display_related_specification,
35
+ )
36
+ from pyegeria.commands.tech.list_related_elements import list_related_elements
37
+ from pyegeria.commands.tech.list_elements_for_classification import (
38
+ list_classified_elements,
39
+ )
40
+ from pyegeria.commands.tech.list_gov_action_processes import display_gov_processes
41
+ from pyegeria.commands.tech.get_tech_type_template import template_viewer
42
+
43
+ # from pyegeria import ServerOps
44
+
45
+
46
+ # class Config(object):
47
+ # def __init__(self, server: str = None, url: str = None, userid:str = None, password:str = None,
48
+ # timeout:int = 30, paging: bool = False):
49
+ # self.server = server
50
+ # self.url = url
51
+ # self.userid = userid
52
+ # self.password = password
53
+ # self.timeout = timeout
54
+ # self.paging = paging
55
+ #
56
+ #
57
+ # pass_config = click.make_pass_decorator(Config)
58
+
59
+
60
+ # @tui
61
+ # @tui('menu', 'menu', 'A textual command line interface')
62
+ @tui()
63
+ @click.version_option("0.0.1", prog_name="egeria_ops")
64
+ @click.group()
65
+ @click.option(
66
+ "--server",
67
+ default=os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store"),
68
+ help="Egeria metadata store to work with",
69
+ )
70
+ @click.option(
71
+ "--url",
72
+ default=os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443"),
73
+ help="URL of Egeria metadata store platform to connect to",
74
+ )
75
+ @click.option(
76
+ "--integration_daemon",
77
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
78
+ help="Egeria integration daemon to work with",
79
+ )
80
+ @click.option(
81
+ "--integration_daemon_url",
82
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"),
83
+ help="URL of Egeria integration daemon platform to connect to",
84
+ )
85
+ @click.option(
86
+ "--view_server",
87
+ default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
88
+ help="Egeria view server to work with",
89
+ )
90
+ @click.option(
91
+ "--view_server_url",
92
+ default=os.environ.get("EGERIA_VIEW_SERVER_URL", "https://localhost:9443"),
93
+ help="URL of Egeria view server platform to connect to",
94
+ )
95
+ @click.option(
96
+ "--engine_host",
97
+ default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
98
+ help="Egeria engine host to work with",
99
+ )
100
+ @click.option(
101
+ "--engine_host_url",
102
+ default=os.environ.get("EGERIA_ENGINE_HOST_URL", "https://localhost:9443"),
103
+ help="URL of Egeria engine host platform to connect to",
104
+ )
105
+ @click.option(
106
+ "--admin_user",
107
+ default=os.environ.get("EGERIA_ADMIN_USER", "garygeeke"),
108
+ help="Egeria admin user",
109
+ )
110
+ @click.option(
111
+ "--admin_user_password",
112
+ default=os.environ.get("EGERIA_ADMIN_PASSWORD", "secret"),
113
+ help="Egeria admin password",
114
+ )
115
+ @click.option(
116
+ "--userid",
117
+ default=os.environ.get("EGERIA_USER", "peterprofile"),
118
+ help="Egeria user",
119
+ )
120
+ @click.option(
121
+ "--password",
122
+ default=os.environ.get("EGERIA_USER_PASSWORD", "secret"),
123
+ help="Egeria user password",
124
+ )
125
+ @click.option("--timeout", default=60, help="Number of seconds to wait")
126
+ @click.option(
127
+ "--jupyter",
128
+ is_flag=True,
129
+ default=os.environ.get("EGERIA_JUPYTER", "False"),
130
+ help="Enable for rendering in a Jupyter terminal",
131
+ )
132
+ @click.option(
133
+ "--width",
134
+ default=os.environ.get("EGERIA_WIDTH", "200"),
135
+ help="Screen width, in characters, to use",
136
+ )
137
+ @click.option(
138
+ "--home_glossary_guid",
139
+ default=os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None),
140
+ help="Glossary guid to use as the home glossary",
141
+ )
142
+ @click.pass_context
143
+ def cli(
144
+ ctx,
145
+ server,
146
+ url,
147
+ view_server,
148
+ view_server_url,
149
+ integration_daemon,
150
+ integration_daemon_url,
151
+ engine_host,
152
+ engine_host_url,
153
+ admin_user,
154
+ admin_user_password,
155
+ userid,
156
+ password,
157
+ timeout,
158
+ jupyter,
159
+ width,
160
+ ):
161
+ """An Egeria Command Line interface for Operations"""
162
+ ctx.obj = Config(
163
+ server,
164
+ url,
165
+ view_server,
166
+ view_server_url,
167
+ integration_daemon,
168
+ integration_daemon_url,
169
+ engine_host,
170
+ engine_host_url,
171
+ admin_user,
172
+ admin_user_password,
173
+ userid,
174
+ password,
175
+ timeout,
176
+ jupyter,
177
+ width,
178
+ )
179
+ ctx.max_content_width = 200
180
+ ctx.ensure_object(Config)
181
+
182
+
183
+ @cli.group("show")
184
+ @click.pass_context
185
+ def show(ctx):
186
+ """Display an Egeria Object"""
187
+ pass
188
+
189
+
190
+ @show.group("info")
191
+ @click.pass_context
192
+ def show_info(ctx):
193
+ """Show various Egeria information"""
194
+ pass
195
+
196
+
197
+ @show.group("tech-types")
198
+ @click.pass_context
199
+ def show_tech(ctx):
200
+ """Show information about Egeria technology types"""
201
+ pass
202
+
203
+
204
+ @show.group("elements")
205
+ @click.pass_context
206
+ def show_elements(ctx):
207
+ """Show information about Egeria elements"""
208
+
209
+
210
+ @show_elements.command("guid-info")
211
+ @click.argument("guid", nargs=1)
212
+ @click.pass_context
213
+ def show_guid_info(ctx, guid):
214
+ """Display guid information
215
+
216
+ Usage: show guid-info <a guid>
217
+
218
+ """
219
+ c = ctx.obj
220
+ display_guid(guid, c.server, c.url, c.userid, c.password, c.jupyter, c.width)
221
+
222
+
223
+ @show_elements.command("related-specifications")
224
+ @click.pass_context
225
+ @click.argument("element-guid")
226
+ def show_related_specifications(ctx, element_guid):
227
+ """List specifications related to the given Element"""
228
+ c = ctx.obj
229
+ display_related_specification(
230
+ element_guid,
231
+ c.view_server,
232
+ c.view_server_url,
233
+ c.userid,
234
+ c.password,
235
+ c.jupyter,
236
+ c.width,
237
+ )
238
+
239
+
240
+ @show_elements.command("anchored-elements")
241
+ @click.pass_context
242
+ @click.option(
243
+ "--search-string",
244
+ default="SoftwareCapability",
245
+ help="value we are searching for",
246
+ )
247
+ @click.option(
248
+ "--prop-list",
249
+ default="anchorDomainName",
250
+ help="List of properties we are searching",
251
+ )
252
+ def list_anchored_elements(ctx, search_string: str, prop_list: str):
253
+ """List elements with the specified properties"""
254
+ c = ctx.obj
255
+ # put guards around this to make it a list?
256
+ if type(prop_list) is str:
257
+ property_names = prop_list.split(",")
258
+ elif type(prop_list) is list:
259
+ property_names = prop_list
260
+ else:
261
+ property_names = []
262
+ print(f"\nError --> Invalid property list - must be a string or list")
263
+ sys.exit(4)
264
+
265
+ display_anchored_elements(
266
+ search_string,
267
+ property_names,
268
+ c.view_server,
269
+ c.view_server_url,
270
+ c.userid,
271
+ c.password,
272
+ c.timeout,
273
+ c.jupyter,
274
+ c.width,
275
+ )
276
+
277
+
278
+ @show_tech.command("tech-types")
279
+ @click.option("--search-string", default="*", help="Tech type to search for")
280
+ @click.pass_context
281
+ def show_tech_types(ctx, search_string):
282
+ """List deployed technology types
283
+
284
+ Usage: show tech-types <optional search-string>
285
+
286
+ All tech-types will be returned if no search-string is specified.
287
+
288
+ """
289
+
290
+ c = ctx.obj
291
+ display_tech_types(
292
+ search_string, c.view_server, c.view_server_url, c.userid, c.password
293
+ )
294
+
295
+
296
+ @show_tech.command("tech-details")
297
+ @click.argument("tech-name")
298
+ @click.pass_context
299
+ def show_tech_details(ctx, tech_name):
300
+ """Display a live status view of Egeria servers for the specified Egeria platform
301
+
302
+ Usage: show tech-details <tech-name>
303
+
304
+ tech-name is a valid technology name (see 'show tech-types')
305
+ """
306
+ c = ctx.obj
307
+ tech_details_viewer(
308
+ tech_name,
309
+ c.view_server,
310
+ c.view_server_url,
311
+ c.userid,
312
+ c.password,
313
+ c.jupyter,
314
+ c.width,
315
+ )
316
+
317
+
318
+ @show_tech.command("tech-type-templates")
319
+ @click.option(
320
+ "--tech-type",
321
+ default="PostgreSQL Server",
322
+ help="Specific tech type to get elements for",
323
+ )
324
+ @click.pass_context
325
+ def show_tech_type_templates(ctx, tech_type):
326
+ """List technology type templates"""
327
+ c = ctx.obj
328
+ template_viewer(
329
+ tech_type,
330
+ c.view_server,
331
+ c.view_server_url,
332
+ c.userid,
333
+ c.password,
334
+ c.jupyter,
335
+ c.width,
336
+ )
337
+
338
+
339
+ @show_info.command("asset-types")
340
+ @click.pass_context
341
+ def show_asset_types(ctx):
342
+ """Display known asset types"""
343
+ c = ctx.obj
344
+ display_asset_types(
345
+ c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
346
+ )
347
+
348
+
349
+ @show_info.command("registered-services")
350
+ @click.option(
351
+ "--services",
352
+ type=click.Choice(
353
+ [
354
+ "all",
355
+ "access-services",
356
+ "common-services",
357
+ "engine-services",
358
+ "governance-services",
359
+ "integration-services",
360
+ "view-services",
361
+ ],
362
+ case_sensitive=False,
363
+ ),
364
+ default="all",
365
+ help="Which service group to display",
366
+ )
367
+ @click.pass_context
368
+ def show_registered_services(ctx, services):
369
+ """Show information about a registered services"""
370
+ c = ctx.obj
371
+ display_registered_svcs(
372
+ services,
373
+ c.view_server,
374
+ c.view_server_url,
375
+ c.userid,
376
+ c.password,
377
+ c.jupyter,
378
+ c.width,
379
+ )
380
+
381
+
382
+ @show_info.command("relationship-types")
383
+ @click.option(
384
+ "--om-type",
385
+ default="AssetOwner",
386
+ help="Relationship type to get information about",
387
+ )
388
+ @click.pass_context
389
+ def show_relationship_types(ctx, rel_type):
390
+ """Show information about the specified relationship type"""
391
+ c = ctx.obj
392
+ display_relationship_types(
393
+ rel_type,
394
+ c.view_server,
395
+ c.view_server_url,
396
+ c.userid,
397
+ c.password,
398
+ False,
399
+ c.jupyter,
400
+ c.width,
401
+ )
402
+
403
+
404
+ @show_elements.command("elements-by-classification")
405
+ @click.option(
406
+ "--om-type",
407
+ default="Project",
408
+ help="Open Metadata type to filter by",
409
+ )
410
+ @click.option(
411
+ "--classification",
412
+ default="GovernanceProject",
413
+ help="Classification to filter byt",
414
+ )
415
+ @click.pass_context
416
+ def show_elements_by_classification(ctx, om_type, classification):
417
+ """Show elements by classification"""
418
+ c = ctx.obj
419
+ list_classified_elements(
420
+ om_type,
421
+ classification,
422
+ c.view_server,
423
+ c.view_server_url,
424
+ c.userid,
425
+ c.password,
426
+ c.jupyter,
427
+ c.width,
428
+ )
429
+
430
+
431
+ @show_elements.command("related-elements")
432
+ @click.option(
433
+ "--element-guid",
434
+ help="GUID of the Element to navigate from.",
435
+ )
436
+ @click.option(
437
+ "--om-type",
438
+ default="Project",
439
+ help="Open metadata type to filter by.",
440
+ )
441
+ @click.option(
442
+ "--rel-type",
443
+ default="Certification",
444
+ help="Relationship type to follow.",
445
+ )
446
+ @click.pass_context
447
+ def show_related_elements(ctx, element_guid, om_type, rel_type):
448
+ """Show information about related elements"""
449
+ c = ctx.obj
450
+ list_related_elements(
451
+ element_guid,
452
+ om_type,
453
+ rel_type,
454
+ c.view_server,
455
+ c.view_server_url,
456
+ c.userid,
457
+ c.password,
458
+ c.jupyter,
459
+ c.width,
460
+ )
461
+
462
+
463
+ @show_tech.command("tech-templates")
464
+ @click.pass_context
465
+ @click.option(
466
+ "--search-string", default="*", help="Technology type to get information about"
467
+ )
468
+ def tech_templates(ctx, search_string):
469
+ """Display template information about the specified technology."""
470
+ c = ctx.obj
471
+ template_viewer(
472
+ search_string,
473
+ c.view_server,
474
+ c.view_server_url,
475
+ c.userid,
476
+ c.password,
477
+ c.jupyter,
478
+ c.width,
479
+ )
480
+
481
+
482
+ @show_tech.command("tech-template-spec")
483
+ @click.pass_context
484
+ @click.option(
485
+ "--search-string", default="*", help="Technology type to get information about"
486
+ )
487
+ def tech_template_spec(ctx, search_string):
488
+ """Display template specification information about the specified technology."""
489
+ c = ctx.obj
490
+ display_templates_spec(
491
+ search_string,
492
+ c.view_server,
493
+ c.view_server_url,
494
+ c.userid,
495
+ c.password,
496
+ c.jupyter,
497
+ c.width,
498
+ )
499
+
500
+
501
+ @show_info.command("gov-action-processes")
502
+ @click.pass_context
503
+ @click.option("--search-string", default="*", help="Search string")
504
+ def gov_action_processes(ctx, search_string):
505
+ """Display available governance action processes."""
506
+ c = ctx.obj
507
+ display_gov_processes(
508
+ search_string,
509
+ c.view_server,
510
+ c.view_server_url,
511
+ c.userid,
512
+ c.password,
513
+ c.jupyter,
514
+ c.width,
515
+ )
516
+
517
+
518
+ @show_info.command("valid-metadata-values")
519
+ @click.pass_context
520
+ @click.option("--property", default="projectHealth", help="Metadata property to query")
521
+ @click.option("--type-name", default="Project", help="Metadata type to query")
522
+ def valid_metadata_values(ctx, property, type_name):
523
+ """Display the valid metadata values for a property and type"""
524
+ c = ctx.obj
525
+ display_metadata_values(
526
+ property,
527
+ type_name,
528
+ c.view_server,
529
+ c.view_server_url,
530
+ c.userid,
531
+ c.password,
532
+ False,
533
+ c.jupyter,
534
+ c.width,
535
+ )
536
+
537
+
538
+ @show_elements.command("elements")
539
+ @click.pass_context
540
+ @click.option(
541
+ "--extended",
542
+ is_flag=True,
543
+ default=False,
544
+ help="If True, feedback information is displayed",
545
+ )
546
+ @click.option("--om_type", default="Organization", help="Metadata type to query")
547
+ def list_element_info(ctx, om_type, extended):
548
+ """Display elements of a specific Open Metadata Type"""
549
+ c = ctx.obj
550
+ if extended:
551
+ list_elements_x(
552
+ om_type,
553
+ c.view_server,
554
+ c.view_server_url,
555
+ c.userid,
556
+ c.password,
557
+ c.jupyter,
558
+ c.width,
559
+ )
560
+ else:
561
+ list_elements(
562
+ om_type,
563
+ c.view_server,
564
+ c.view_server_url,
565
+ c.userid,
566
+ c.password,
567
+ c.jupyter,
568
+ c.width,
569
+ )
570
+
571
+
572
+ @show_info.command("processes")
573
+ @click.pass_context
574
+ def list_element_info(ctx):
575
+ """Display the valid metadata values for a property and type"""
576
+ c = ctx.obj
577
+ list_elements(
578
+ "GovernanceActionProcess",
579
+ c.view_server,
580
+ c.view_server_url,
581
+ c.userid,
582
+ c.password,
583
+ c.jupyter,
584
+ c.width,
585
+ )
586
+
587
+
588
+ @show_elements.command("get-elements")
589
+ @click.pass_context
590
+ @click.option("--om_type", default="Project", help="Metadata type to query")
591
+ def get_element_info(ctx, om_type):
592
+ """Display the elements for an Open Metadata Type"""
593
+ c = ctx.obj
594
+ display_elements(
595
+ om_type,
596
+ c.view_server,
597
+ c.view_server_url,
598
+ c.userid,
599
+ c.password,
600
+ c.jupyter,
601
+ c.width,
602
+ )
603
+
604
+
605
+ #
606
+ # Tell
607
+ #
608
+
609
+
610
+ # @cli.group("tell")
611
+ # @click.pass_context
612
+ # def tell(ctx):
613
+ # """Perform actions an Egeria Objects"""
614
+ # pass
615
+
616
+
617
+ if __name__ == "__main__":
618
+ cli()
@@ -0,0 +1,45 @@
1
+ import click
2
+
3
+
4
+ class Config(object):
5
+ def __init__(
6
+ self,
7
+ server: str,
8
+ url: str ,
9
+ view_server: str ,
10
+ view_server_url: str ,
11
+ integration_daemon: str ,
12
+ integration_daemon_url: str,
13
+ engine_host: str,
14
+ engine_host_url: str,
15
+ admin_user: str,
16
+ admin_user_password: str,
17
+ userid: str,
18
+ password: str,
19
+ timeout: int,
20
+ jupyter: bool,
21
+ width: int,
22
+ home_glossary_guid: str,
23
+ glossary_path: str,
24
+ ):
25
+ self.metadata_store = server
26
+ self.metadata_store_url = url
27
+ self.view_server = view_server
28
+ self.view_server_url = view_server_url
29
+ self.integration_daemon = integration_daemon
30
+ self.integration_daemon_url = integration_daemon_url
31
+ self.engine_host = engine_host
32
+ self.engine_host_url = engine_host_url
33
+ self.admin_user = admin_user
34
+ self.admin_user_password = admin_user_password
35
+ self.userid = userid
36
+ self.password = password
37
+ self.timeout = timeout
38
+ self.jupyter = jupyter
39
+ self.width = width
40
+ self.server = server
41
+ self.url = url
42
+ self.home_glossary_guid = home_glossary_guid
43
+ self.glossary_path = glossary_path
44
+
45
+ pass_config = click.make_pass_decorator(Config)
@@ -0,0 +1,19 @@
1
+ .uprompt {
2
+ width: auto;
3
+ height: auto;
4
+ }
5
+ .uimput {
6
+ border: solid white;
7
+ height: auto;
8
+ width: auto;
9
+ }
10
+ .DataTable {
11
+ color: black
12
+ }
13
+ .DataTable.Row {
14
+ width: 20%;
15
+ height: auto;
16
+ }
17
+ #table {
18
+ color: black
19
+ }