pyegeria 1.5.1.1.60__py3-none-any.whl → 5.2__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 (126) hide show
  1. pyegeria/__init__.py +2 -0
  2. pyegeria/_client.py +7 -2
  3. pyegeria/asset_catalog_omvs.py +34 -0
  4. pyegeria/classification_manager_omvs.py +2 -3
  5. pyegeria/collection_manager_omvs.py +92 -45
  6. pyegeria/commands/README.md +2 -1
  7. pyegeria/commands/cat/__init__.py +1 -5
  8. pyegeria/commands/cat/exp_list_glossaries.py +156 -0
  9. pyegeria/commands/cat/get_collection.py +23 -14
  10. pyegeria/commands/cat/get_tech_type_elements.py +1 -1
  11. pyegeria/commands/cat/glossary_actions.py +28 -8
  12. pyegeria/commands/cat/list_assets.py +8 -17
  13. pyegeria/commands/cat/list_cert_types.py +1 -1
  14. pyegeria/commands/cat/list_collections.py +162 -0
  15. pyegeria/commands/cat/list_deployed_catalogs.py +6 -3
  16. pyegeria/commands/cat/list_deployed_database_schemas.py +8 -13
  17. pyegeria/commands/cat/list_deployed_databases.py +3 -3
  18. pyegeria/commands/cat/list_tech_type_elements.py +190 -0
  19. pyegeria/commands/cat/list_tech_types.py +36 -24
  20. pyegeria/commands/cat/list_terms.py +7 -2
  21. pyegeria/commands/cli/egeria.py +120 -129
  22. pyegeria/commands/cli/egeria_cat.py +63 -52
  23. pyegeria/commands/cli/egeria_login_tui.py +313 -0
  24. pyegeria/commands/cli/egeria_my.py +25 -33
  25. pyegeria/commands/cli/egeria_ops.py +38 -40
  26. pyegeria/commands/cli/egeria_tech.py +55 -41
  27. pyegeria/commands/cli/ops_config.py +3 -1
  28. pyegeria/commands/cli/txt_custom_v2.tcss +19 -0
  29. pyegeria/commands/doc/README.md +145 -0
  30. pyegeria/commands/doc/Visual Command Reference/README.md +511 -0
  31. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/asset-graph 2024-11-20 at 15.56.42.png +0 -0
  32. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/assets-in-domain 2024-11-20 at 15.49.55@2x.png +0 -0
  33. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/elements-of-type 2024-11-20 at 16.01.35.png +0 -0
  34. pyegeria/commands/doc/Visual Command Reference/cat/show/assets/tech-type-elements 2024-11-20 at 16.05.05.png +0 -0
  35. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs 2024-12-17 at 15.43.27@2x.png +0 -0
  36. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs-2024-11-20 at 16.17.43@2x.png +0 -0
  37. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-11-25 at 20.14.50@2x.png +0 -0
  38. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-12-17 at 15.48.38@2x.png +0 -0
  39. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-11-25 at 20.21.25@2x.png +0 -0
  40. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-12-17 at 15.52.16@2x.png +0 -0
  41. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed_databases 2024-12-16 at 16.40.31@2x.png +0 -0
  42. pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-glossaries 2024-11-25 at 20.30.02.png +0 -0
  43. pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-terms 2024-11-25 at 20.32.11.png +0 -0
  44. pyegeria/commands/doc/Visual Command Reference/cat/show/info/asset-types 2024-11-25 at 20.34.19@2x.png +0 -0
  45. pyegeria/commands/doc/Visual Command Reference/cat/show/info/certification-types 2024-11-25 at 20.37.07.png +0 -0
  46. pyegeria/commands/doc/Visual Command Reference/cat/show/info/collection-graph 2024-12-12 at 11.33.18@2x.png +0 -0
  47. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-collections 2024-12-10 at 14.25.51@2x.png +0 -0
  48. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-todos 2024-12-12 at 11.46.30@2x.png +0 -0
  49. pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-user-ids 2024-12-12 at 11.51.09@2x.png +0 -0
  50. pyegeria/commands/doc/Visual Command Reference/cat/show/info/tech-types 2024-12-12 at 11.37.20@2x.png +0 -0
  51. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_dependencies 2024-12-14 at 16.24.39@2x.png +0 -0
  52. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_structure 2024-12-14 at 16.21.35@2x.png +0 -0
  53. pyegeria/commands/doc/Visual Command Reference/cat/show/projects/projects 2024-12-14 at 16.18.10@2x.png +0 -0
  54. pyegeria/commands/doc/Visual Command Reference/hey_egeria tui 2024-12-16 at 16.58.22@2x.png +0 -0
  55. pyegeria/commands/doc/Visual Command Reference/my/show/my_profile 2024-12-14 at 16.29.27@2x.png +0 -0
  56. pyegeria/commands/doc/Visual Command Reference/my/show/my_roles 2024-12-14 at 16.32.10@2x.png +0 -0
  57. pyegeria/commands/doc/Visual Command Reference/my/show/my_todos 2024-12-15 at 16.24.13@2x.png +0 -0
  58. pyegeria/commands/doc/Visual Command Reference/my/show/open_todos 2024-12-14 at 16.36.12@2x.png +0 -0
  59. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/list_engine_activity compressed 2024-12-15 at 16.48.48@2x.png +0 -0
  60. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity 2024-12-15 at 16.32.55@2x.png +0 -0
  61. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity compressed 2024-12-15 at 16.38.29@2x.png +0 -0
  62. pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_status 2024-12-15 at 16.51.26.jpeg +0 -0
  63. pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_daemon_status 2024-12-15 at 16.57.12@2x.png +0 -0
  64. pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_targets 2024-12-15 at 17.02.19@2x.png +0 -0
  65. pyegeria/commands/doc/Visual Command Reference/ops/show/platforms/monitor_platform_status 2024-12-15 at 19.53.18@2x.png +0 -0
  66. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status 2024-12-15 at 19.59.39@2x.png +0 -0
  67. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status full 2024-12-15 at 20.01.57@2x.png +0 -0
  68. pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_startup_servers 2024-12-15 at 19.56.07@2x.png +0 -0
  69. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_anchored_elements 2024-12-15 at 21.25.41@2x.png +0 -0
  70. 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
  71. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/info_for_guid 2024-12-16 at 11.35.29@2x.png +0 -0
  72. 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
  73. 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
  74. 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
  75. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/related_elements 2024-12-16 at 14.55.01@2x.png +0 -0
  76. pyegeria/commands/doc/Visual Command Reference/tech/show/elements/show_related_specifications 2024-12-16 at 15.04.55@2x.png +0 -0
  77. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/asset_types 2024-12-16 at 15.10.16@2x.png +0 -0
  78. 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
  79. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/governance_action_processes 2024-12-16 at 15.13.01@2x.png +0 -0
  80. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/registered_services 2024-12-16 at 16.44.54@2x.png +0 -0
  81. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-16 at 16.20.34@2x.png +0 -0
  82. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-19 at 10.51.54@2x.png +0 -0
  83. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/valid_metadata_values 2024-12-16 at 15.31.56@2x.png +0 -0
  84. 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
  85. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_technology_types 2024-12-16 at 15.39.20@2x.png +0 -0
  86. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_details 2024-12-16 at 15.37.21@2x.png +0 -0
  87. pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_templates 2024-12-16 at 16.11.48@2x.png +0 -0
  88. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/{hey_egeria: overview.md → README.md } +9 -1
  89. pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/CleanShot 2024-11-18 at 21.32.03@2x.png +0 -0
  90. pyegeria/commands/my/monitor_my_todos.py +17 -5
  91. pyegeria/commands/my/monitor_open_todos.py +1 -1
  92. pyegeria/commands/my/todo_actions.py +7 -14
  93. pyegeria/commands/ops/monitor_asset_events.py +27 -22
  94. pyegeria/commands/ops/monitor_engine_activity_c.py +1 -1
  95. pyegeria/commands/ops/monitor_gov_eng_status.py +31 -4
  96. pyegeria/commands/ops/monitor_integ_daemon_status.py +17 -14
  97. pyegeria/commands/ops/monitor_platform_status.py +15 -3
  98. pyegeria/commands/ops/monitor_server_status.py +1 -1
  99. pyegeria/commands/ops/orig_monitor_server_status.py +36 -21
  100. pyegeria/commands/ops/refresh_integration_daemon.py +1 -1
  101. pyegeria/commands/ops/restart_integration_daemon.py +1 -1
  102. pyegeria/commands/ops/x_engine_actions.py +2 -59
  103. pyegeria/commands/tech/get_tech_details.py +79 -42
  104. pyegeria/commands/tech/get_tech_type_template.py +69 -53
  105. pyegeria/commands/tech/{list_element_graph.py → list_anchored_elements.py} +20 -17
  106. pyegeria/commands/tech/list_elements_x.py +7 -4
  107. pyegeria/commands/tech/list_registered_services.py +1 -1
  108. pyegeria/commands/tech/list_relationship_types.py +19 -21
  109. pyegeria/commands/tech/list_relationships.py +7 -3
  110. pyegeria/commands/tech/table_tech_templates.py +3 -1
  111. pyegeria/core_omag_server_config.py +36 -0
  112. pyegeria/create_tech_guid_lists.py +2 -2
  113. pyegeria/egeria_client.py +2 -0
  114. pyegeria/egeria_tech_client.py +5 -0
  115. pyegeria/glossary_manager_omvs.py +101 -7
  116. pyegeria/metadata_explorer_omvs.py +2371 -0
  117. pyegeria/server_operations.py +4 -4
  118. pyegeria/template_manager_omvs.py +1 -3
  119. pyegeria/valid_metadata_omvs.py +1 -1
  120. {pyegeria-1.5.1.1.60.dist-info → pyegeria-5.2.dist-info}/METADATA +7 -9
  121. pyegeria-5.2.dist-info/RECORD +232 -0
  122. {pyegeria-1.5.1.1.60.dist-info → pyegeria-5.2.dist-info}/entry_points.txt +4 -1
  123. pyegeria/commands/doc/command-overview.md +0 -99
  124. pyegeria-1.5.1.1.60.dist-info/RECORD +0 -167
  125. {pyegeria-1.5.1.1.60.dist-info → pyegeria-5.2.dist-info}/LICENSE +0 -0
  126. {pyegeria-1.5.1.1.60.dist-info → pyegeria-5.2.dist-info}/WHEEL +0 -0
