pyegeria 1.5.1.0.2__tar.gz → 1.5.1.0.3__tar.gz

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 (105) hide show
  1. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/PKG-INFO +1 -1
  2. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/gov_server_actions.py +3 -6
  3. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/refresh_integration_daemon.py +1 -3
  4. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/restart_integration_daemon.py +1 -5
  5. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/__init__.py +97 -2
  6. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/automated_curation_omvs.py +100 -1
  7. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyproject.toml +2 -2
  8. pyegeria-1.5.1.0.2/pyegeria/tech_guids_26-09-2024 09:30.py +0 -75
  9. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/LICENSE +0 -0
  10. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/README.md +0 -0
  11. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/README.md +0 -0
  12. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/__init__.py +0 -0
  13. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/get_asset_graph.py +0 -0
  14. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/get_collection.py +0 -0
  15. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/get_project_dependencies.py +0 -0
  16. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/get_project_structure.py +0 -0
  17. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/get_tech_type_elements.py +0 -0
  18. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/get_tech_type_template.py +0 -0
  19. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_archives.py +0 -0
  20. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_assets.py +0 -0
  21. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_cert_types.py +0 -0
  22. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_deployed_database_schemas.py +0 -0
  23. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_deployed_databases.py +0 -0
  24. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_glossary.py +0 -0
  25. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_projects.py +0 -0
  26. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_relationships.py +0 -0
  27. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_tech_types.py +0 -0
  28. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_todos.py +0 -0
  29. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cat/list_user_ids.py +0 -0
  30. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cli/__init__.py +0 -0
  31. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cli/egeria.py +0 -0
  32. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cli/egeria_cat.py +0 -0
  33. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cli/egeria_my.py +0 -0
  34. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cli/egeria_ops.py +0 -0
  35. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cli/egeria_tech.py +0 -0
  36. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/cli/ops_config.py +0 -0
  37. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/my/README.md +0 -0
  38. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/my/__init__.py +0 -0
  39. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/my/list_my_profile.py +0 -0
  40. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/my/list_my_roles.py +0 -0
  41. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/my/monitor_my_todos.py +0 -0
  42. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/my/monitor_open_todos.py +0 -0
  43. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/my/todo_actions.py +0 -0
  44. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/README.md +0 -0
  45. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/__init__.py +0 -0
  46. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/engine_actions.py +0 -0
  47. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/list_catalog_targets.py +0 -0
  48. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/load_archive.py +0 -0
  49. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/monitor_asset_events.py +0 -0
  50. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/monitor_engine_activity.py +0 -0
  51. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/monitor_engine_activity_c.py +0 -0
  52. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/monitor_gov_eng_status.py +0 -0
  53. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/monitor_integ_daemon_status.py +0 -0
  54. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/monitor_platform_status.py +0 -0
  55. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/monitor_server_startup.py +0 -0
  56. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/monitor_server_status.py +0 -0
  57. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/orig_monitor_server_list.py +0 -0
  58. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/ops/orig_monitor_server_status.py +0 -0
  59. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/README.md +0 -0
  60. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/__init__.py +0 -0
  61. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/get_element_graph.py +0 -0
  62. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/get_element_info.py +0 -0
  63. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/get_guid_info.py +0 -0
  64. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/get_tech_details.py +0 -0
  65. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/list_asset_types.py +0 -0
  66. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/list_elements.py +0 -0
  67. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/list_elements_for_classification.py +0 -0
  68. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/list_elements_x.py +0 -0
  69. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/list_registered_services.py +0 -0
  70. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/list_related_elements.py +0 -0
  71. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/list_related_specification.py +0 -0
  72. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/list_relationship_types.py +0 -0
  73. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/list_tech_templates.py +0 -0
  74. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/list_valid_metadata_values.py +0 -0
  75. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/commands/tech/x_list_related_elements.py +0 -0
  76. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/README.md +0 -0
  77. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/_client.py +0 -0
  78. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/_deprecated_gov_engine.py +0 -0
  79. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/_exceptions.py +0 -0
  80. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/_globals.py +0 -0
  81. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/_validators.py +0 -0
  82. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/asset_catalog_omvs.py +0 -0
  83. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/classification_manager_omvs.py +0 -0
  84. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/collection_manager_omvs.py +0 -0
  85. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/core_omag_server_config.py +0 -0
  86. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/create_tech_guid_lists.py +0 -0
  87. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/egeria_cat_client.py +0 -0
  88. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/egeria_client.py +0 -0
  89. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/egeria_config_client.py +0 -0
  90. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/egeria_my_client.py +0 -0
  91. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/egeria_tech_client.py +0 -0
  92. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/feedback_manager_omvs.py +0 -0
  93. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/full_omag_server_config.py +0 -0
  94. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/glossary_browser_omvs.py +0 -0
  95. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/glossary_manager_omvs.py +0 -0
  96. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/mermaid_utilities.py +0 -0
  97. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/my_profile_omvs.py +0 -0
  98. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/platform_services.py +0 -0
  99. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/project_manager_omvs.py +0 -0
  100. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/registered_info.py +0 -0
  101. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/runtime_manager_omvs.py +0 -0
  102. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/server_operations.py +0 -0
  103. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/utils.py +0 -0
  104. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/valid_metadata_omvs.py +0 -0
  105. {pyegeria-1.5.1.0.2 → pyegeria-1.5.1.0.3}/pyegeria/x_action_author_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 1.5.1.0.2
3
+ Version: 1.5.1.0.3
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -112,8 +112,7 @@ def refresh_gov_eng_config(ctx):
112
112
  p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
113
113
  token = p_client.create_egeria_bearer_token()
114
114
  try:
115
- engine_host_guid = p_client.get_guid_for_name(c.engine_host)
116
- p_client.refresh_gov_eng_config(engine_host_guid)
115
+ p_client.refresh_gov_eng_config(None, None, c.engine_host)
117
116
 
118
117
  click.echo(f"Refreshed server {c.engine_host}")
119
118
 
@@ -134,7 +133,7 @@ def start_server(ctx, server):
134
133
  token = p_client.create_egeria_bearer_token()
135
134
  try:
136
135
  server_guid = p_client.get_element_guid_by_unique_name(server, "name")
137
- p_client.activate_server_with_stored_config(server_guid)
136
+ p_client.activate_server_with_stored_config(None, server)
138
137
 
139
138
  click.echo(f"Started server {server}")
140
139
 
@@ -166,9 +165,7 @@ def stop_server(ctx, server):
166
165
  p_client = EgeriaTech(c.view_server, c.view_server_url, c.userid, c.password)
167
166
  token = p_client.create_egeria_bearer_token()
168
167
  try:
169
- server_guid = p_client.get_guid_for_name(server)
170
-
171
- p_client.shutdown_server(server_guid)
168
+ p_client.shutdown_server(None, server)
172
169
  click.echo(f"Stopped server {server}")
173
170
  except (InvalidParameterException, PropertyServerException) as e:
174
171
  print_exception_response(e)