@@ -23,28 +23,37 @@ from pyegeria import (
23
23
  PropertyServerException,
24
24
  UserNotAuthorizedException,
25
25
  print_exception_response,
26
- AutomatedCuration
26
+ AutomatedCuration,
27
27
  )
28
28
 
29
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('EGERIA_VIEW_SERVER_URL', 'https://localhost:9443')
34
- EGERIA_INTEGRATION_DAEMON = os.environ.get('INTEGRATION_DAEMON', 'integration-daemon')
35
- EGERIA_ADMIN_USER = os.environ.get('ADMIN_USER', 'garygeeke')
36
- EGERIA_ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD', 'secret')
37
- EGERIA_USER = os.environ.get('EGERIA_USER', 'erinoverview')
38
- EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
39
- EGERIA_JUPYTER = bool(os.environ.get('EGERIA_JUPYTER', 'False'))
40
- EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '200'))
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"))
41
43
 
42
44
 
43
45
  disable_ssl_warnings = True
44
46
 
45
47
 
46
- def display_tech_types(search_string:str, server: str, url: str, username: str, user_pass: str,
47
- jupyter: bool = EGERIA_JUPYTER, width: int = EGERIA_WIDTH):
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
+ ):
48
57
  a_client = AutomatedCuration(server, url, username)