@@ -45,11 +45,9 @@ def refresh_connector(
45
45
  else:
46
46
  statement = f"the {connector} "
47
47
  server = "integration-daemon" if server is None else server
48
- server_guid = s_client.get_guid_for_name(server)
49
48
 
50
49
  s_client.refresh_integration_connectors(
51
- server_guid,
52
- connector,
50
+ connector_name=connector, server_guid=None, server_name=server
53
51
  )
54
52
 
55
53
  print(f"\n===> Integration Daemon '{server}' refreshed {statement}.")
@@ -46,12 +46,8 @@ def restart_connector(
46
46
  else:
47
47
  statement = f"the {connector} "
48
48
  server = "integration-daemon" if server is None else server
49
- server_guid = s_client.get_guid_for_name(server)
50
49
 
51
- s_client.restart_integration_connectors(
52
- server_guid,
53
- connector,
54
- )
50
+ s_client.restart_integration_connectors(connector, None, server)
55
51
 
56
52
  print(f"\n===> Integration Daemon '{server}' restarted {statement}.")
57
53
 
@@ -177,6 +177,97 @@ from .egeria_client import Egeria
177
177
  # INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
178
178
  # INTEGRATION_GUIDS["ContentPacksCataloguer"] = "6bb2181e-7724-4515-ba3c-877cded55980"
179
179
  # INTEGRATION_GUIDS["OpenLineageCataloguer"] = "3347ac71-8dd2-403a-bc16-75a71be64bd7"
180
+ # global template_guids, integration_guids
181
+ # TEMPLATE_GUIDS["CSV Data File"] = "13770f93-13c8-42be-9bb8-e0b1b1e52b1f"
182
+ # TEMPLATE_GUIDS["File System Directory"] = "c353fd5d-9523-4a5e-a5e2-723ae490fe54"
183
+ # INTEGRATION_GUIDS["GeneralFilesMonitor"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
184
+ # INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
185
+ # INTEGRATION_GUIDS["ContentPacksMonitor"] = "6bb2181e-7724-4515-ba3c-877cded55980"
186
+ # INTEGRATION_GUIDS["SampleDataFilesMonitor"] = "cd6479e1-2fe7-4426-b358-8a0cf70be117"
187
+ # TEMPLATE_GUIDS["Keystore File"] = "fbcfcc0c-1652-421f-b49b-c3e1c108768f"
188
+ # TEMPLATE_GUIDS["Unity Catalog Server"] = "dcca9788-b30f-4007-b1ac-ec634aff6879"
189
+ # INTEGRATION_GUIDS["UnityCatalogInsideCatalog"] = "74dde22f-2249-4ea3-af2b-b39e73f79b81"
190
+ # INTEGRATION_GUIDS["UnityCatalogServer"] = "06d068d9-9e08-4e67-8c59-073bbf1013af"
191
+ # INTEGRATION_GUIDS["JDBC"] = "70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa"
192
+ # TEMPLATE_GUIDS["Data File"] = "66d8dda9-00cf-4e59-938c-4b0583596b1e"
193
+ # TEMPLATE_GUIDS["View Server"] = "fd61ca01-390d-4aa2-a55d-426826aa4e1b"
194
+ # TEMPLATE_GUIDS["Archive File"] = "7578e504-d00f-406d-a194-3fc0a351cdf9"
195
+ # TEMPLATE_GUIDS["Unity Catalog Catalog"] = "5ee006aa-a6d6-411b-9b8d-5f720c079cae"
196
+ # TEMPLATE_GUIDS[
197
+ # "PostgreSQL Relational Database"
198
+ # ] = "3d398b3f-7ae6-4713-952a-409f3dea8520"
199
+ # INTEGRATION_GUIDS["PostgreSQLDatabase"] = "ef301220-7dfe-4c6c-bb9d-8f92d9f63823"
200
+ # TEMPLATE_GUIDS["Program File"] = "32d27e9c-1fdf-455a-ad2a-42b4d7d99108"
201
+ # TEMPLATE_GUIDS["JDBC Endpoint"] = "3d79ce50-1887-4627-ad71-ba4649aba2bc"
202
+ # TEMPLATE_GUIDS["PostgreSQL Server"] = "542134e6-b9ce-4dce-8aef-22e8daf34fdb"
203
+ # INTEGRATION_GUIDS["PostgreSQLServer"] = "36f69fd0-54ba-4f59-8a44-11ccf2687a34"
204
+ # TEMPLATE_GUIDS["Audio Data File"] = "39b4b670-7f15-4744-a5ba-62e8edafbcee"
205
+ # TEMPLATE_GUIDS["Document File"] = "eb6f728d-fa54-4350-9807-1199cbf96851"
206
+ # TEMPLATE_GUIDS["Integration Daemon"] = "6b3516f0-dd13-4786-9601-07215f995197"
207
+ # TEMPLATE_GUIDS["XML Data File"] = "ea67ae71-c674-473e-b38b-689879d2a7d9"
208
+ # TEMPLATE_GUIDS["REST API Endpoint"] = "9ea4bff4-d193-492f-bcad-6e68c07c6f9e"
209
+ # TEMPLATE_GUIDS["Unity Catalog Schema"] = "5bf92b0f-3970-41ea-b0a3-aacfbf6fd92e"
210
+ # TEMPLATE_GUIDS["Parquet Data File"] = "7f6cd744-79c3-4d25-a056-eeb1a91574c3"
211
+ # TEMPLATE_GUIDS["3D Image Data File"] = "0059ea2b-6292-4cac-aa6f-a80a605f1114"
212
+ # TEMPLATE_GUIDS["YAML File"] = "2221855b-2b64-4b45-a2ee-c40adc5e2a64"
213
+ # TEMPLATE_GUIDS["Metadata Access Server"] = "bd8de890-fa79-4c24-aab8-20b41b5893dd"
214
+ # TEMPLATE_GUIDS["Properties File"] = "3b281111-a0ef-4fc4-99e7-9a0ef84a7636"
215
+ # TEMPLATE_GUIDS["Vector Data File"] = "db1bec7f-55a9-40d3-91c0-a57b76d422e2"
216
+ # TEMPLATE_GUIDS["Executable File"] = "3d99a163-7a13-4576-a212-784010a8302a"
217
+ # INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
218
+ # TEMPLATE_GUIDS["Unity Catalog Table"] = "6cc1e5f5-4c1e-4290-a80e-e06643ffb13d"
219
+ # TEMPLATE_GUIDS["JSON Data File"] = "c4836635-7e9e-446a-83b5-15e206b1aff3"
220
+ # TEMPLATE_GUIDS["File System"] = "522f228c-097c-4f90-9efc-26c1f2696f87"
221
+ # TEMPLATE_GUIDS["Source Code File"] = "9c7013ef-f29b-4b01-a8ea-5ea14f64c67a"
222
+ # TEMPLATE_GUIDS["Apple MacBook Pro"] = "32a9fd56-85c9-47fe-a211-9da3871bf4da"
223
+ # TEMPLATE_GUIDS["Build Instruction File"] = "fbb2fa2e-8bcb-402e-9be7-5c6db9f2c504"
224
+ # TEMPLATE_GUIDS["Spreadsheet Data File"] = "e4fabff5-2ba9-4050-9076-6ed917970b4c"
225
+ # TEMPLATE_GUIDS["UNIX File System"] = "27117270-8667-41d0-a99a-9118f9b60199"
226
+ # TEMPLATE_GUIDS["Video Data File"] = "93b2b722-ec0f-4da4-960a-b8d4922f8bf5"
227
+ # TEMPLATE_GUIDS["Unity Catalog Function"] = "a490ba65-6104-4213-9be9-524e16fed8aa"
228
+ # TEMPLATE_GUIDS[
229
+ # "PostgreSQL Relational Database Schema"
230
+ # ] = "82a5417c-d882-4271-8444-4c6a996a8bfc"
231
+ # TEMPLATE_GUIDS["Engine Host"] = "1764a891-4234-45f1-8cc3-536af40c790d"
232
+ # TEMPLATE_GUIDS["Avro Data File"] = "9f5be428-058e-41dd-b506-3a222283b579"
233
+ # TEMPLATE_GUIDS["Unity Catalog Volume"] = "92d2d2dc-0798-41f0-9512-b10548d312b7"
234
+ # TEMPLATE_GUIDS["File"] = "ae3067c7-cc72-4a18-88e1-746803c2c86f"
235
+ # TEMPLATE_GUIDS["Apache Kafka Topic"] = "ea8f81c9-c59c-47de-9525-7cc59d1251e5"
236
+ # INTEGRATION_GUIDS["OpenLineageKafkaListener"] = "980b989c-de78-4e6a-a58d-51049d7381bf"
237
+ # TEMPLATE_GUIDS["Script File"] = "dbd5e6bb-1ff8-46f4-a007-fb0485f68c92"
238
+ # TEMPLATE_GUIDS["Raster Data File"] = "47211156-f03f-4881-8526-015e695a3dac"
239
+ # TEMPLATE_GUIDS["Data Folder"] = "372a0379-7060-4c9d-8d84-bc709b31794c"
240
+ # INTEGRATION_GUIDS[
241
+ # "MaintainDataFolderLastUpdateDate"
242
+ # ] = "fd26f07c-ae44-4bc5-b457-37b43112224f"
243
+ # INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
244
+ # TEMPLATE_GUIDS["OMAG Server Platform"] = "9b06c4dc-ddc8-47ae-b56b-28775d3a96f0"
245
+ # INTEGRATION_GUIDS["OMAGServerPlatform"] = "dee84e6e-7a96-4975-86c1-152fb3ab759b"
246
+ # INTEGRATION_GUIDS["PostgreSQLServerCataloguer"] = "36f69fd0-54ba-4f59-8a44-11ccf2687a34"
247
+ # INTEGRATION_GUIDS[
248
+ # "UnityCatalogInsideCatalogSynchronizer"
249
+ # ] = "74dde22f-2249-4ea3-af2b-b39e73f79b81"
250
+ # INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
251
+ # INTEGRATION_GUIDS[
252
+ # "PostgreSQLDatabaseCataloguer"
253
+ # ] = "ef301220-7dfe-4c6c-bb9d-8f92d9f63823"
254
+ # INTEGRATION_GUIDS["JDBCDatabaseCataloguer"] = "70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa"
255
+ # INTEGRATION_GUIDS["FilesCataloguer"] = "1b98cdac-dd0a-4621-93db-99ef5a1098bc"
256
+ # INTEGRATION_GUIDS["SampleDataCataloguer"] = "cd6479e1-2fe7-4426-b358-8a0cf70be117"
257
+ # INTEGRATION_GUIDS[
258
+ # "OpenLineageGovernanceActionPublisher"
259
+ # ] = "206f8faf-04da-4b6f-8280-eeee3943afeb"
260
+ # INTEGRATION_GUIDS[
261
+ # "OMAGServerPlatformCataloguer"
262
+ # ] = "dee84e6e-7a96-4975-86c1-152fb3ab759b"
263
+ # INTEGRATION_GUIDS[
264
+ # "UnityCatalogServerSynchronizer"
265
+ # ] = "06d068d9-9e08-4e67-8c59-073bbf1013af"
266
+ # INTEGRATION_GUIDS["MaintainLastUpdateDate"] = "fd26f07c-ae44-4bc5-b457-37b43112224f"
267
+ # INTEGRATION_GUIDS["OpenLineageKafkaListener"] = "980b989c-de78-4e6a-a58d-51049d7381bf"
268
+ # INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
269
+ # INTEGRATION_GUIDS["ContentPacksCataloguer"] = "6bb2181e-7724-4515-ba3c-877cded55980"
270
+ # INTEGRATION_GUIDS["OpenLineageCataloguer"] = "3347ac71-8dd2-403a-bc16-75a71be64bd7"
180
271
  global template_guids, integration_guids
181
272
  TEMPLATE_GUIDS["CSV Data File"] = "13770f93-13c8-42be-9bb8-e0b1b1e52b1f"
182
273
  TEMPLATE_GUIDS["File System Directory"] = "c353fd5d-9523-4a5e-a5e2-723ae490fe54"
@@ -213,6 +304,9 @@ TEMPLATE_GUIDS["YAML File"] = "2221855b-2b64-4b45-a2ee-c40adc5e2a64"
213
304
  TEMPLATE_GUIDS["Metadata Access Server"] = "bd8de890-fa79-4c24-aab8-20b41b5893dd"
214
305
  TEMPLATE_GUIDS["Properties File"] = "3b281111-a0ef-4fc4-99e7-9a0ef84a7636"
215
306
  TEMPLATE_GUIDS["Vector Data File"] = "db1bec7f-55a9-40d3-91c0-a57b76d422e2"
307
+ TEMPLATE_GUIDS[
308
+ "Databricks Unity Catalog Server"
309
+ ] = "3f7f62f6-4abc-424e-9f92-523306e7d5d5"
216
310
  TEMPLATE_GUIDS["Executable File"] = "3d99a163-7a13-4576-a212-784010a8302a"
217
311
  INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
218
312
  TEMPLATE_GUIDS["Unity Catalog Table"] = "6cc1e5f5-4c1e-4290-a80e-e06643ffb13d"
@@ -243,11 +337,11 @@ INTEGRATION_GUIDS[
243
337
  INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366beaf4e"
244
338
  TEMPLATE_GUIDS["OMAG Server Platform"] = "9b06c4dc-ddc8-47ae-b56b-28775d3a96f0"
245
339
  INTEGRATION_GUIDS["OMAGServerPlatform"] = "dee84e6e-7a96-4975-86c1-152fb3ab759b"
246
- INTEGRATION_GUIDS["PostgreSQLServerCataloguer"] = "36f69fd0-54ba-4f59-8a44-11ccf2687a34"
340
+ INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
247
341
  INTEGRATION_GUIDS[
248
342
  "UnityCatalogInsideCatalogSynchronizer"
249
343
  ] = "74dde22f-2249-4ea3-af2b-b39e73f79b81"
250
- INTEGRATION_GUIDS["OpenLineageAPIPublisher"] = "2156bc98-973a-4859-908d-4ccc96f53cc5"
344
+ INTEGRATION_GUIDS["PostgreSQLServerCataloguer"] = "36f69fd0-54ba-4f59-8a44-11ccf2687a34"
251
345
  INTEGRATION_GUIDS[
252
346
  "PostgreSQLDatabaseCataloguer"
253
347
  ] = "ef301220-7dfe-4c6c-bb9d-8f92d9f63823"
@@ -269,5 +363,6 @@ INTEGRATION_GUIDS["OpenLineageFilePublisher"] = "6271b678-7d22-4cdf-87b1-45b366b
269
363
  INTEGRATION_GUIDS["ContentPacksCataloguer"] = "6bb2181e-7724-4515-ba3c-877cded55980"
270
364
  INTEGRATION_GUIDS["OpenLineageCataloguer"] = "3347ac71-8dd2-403a-bc16-75a71be64bd7"
271
365
 
366
+
272
367
  if __name__ == "__main__":
273
368
  print("Main-Init")
@@ -332,6 +332,105 @@ class AutomatedCuration(Client):
332
332
  )
333
333
  return response
334
334
 
335
+ async def _async_create_postgres_database_element_from_template(
336
+ self,
337
+ postgres_database: str,
338
+ server_name: str,
339
+ host_identifier: str,
340
+ port: str,
341
+ db_user: str,
342
+ db_pwd: str,
343
+ description: str = None,
344
+ ) -> str:
345
+ """Create a Postgres database element from a template. Async version.
346
+
347
+ Parameters
348
+ ----------
349
+ postgres_database : str
350
+ The name of the Postgres database.
351
+ server_name : str
352
+ The server name of the Postgres server.
353
+ host_identifier: str
354
+ The host IP address or domain name.
355
+ port : str
356
+ The port number of the Postgres server.
357
+ db_user: str
358
+ User name to connect to the database
359
+ db_pwd: str
360
+ User password to connect to the database
361
+ description: str, opt
362
+ A description of the element.
363
+
364
+ Returns
365
+ -------
366
+ str
367
+ The GUID of the Postgres database element.
368
+ """
369
+ body = {
370
+ "templateGUID": TEMPLATE_GUIDS["PostgreSQL Relational Database"],
371
+ "isOwnAnchor": "true",
372
+ "placeholderPropertyValues": {
373
+ "databaseName": postgres_database,
374
+ "serverName": server_name,
375
+ "hostIdentifier": host_identifier,
376
+ "portNumber": port,
377
+ "databaseUserId": db_user,
378
+ "description": description,
379
+ "databasePassword": db_pwd,
380
+ },
381
+ }
382
+ body_s = body_slimmer(body)
383
+ response = await self._async_create_element_from_template(body_s)
384
+ return str(response)
385
+
386
+ def create_postgres_database_element_from_template(
387
+ self,
388
+ postgres_database: str,
389
+ server_name: str,
390
+ host_identifier: str,
391
+ port: str,
392
+ db_user: str,
393
+ db_pwd: str,
394
+ description: str = None,
395
+ ) -> str:
396
+ """Create a Postgres database element from a template. Async version.
397
+
398
+ Parameters
399
+ ----------
400
+ postgres_database : str
401
+ The name of the Postgres database.
402
+ server_name : str
403
+ The server name of the Postgres server.
404
+ host_identifier: str
405
+ The host IP address or domain name.
406
+ port : str
407
+ The port number of the Postgres server.
408
+ db_user: str
409
+ User name to connect to the database
410
+ db_pwd: str
411
+ User password to connect to the database
412
+ description: str, opt
413
+ A description of the element.
414
+
415
+ Returns
416
+ -------
417
+ str
418
+ The GUID of the Postgres database element.
419
+ """
420
+ loop = asyncio.get_event_loop()
421
+ response = loop.run_until_complete(
422
+ self._async_create_postgres_database_element_from_template(
423
+ postgres_database,
424
+ server_name,
425
+ host_identifier,
426
+ port,
427
+ db_user,
428
+ db_pwd,
429
+ description,
430
+ )
431
+ )
432
+ return response
433
+
335
434
  async def _async_create_folder_element_from_template(
336
435
  self,
337
436
  path_name: str,
@@ -2369,7 +2468,7 @@ class AutomatedCuration(Client):
2369
2468
 
2370
2469
  body = {
2371
2470
  "class": "InitiateGovernanceActionTypeRequestBody",
2372
- "governanceActionTypeQualifiedName": "AssetSurvey:survey-postgres-server",
2471
+ "governanceActionTypeQualifiedName": "survey-postgres-server",
2373
2472
  "actionTargets": [
2374
2473
  {
2375
2474
  "class": "NewActionTarget",
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "1.5.1.0.2"
3
+ version = "1.5.1.0.3"
4
4
  license = 'Apache 2.0'
5
5
  authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
6
6
  readme = "README.md"
@@ -116,7 +116,7 @@ pytest = "^8.2.2"
116
116
  get_element_info = "commands.tech.get_element_info:main"
117
117
  list_elements = "commands.tech.list_elements:main"
118
118
  list_related_specification = "commands.tech.list_related_specification:main"
119
- list_elements_by_classification = "commands.tech.list_elements_for_classification:main"
119
+ list_elements_for_classification = "commands.tech.list_elements_for_classification:main"
120
120
  list_related_elements = "commands.tech.list_related_elements:main"
121
121
 
122
122
  list_valid_metadata_values = "commands.tech.list_valid_metadata_values:main"
@@ -1,75 +0,0 @@
1
- global template_guids, integration_guids
2
- TEMPLATE_GUIDS['CSV Data File'] = '13770f93-13c8-42be-9bb8-e0b1b1e52b1f'
3
- TEMPLATE_GUIDS['File System Directory'] = 'c353fd5d-9523-4a5e-a5e2-723ae490fe54'
4
- INTEGRATION_GUIDS['GeneralFilesMonitor'] = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
5
- INTEGRATION_GUIDS['OpenLineageFilePublisher'] = '6271b678-7d22-4cdf-87b1-45b366beaf4e'
6
- INTEGRATION_GUIDS['ContentPacksMonitor'] = '6bb2181e-7724-4515-ba3c-877cded55980'
7
- INTEGRATION_GUIDS['SampleDataFilesMonitor'] = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
8
- TEMPLATE_GUIDS['Keystore File'] = 'fbcfcc0c-1652-421f-b49b-c3e1c108768f'
9
- TEMPLATE_GUIDS['Unity Catalog Server'] = 'dcca9788-b30f-4007-b1ac-ec634aff6879'
10
- INTEGRATION_GUIDS['UnityCatalogInsideCatalog'] = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
11
- INTEGRATION_GUIDS['UnityCatalogServer'] = '06d068d9-9e08-4e67-8c59-073bbf1013af'
12
- INTEGRATION_GUIDS['JDBC'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
13
- TEMPLATE_GUIDS['Data File'] = '66d8dda9-00cf-4e59-938c-4b0583596b1e'
14
- TEMPLATE_GUIDS['View Server'] = 'fd61ca01-390d-4aa2-a55d-426826aa4e1b'
15
- TEMPLATE_GUIDS['Archive File'] = '7578e504-d00f-406d-a194-3fc0a351cdf9'
16
- TEMPLATE_GUIDS['Unity Catalog Catalog'] = '5ee006aa-a6d6-411b-9b8d-5f720c079cae'
17
- TEMPLATE_GUIDS['PostgreSQL Relational Database'] = '3d398b3f-7ae6-4713-952a-409f3dea8520'
18
- INTEGRATION_GUIDS['PostgreSQLDatabase'] = 'ef301220-7dfe-4c6c-bb9d-8f92d9f63823'
19
- TEMPLATE_GUIDS['Program File'] = '32d27e9c-1fdf-455a-ad2a-42b4d7d99108'
20
- TEMPLATE_GUIDS['JDBC Endpoint'] = '3d79ce50-1887-4627-ad71-ba4649aba2bc'
21
- TEMPLATE_GUIDS['PostgreSQL Server'] = '542134e6-b9ce-4dce-8aef-22e8daf34fdb'
22
- INTEGRATION_GUIDS['PostgreSQLServer'] = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
23
- TEMPLATE_GUIDS['Audio Data File'] = '39b4b670-7f15-4744-a5ba-62e8edafbcee'
24
- TEMPLATE_GUIDS['Document File'] = 'eb6f728d-fa54-4350-9807-1199cbf96851'
25
- TEMPLATE_GUIDS['Integration Daemon'] = '6b3516f0-dd13-4786-9601-07215f995197'
26
- TEMPLATE_GUIDS['XML Data File'] = 'ea67ae71-c674-473e-b38b-689879d2a7d9'
27
- TEMPLATE_GUIDS['REST API Endpoint'] = '9ea4bff4-d193-492f-bcad-6e68c07c6f9e'
28
- TEMPLATE_GUIDS['Unity Catalog Schema'] = '5bf92b0f-3970-41ea-b0a3-aacfbf6fd92e'
29
- TEMPLATE_GUIDS['Parquet Data File'] = '7f6cd744-79c3-4d25-a056-eeb1a91574c3'
30
- TEMPLATE_GUIDS['3D Image Data File'] = '0059ea2b-6292-4cac-aa6f-a80a605f1114'
31
- TEMPLATE_GUIDS['YAML File'] = '2221855b-2b64-4b45-a2ee-c40adc5e2a64'
32
- TEMPLATE_GUIDS['Metadata Access Server'] = 'bd8de890-fa79-4c24-aab8-20b41b5893dd'
33
- TEMPLATE_GUIDS['Properties File'] = '3b281111-a0ef-4fc4-99e7-9a0ef84a7636'
34
- TEMPLATE_GUIDS['Vector Data File'] = 'db1bec7f-55a9-40d3-91c0-a57b76d422e2'
35
- TEMPLATE_GUIDS['Executable File'] = '3d99a163-7a13-4576-a212-784010a8302a'
36
- INTEGRATION_GUIDS['OpenLineageAPIPublisher'] = '2156bc98-973a-4859-908d-4ccc96f53cc5'
37
- TEMPLATE_GUIDS['Unity Catalog Table'] = '6cc1e5f5-4c1e-4290-a80e-e06643ffb13d'
38
- TEMPLATE_GUIDS['JSON Data File'] = 'c4836635-7e9e-446a-83b5-15e206b1aff3'
39
- TEMPLATE_GUIDS['File System'] = '522f228c-097c-4f90-9efc-26c1f2696f87'
40
- TEMPLATE_GUIDS['Source Code File'] = '9c7013ef-f29b-4b01-a8ea-5ea14f64c67a'
41
- TEMPLATE_GUIDS['Apple MacBook Pro'] = '32a9fd56-85c9-47fe-a211-9da3871bf4da'
42
- TEMPLATE_GUIDS['Build Instruction File'] = 'fbb2fa2e-8bcb-402e-9be7-5c6db9f2c504'
43
- TEMPLATE_GUIDS['Spreadsheet Data File'] = 'e4fabff5-2ba9-4050-9076-6ed917970b4c'
44
- TEMPLATE_GUIDS['UNIX File System'] = '27117270-8667-41d0-a99a-9118f9b60199'
45
- TEMPLATE_GUIDS['Video Data File'] = '93b2b722-ec0f-4da4-960a-b8d4922f8bf5'
46
- TEMPLATE_GUIDS['Unity Catalog Function'] = 'a490ba65-6104-4213-9be9-524e16fed8aa'
47
- TEMPLATE_GUIDS['PostgreSQL Relational Database Schema'] = '82a5417c-d882-4271-8444-4c6a996a8bfc'
48
- TEMPLATE_GUIDS['Engine Host'] = '1764a891-4234-45f1-8cc3-536af40c790d'
49
- TEMPLATE_GUIDS['Avro Data File'] = '9f5be428-058e-41dd-b506-3a222283b579'
50
- TEMPLATE_GUIDS['Unity Catalog Volume'] = '92d2d2dc-0798-41f0-9512-b10548d312b7'
51
- TEMPLATE_GUIDS['File'] = 'ae3067c7-cc72-4a18-88e1-746803c2c86f'
52
- TEMPLATE_GUIDS['Apache Kafka Topic'] = 'ea8f81c9-c59c-47de-9525-7cc59d1251e5'
53
- INTEGRATION_GUIDS['OpenLineageKafkaListener'] = '980b989c-de78-4e6a-a58d-51049d7381bf'
54
- TEMPLATE_GUIDS['Script File'] = 'dbd5e6bb-1ff8-46f4-a007-fb0485f68c92'
55
- TEMPLATE_GUIDS['Raster Data File'] = '47211156-f03f-4881-8526-015e695a3dac'
56
- TEMPLATE_GUIDS['Data Folder'] = '372a0379-7060-4c9d-8d84-bc709b31794c'
57
- INTEGRATION_GUIDS['MaintainDataFolderLastUpdateDate'] = 'fd26f07c-ae44-4bc5-b457-37b43112224f'
58
- INTEGRATION_GUIDS['OpenLineageFilePublisher'] = '6271b678-7d22-4cdf-87b1-45b366beaf4e'
59
- TEMPLATE_GUIDS['OMAG Server Platform'] = '9b06c4dc-ddc8-47ae-b56b-28775d3a96f0'
60
- INTEGRATION_GUIDS['OMAGServerPlatform'] = 'dee84e6e-7a96-4975-86c1-152fb3ab759b'
61
- INTEGRATION_GUIDS['PostgreSQLServerCataloguer'] = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
62
- INTEGRATION_GUIDS['UnityCatalogInsideCatalogSynchronizer'] = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
63
- INTEGRATION_GUIDS['OpenLineageAPIPublisher'] = '2156bc98-973a-4859-908d-4ccc96f53cc5'
64
- INTEGRATION_GUIDS['PostgreSQLDatabaseCataloguer'] = 'ef301220-7dfe-4c6c-bb9d-8f92d9f63823'
65
- INTEGRATION_GUIDS['JDBCDatabaseCataloguer'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
66
- INTEGRATION_GUIDS['FilesCataloguer'] = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
67
- INTEGRATION_GUIDS['SampleDataCataloguer'] = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
68
- INTEGRATION_GUIDS['OpenLineageGovernanceActionPublisher'] = '206f8faf-04da-4b6f-8280-eeee3943afeb'
69
- INTEGRATION_GUIDS['OMAGServerPlatformCataloguer'] = 'dee84e6e-7a96-4975-86c1-152fb3ab759b'
70
- INTEGRATION_GUIDS['UnityCatalogServerSynchronizer'] = '06d068d9-9e08-4e67-8c59-073bbf1013af'
71
- INTEGRATION_GUIDS['MaintainLastUpdateDate'] = 'fd26f07c-ae44-4bc5-b457-37b43112224f'
72
- INTEGRATION_GUIDS['OpenLineageKafkaListener'] = '980b989c-de78-4e6a-a58d-51049d7381bf'
73
- INTEGRATION_GUIDS['OpenLineageFilePublisher'] = '6271b678-7d22-4cdf-87b1-45b366beaf4e'
74
- INTEGRATION_GUIDS['ContentPacksCataloguer'] = '6bb2181e-7724-4515-ba3c-877cded55980'
75
- INTEGRATION_GUIDS['OpenLineageCataloguer'] = '3347ac71-8dd2-403a-bc16-75a71be64bd7'
File without changes
File without changes