49
58
  token = a_client.create_egeria_bearer_token(username, user_pass)
50
59
  tech_list = a_client.find_technology_types(search_string, page_size=0)
@@ -61,7 +70,7 @@ def display_tech_types(search_string:str, server: str, url: str, username: str,
61
70
  show_lines=True,
62
71
  box=box.ROUNDED,
63
72
  caption=f"Technology Types from Server '{server}' @ Platform - {url}",
64
- expand=True
73
+ expand=True,
65
74
  )
66
75
 
67
76
  table.add_column("Name")
@@ -69,23 +78,20 @@ def display_tech_types(search_string:str, server: str, url: str, username: str,
69
78
  table.add_column("Category")
70
79
  table.add_column("Description")
71
80
 
72
-
73
81
  name = " "
74
82
  description = " "
75
83
  version = " "
76
84
  super_type = " "
77
85
  if type(tech_list) is list:
78
86
  for item in tech_list:
79
- if 'deployedImplementationType' not in item['qualifiedName']:
87
+ if "deployedImplementationType" not in item["qualifiedName"]:
80
88
  continue
81
89
  qualified_name = item.get("qualifiedName", " ")
82
90
  name = item.get("name", "none")
83
91
  category = item.get("category", "none")
84
92
  description = item.get("description", "none")
85
93
 
86
- table.add_row(
87
- name, qualified_name, category, description
88
- )
94
+ table.add_row(name, qualified_name, category, description)
89
95
  return table
90
96
  else:
91
97
  print("Unknown technology type")
@@ -96,7 +102,11 @@ def display_tech_types(search_string:str, server: str, url: str, username: str,
96
102
  with console.pager(styles=True):
97
103
  console.print(generate_table())
98
104
 
99
- except (InvalidParameterException, PropertyServerException, UserNotAuthorizedException) as e:
105
+ except (
106
+ InvalidParameterException,
107
+ PropertyServerException,
108
+ UserNotAuthorizedException,
109
+ ) as e:
100
110
  print_exception_response(e)
101
111
  assert e.related_http_code != "200", "Invalid parameters"
102
112
  finally:
@@ -118,11 +128,13 @@ def main():
118
128
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
119
129
 
120
130
  try:
121
- search_string = Prompt.ask("Enter the technology you are searching for:", default="*")
131
+ search_string = Prompt.ask(
132
+ "Enter the technology you are searching for:", default="*"
133
+ )
122
134
  display_tech_types(search_string, server, url, userid, user_pass)
123
- except (KeyboardInterrupt):
135
+ except KeyboardInterrupt:
124
136
  pass
125
137
 
126
138
 
127
139
  if __name__ == "__main__":
128
- main()
140
+ main()
@@ -25,6 +25,7 @@ from pyegeria import (
25
25
  UserNotAuthorizedException,
26
26
  EgeriaTech,
27
27
  )
28
+ from pyegeria.commands.cat.glossary_actions import EGERIA_HOME_GLOSSARY_GUID
28
29
 
29
30
  disable_ssl_warnings = True
30
31
 
@@ -42,11 +43,12 @@ EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
42
43
  EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
43
44
  EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
44
45
  EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
46
+ EGERIA_HOME_GLOSSARY_GUID = os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None)
45
47
 
46
48
 
47
49
  def display_glossary_terms(
48
50
  search_string: str = "*",
49
- glossary_guid: str = None,
51
+ glossary_guid: str = EGERIA_HOME_GLOSSARY_GUID,
50
52
  glossary_name: str = None,
51
53
  view_server: str = EGERIA_VIEW_SERVER,
52
54
  view_url: str = EGERIA_VIEW_SERVER_URL,
@@ -119,6 +121,7 @@ def display_glossary_terms(
119
121
  table.add_column("Version Id")
120
122
  table.add_column("Glossary")
121
123
  table.add_column("Status")
124
+ table.add_column("Example")
122
125
 
123
126
  terms = g_client.find_glossary_terms(
124
127
  search_string,
@@ -158,6 +161,7 @@ def display_glossary_terms(
158
161
  style=style,
159
162
  justify="center",
160
163
  )
164
+ example = Text(props.get("example", " "), style=style)
161
165
 
162
166
  classifications = term["elementHeader"]["classifications"]
163
167
  glossary_guid = None
@@ -184,6 +188,7 @@ def display_glossary_terms(
184
188
  version,
185
189
  glossary_name,
186
190
  term_status,
191
+ example,
187
192
  style="bold white on black",
188
193
  )
189
194
 
@@ -217,7 +222,7 @@ def main():
217
222
  url = args.url if args.url is not None else EGERIA_PLATFORM_URL
218
223
  userid = args.userid if args.userid is not None else EGERIA_USER
219
224
  user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
220
- guid = args.guid if args.guid is not None else None
225
+ guid = args.guid if args.guid is not None else EGERIA_HOME_GLOSSARY_GUID
221
226
 
222
227
  try:
223
228
  search_string = Prompt.ask("Enter the term you are searching for:", default="*")