pyegeria 0.5.5.20__tar.gz → 0.5.5.21__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 (70) hide show
  1. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/PKG-INFO +1 -1
  2. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/catalog_user/list_assets.py +6 -3
  3. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/catalog_user/view_asset_graph.py +1 -1
  4. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/catalog_user/view_collection.py +9 -9
  5. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/catalog_user/view_glossary.py +4 -2
  6. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/get_tech_type_elements.py +1 -1
  7. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/view_integ_daemon_status.py +4 -1
  8. pyegeria-0.5.5.21/pyegeria/__init__.py +120 -0
  9. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/_client.py +1 -1
  10. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/_globals.py +3 -2
  11. pyegeria-0.5.5.21/pyegeria/create_tech_guid_lists.py +67 -0
  12. pyegeria-0.5.5.21/pyegeria/tech_guids_22-07-2024 13:22.py +55 -0
  13. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/utils.py +3 -1
  14. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyproject.toml +1 -1
  15. pyegeria-0.5.5.20/pyegeria/__init__.py +0 -53
  16. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/LICENSE +0 -0
  17. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/README.md +0 -0
  18. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/doc_samples/Create_Collection_Sample.py +0 -0
  19. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -0
  20. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/catalog_user/README.md +0 -0
  21. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/catalog_user/__init__.py +0 -0
  22. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/developer/README.md +0 -0
  23. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/developer/__init__.py +0 -0
  24. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/developer/get_guid_info.py +0 -0
  25. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/developer/get_tech_details.py +0 -0
  26. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/developer/list_asset_types.py +0 -0
  27. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/developer/list_registered_services.py +0 -0
  28. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/developer/list_relationship_types.py +0 -0
  29. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/developer/list_tech_templates.py +0 -0
  30. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/developer/list_tech_types.py +0 -0
  31. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/developer/list_valid_metadata_values.py +0 -0
  32. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/README.md +0 -0
  33. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/__init__.py +0 -0
  34. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/get_tech_type_template.py +0 -0
  35. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/refresh_integration_daemon.py +0 -0
  36. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/view_asset_events.py +0 -0
  37. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/view_coco_status.py +0 -0
  38. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/view_eng_action_status.py +0 -0
  39. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/view_gov_eng_status.py +0 -0
  40. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/view_platform_status.py +0 -0
  41. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/view_server_list.py +0 -0
  42. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/operational/view_server_status.py +0 -0
  43. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/personal_organizer/README.md +0 -0
  44. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/personal_organizer/__init__.py +0 -0
  45. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/personal_organizer/get_my_profile.py +0 -0
  46. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/personal_organizer/list_projects.py +0 -0
  47. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/personal_organizer/list_todos.py +0 -0
  48. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/personal_organizer/view_my_todos.py +0 -0
  49. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/examples/widgets/personal_organizer/view_open_todos.py +0 -0
  50. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/Xfeedback_manager_omvs.py +0 -0
  51. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/Xloaded_resources_omvs.py +0 -0
  52. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/_deprecated_gov_engine.py +0 -0
  53. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/_exceptions.py +0 -0
  54. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/_validators.py +0 -0
  55. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/action_author_omvs.py +0 -0
  56. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/asset_catalog_omvs.py +0 -0
  57. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/automated_curation_omvs.py +0 -0
  58. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/collection_manager_omvs.py +0 -0
  59. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/core_guids.py +0 -0
  60. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/core_omag_server_config.py +0 -0
  61. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/full_omag_server_config.py +0 -0
  62. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/glossary_browser_omvs.py +0 -0
  63. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/glossary_manager_omvs.py +0 -0
  64. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/my_profile_omvs.py +0 -0
  65. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/platform_services.py +0 -0
  66. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/project_manager_omvs.py +0 -0
  67. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/registered_info.py +0 -0
  68. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/runtime_manager_omvs.py +0 -0
  69. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/server_operations.py +0 -0
  70. {pyegeria-0.5.5.20 → pyegeria-0.5.5.21}/pyegeria/valid_metadata_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.5.5.20
3
+ Version: 0.5.5.21
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -15,7 +15,7 @@ import time
15
15
  from rich import box
16
16
  from rich.console import Console
17
17
  from rich.prompt import Prompt
18
- # import pyegeria.X_asset_catalog_omvs
18
+
19
19
  from rich.table import Table
20
20
 
21
21
  from pyegeria import (
@@ -47,9 +47,12 @@ def display_assets(search_string: str, guid: str, server: str, url: str, usernam
47
47
  def generate_table(search_string:str = 'Enter Your Tech Type') -> Table:
48
48
  """Make a new table."""
49
49
  table = Table(
50
- title=f"Asset Definitions contining the string {search_string} @ {time.asctime()}",
51
- # style = "black on grey66",
50
+ title=f"Asset Definitions containing the string {search_string} @ {time.asctime()}",
52
51
  header_style="white on dark_blue",
52
+ style="bold white on black",
53
+ row_styles=["bold white on black"],
54
+ title_style="bold white on black",
55
+ caption_style="white on black",
53
56
  show_lines=True,
54
57
  box=box.ROUNDED,
55
58
  caption=f"View Server '{server}' @ Platform - {url}",
@@ -116,7 +116,7 @@ def asset_viewer(asset_guid: str, server_name:str, platform_url:str, user:str, u
116
116
  qualified_name = asset_graph["qualifiedName"]
117
117
  resource_name = asset_graph["resourceName"]
118
118
 
119
- tree = Tree(f"{asset_name} ({asset_guid})", style="bold bright_white", guide_style="bold bright_blue")
119
+ tree = Tree(f"{asset_name} ({asset_guid})", style="bold bright_white on black", guide_style="bold bright_blue")
120
120
  style = ""
121
121
 
122
122
  asset_type = asset_graph["type"]["typeName"]
@@ -40,24 +40,24 @@ def collection_viewer(root: str, server_name: str, platform_url: str, user: str,
40
40
  members = collection_client.get_member_list(root_collection_name)
41
41
  if members:
42
42
  for member in members:
43
- style = ""
44
- text_collection_name = Text(f"[bold white] Name: {member['name']}", "")
45
- text_qualified_name = Text(f"* QualifiedName: {member['qualifiedName']}""yellow")
43
+ style = "bold white on black"
44
+ text_collection_name = Text(f"Name: {member['name']}", style)
45
+ text_qualified_name = Text(f"* QualifiedName: {member['qualifiedName']}")
46
46
  text_guid = Text(f"* GUID: {member['guid']}", "green")
47
- text_collection_type = Text(f"* Collection Type: {member['collectionType']}", "cyan")
48
- text_description = Text(f"* Description: {member['description']}", "cyan")
49
- p = Panel.fit(f"[white]{text_collection_name}[green]\n{text_qualified_name}\n{text_guid}\n"
47
+ text_collection_type = Text(f"* Collection Type: {member['collectionType']}")
48
+ text_description = Text(f"* Description: {member['description']}")
49
+ p = Panel.fit(f"['bold white on black']{text_collection_name}[green]\n{text_qualified_name}\n{text_guid}\n"
50
50
  f"{text_collection_type}\n{text_description}")
51
51
  tt = tree.add(p, style=style)
52
52
 
53
53
  children = collection_client.get_collection_members(member['guid'])
54
54
  if type(children) is list:
55
- branch = tt.add(f"[bold magenta]Members", style=style, guide_style=style)
55
+ branch = tt.add(f"[bold magenta on black]Members", style=style, guide_style=style)
56
56
  walk_collection_hierarchy(collection_client, member['qualifiedName'], branch),
57
57
  else:
58
- tt = tree.add(f"[bold magenta]No collections match {root_collection_name}", style="bold red")
58
+ tt = tree.add(f"[bold magenta on black]No collections match {root_collection_name}", style="bold red")
59
59
  try:
60
- tree = Tree(f"[bold bright green]{root}", guide_style="bold bright_blue")
60
+ tree = Tree(f"[bold bright green on black]{root}", guide_style="bold bright_blue")
61
61
  c_client = CollectionManager(server_name, platform_url,
62
62
  user_id=user)
63
63
 
@@ -49,13 +49,15 @@ def display_glossary_terms(search_string: str, guid: str, server: str, url: str,
49
49
  g_client = GlossaryBrowser(server, url)
50
50
  token = g_client.create_egeria_bearer_token(username, user_password)
51
51
 
52
-
53
52
  def generate_table(search_string:str = '*') -> Table:
54
53
  """Make a new table."""
55
54
  table = Table(
56
55
  title=f"Glossary Definitions for Terms like {search_string} @ {time.asctime()}",
57
- # style = "black on grey66",
56
+ style="bold white on black",
57
+ row_styles=["bold white on black"],
58
58
  header_style="white on dark_blue",
59
+ title_style="bold white on black",
60
+ caption_style="white on black",
59
61
  show_lines=True,
60
62
  box=box.ROUNDED,
61
63
  caption=f"Glossary View Server '{server}' @ Platform - {url}",
@@ -100,7 +100,7 @@ def tech_viewer(tech_name: str, server_name:str, platform_url:str, user:str, use
100
100
 
101
101
  note = (f"* Qualified Name: {tech_qualified_name}\n"
102
102
  f"* GUID: {tech_guid}\n"
103
- f"* Createdy by: {tech_created_by}\n"
103
+ f"* Created by: {tech_created_by}\n"
104
104
  f"* Created at: {tech_created_at}\n"
105
105
  f"* Home Collection: {tech_collection}\n"
106
106
  f"{class_md}\n"
@@ -51,8 +51,11 @@ def display_integration_daemon_status(integ_server: str, integ_url: str,
51
51
  """Make a new table."""
52
52
  table = Table(
53
53
  title=f"Integration Daemon Status @ {time.asctime()}",
54
- # style = "black on grey66",
54
+ style = "bold white on black",
55
+ row_styles = ["bold white on black"],
55
56
  header_style="white on dark_blue",
57
+ title_style="bold white on black",
58
+ caption_style="white on black",
56
59
  show_lines=True,
57
60
  box=box.ROUNDED,
58
61
  caption=f"Integration Daemon Status for Server '{integ_server}' @ Platform - {integ_url}",
@@ -0,0 +1,120 @@
1
+ """
2
+ SPDX-License-Identifier: Apache-2.0
3
+ Copyright Contributors to the ODPi Egeria project.
4
+
5
+ This is the pyegeria client package. The purpose of the package is to provide
6
+ easy access to Egeria (https://egeria-project.org). The package is currently in
7
+ development.
8
+
9
+ The first capabilities are around Egeria's platform services used to start and stop
10
+ the server platform and servers.
11
+
12
+ """
13
+
14
+ from ._globals import (is_debug, disable_ssl_warnings, max_paging_size, TEMPLATE_GUIDS, INTEGRATION_GUIDS
15
+ )
16
+ from .core_guids import *
17
+
18
+ if disable_ssl_warnings:
19
+ from urllib3.exceptions import InsecureRequestWarning
20
+ from urllib3 import disable_warnings
21
+
22
+ disable_warnings(InsecureRequestWarning)
23
+
24
+ from ._exceptions import (InvalidParameterException, PropertyServerException, UserNotAuthorizedException,
25
+ print_exception_response)
26
+ # from .utils import print_response, body_slimmer, wrap_text
27
+ from .utils import print_response, body_slimmer
28
+ from ._client import Client
29
+ from .automated_curation_omvs import AutomatedCuration
30
+ from .core_omag_server_config import CoreServerConfig
31
+ from .platform_services import Platform
32
+ from .registered_info import RegisteredInfo
33
+ from .glossary_browser_omvs import GlossaryBrowser
34
+ from ._validators import (validate_user_id, validate_name, validate_guid, validate_server_name, validate_search_string,
35
+ validate_url, is_json, validate_public)
36
+ from .asset_catalog_omvs import AssetCatalog
37
+
38
+ from .my_profile_omvs import MyProfile
39
+ from .full_omag_server_config import FullServerConfig
40
+ from .server_operations import ServerOps
41
+ from .collection_manager_omvs import CollectionManager
42
+ from .project_manager_omvs import ProjectManager
43
+ from .valid_metadata_omvs import ValidMetadataManager
44
+ from .asset_catalog_omvs import AssetCatalog
45
+ from .Xloaded_resources_omvs import LoadedResources
46
+ from ._deprecated_gov_engine import GovEng
47
+ from .runtime_manager_omvs import RuntimeManager
48
+ from .action_author_omvs import GovernanceAuthor
49
+ from .glossary_manager_omvs import GlossaryManager
50
+ from .create_tech_guid_lists import build_global_guid_lists
51
+
52
+
53
+ #
54
+ # The following assignments were generated by the `create_tech_guid_lists.py` utility that uses the pyegeria functions
55
+ # to interrogate Egeria (and the Core Content Pack) for the GUIDS associates with integration connectors and templates.
56
+ # While these GUIDS rarely change, they will evolve as new connectors are built and integrated. This could impact some
57
+ # of the pyegeria methods that, as a convenience, use pre-assigned GUIDS to create new elements and such.
58
+ #
59
+ # This list may also be augmented (and of use) to those wishing to extend the pyegeria methods to automate or simplify
60
+ # the use of custom connectors and templates.
61
+ #
62
+ #
63
+ global TEMPLATE_GUIDS, INTEGRATION_GUIDS
64
+
65
+ TEMPLATE_GUIDS['CSV Data File template'] = '13770f93-13c8-42be-9bb8-e0b1b1e52b1f'
66
+ TEMPLATE_GUIDS['Keystore File template'] = 'fbcfcc0c-1652-421f-b49b-c3e1c108768f'
67
+ INTEGRATION_GUIDS['JDBC Relational Database'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
68
+ TEMPLATE_GUIDS['Data File template'] = '66d8dda9-00cf-4e59-938c-4b0583596b1e'
69
+ TEMPLATE_GUIDS['View Server template'] = 'fd61ca01-390d-4aa2-a55d-426826aa4e1b'
70
+ TEMPLATE_GUIDS['Archive File template'] = '7578e504-d00f-406d-a194-3fc0a351cdf9'
71
+ TEMPLATE_GUIDS['OSS Unity Catalog Volume template'] = '92d2d2dc-0798-41f0-9512-b10548d312b7'
72
+ TEMPLATE_GUIDS['PostgreSQL Relational Database template'] = '3d398b3f-7ae6-4713-952a-409f3dea8520'
73
+ INTEGRATION_GUIDS['PostgreSQL Relational Database'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
74
+ TEMPLATE_GUIDS['Program File template'] = '32d27e9c-1fdf-455a-ad2a-42b4d7d99108'
75
+ TEMPLATE_GUIDS['FileFolder template'] = 'fbdd8efd-1b69-474c-bb6d-0a304b394146'
76
+ INTEGRATION_GUIDS['FileFolder'] = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
77
+ INTEGRATION_GUIDS['FileFolder'] = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
78
+ TEMPLATE_GUIDS['PostgreSQL Server template'] = '542134e6-b9ce-4dce-8aef-22e8daf34fdb'
79
+ INTEGRATION_GUIDS['PostgreSQL Server'] = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
80
+ TEMPLATE_GUIDS['Audio Data File template'] = '39b4b670-7f15-4744-a5ba-62e8edafbcee'
81
+ TEMPLATE_GUIDS['Document File template'] = 'eb6f728d-fa54-4350-9807-1199cbf96851'
82
+ TEMPLATE_GUIDS['Integration Daemon template'] = '6b3516f0-dd13-4786-9601-07215f995197'
83
+ TEMPLATE_GUIDS['XML Data File template'] = 'ea67ae71-c674-473e-b38b-689879d2a7d9'
84
+ TEMPLATE_GUIDS['Parquet Data File template'] = '7f6cd744-79c3-4d25-a056-eeb1a91574c3'
85
+ TEMPLATE_GUIDS['3D Image Data File template'] = '0059ea2b-6292-4cac-aa6f-a80a605f1114'
86
+ TEMPLATE_GUIDS['YAML File template'] = '2221855b-2b64-4b45-a2ee-c40adc5e2a64'
87
+ TEMPLATE_GUIDS['Metadata Access Server template'] = 'bd8de890-fa79-4c24-aab8-20b41b5893dd'
88
+ TEMPLATE_GUIDS['Properties File template'] = '3b281111-a0ef-4fc4-99e7-9a0ef84a7636'
89
+ TEMPLATE_GUIDS['Vector Data File template'] = 'db1bec7f-55a9-40d3-91c0-a57b76d422e2'
90
+ TEMPLATE_GUIDS['OSS Unity Catalog Schema template'] = '5bf92b0f-3970-41ea-b0a3-aacfbf6fd92e'
91
+ TEMPLATE_GUIDS['OSS Unity Catalog Table template'] = '6cc1e5f5-4c1e-4290-a80e-e06643ffb13d'
92
+ TEMPLATE_GUIDS['Apache Kafka Server template'] = '5e1ff810-5418-43f7-b7c4-e6e062f9aff7'
93
+ INTEGRATION_GUIDS['Apache Kafka Server'] = 'fa1f711c-0b34-4b57-8e6e-16162b132b0c'
94
+ TEMPLATE_GUIDS['Executable File template'] = '3d99a163-7a13-4576-a212-784010a8302a'
95
+ TEMPLATE_GUIDS['JSON Data File template'] = 'c4836635-7e9e-446a-83b5-15e206b1aff3'
96
+ TEMPLATE_GUIDS['OSS Unity Catalog Function template'] = 'a490ba65-6104-4213-9be9-524e16fed8aa'
97
+ TEMPLATE_GUIDS['File System template'] = '522f228c-097c-4f90-9efc-26c1f2696f87'
98
+ TEMPLATE_GUIDS['Source Code File template'] = '9c7013ef-f29b-4b01-a8ea-5ea14f64c67a'
99
+ INTEGRATION_GUIDS['Software Server'] = 'b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e'
100
+ TEMPLATE_GUIDS['Apple MacBook Pro template'] = '32a9fd56-85c9-47fe-a211-9da3871bf4da'
101
+ TEMPLATE_GUIDS['Build Instruction File template'] = 'fbb2fa2e-8bcb-402e-9be7-5c6db9f2c504'
102
+ TEMPLATE_GUIDS['Spreadsheet Data File template'] = 'e4fabff5-2ba9-4050-9076-6ed917970b4c'
103
+ TEMPLATE_GUIDS['UNIX File System template'] = '27117270-8667-41d0-a99a-9118f9b60199'
104
+ TEMPLATE_GUIDS['Video Data File template'] = '93b2b722-ec0f-4da4-960a-b8d4922f8bf5'
105
+ TEMPLATE_GUIDS['PostgreSQL Relational Database Schema template'] = '82a5417c-d882-4271-8444-4c6a996a8bfc'
106
+ TEMPLATE_GUIDS['OSS Unity Catalog Server template'] = 'dcca9788-b30f-4007-b1ac-ec634aff6879'
107
+ INTEGRATION_GUIDS['OSS Unity Catalog Server'] = '06d068d9-9e08-4e67-8c59-073bbf1013af'
108
+ TEMPLATE_GUIDS['Engine Host template'] = '1764a891-4234-45f1-8cc3-536af40c790d'
109
+ TEMPLATE_GUIDS['Avro Data File template'] = '9f5be428-058e-41dd-b506-3a222283b579'
110
+ TEMPLATE_GUIDS['File template'] = 'ae3067c7-cc72-4a18-88e1-746803c2c86f'
111
+ TEMPLATE_GUIDS['Apache Kafka Topic template'] = 'ea8f81c9-c59c-47de-9525-7cc59d1251e5'
112
+ TEMPLATE_GUIDS['Script File template'] = 'dbd5e6bb-1ff8-46f4-a007-fb0485f68c92'
113
+ TEMPLATE_GUIDS['Apache Atlas Server template'] = 'fe6dce45-a978-4417-ab55-17f05b8bcea7'
114
+ TEMPLATE_GUIDS['Raster Data File template'] = '47211156-f03f-4881-8526-015e695a3dac'
115
+ TEMPLATE_GUIDS['Data Folder template'] = '372a0379-7060-4c9d-8d84-bc709b31794c'
116
+ TEMPLATE_GUIDS['OSS Unity Catalog Catalog template'] = '5ee006aa-a6d6-411b-9b8d-5f720c079cae'
117
+ INTEGRATION_GUIDS['OSS Unity Catalog Catalog'] = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
118
+ TEMPLATE_GUIDS['OMAG Server Platform template'] = '9b06c4dc-ddc8-47ae-b56b-28775d3a96f0'
119
+
120
+
@@ -18,7 +18,7 @@ from pyegeria._exceptions import (
18
18
  InvalidParameterException,
19
19
  PropertyServerException,
20
20
  UserNotAuthorizedException )
21
- from pyegeria._globals import max_paging_size, template_guids, integration_guids
21
+ from pyegeria._globals import max_paging_size, TEMPLATE_GUIDS,INTEGRATION_GUIDS
22
22
  from pyegeria._validators import (
23
23
  validate_name,
24
24
  validate_server_name,
@@ -31,5 +31,6 @@ star_ratings = (
31
31
  "TWO_STARS",
32
32
  )
33
33
 
34
- template_guids: dict = {}
35
- integration_guids: dict = {}
34
+ TEMPLATE_GUIDS: dict = {}
35
+ INTEGRATION_GUIDS: dict = {}
36
+
@@ -0,0 +1,67 @@
1
+ """
2
+ SPDX-License-Identifier: Apache-2.0
3
+ Copyright Contributors to the ODPi Egeria project.
4
+
5
+ Script to create a new file to initiate tech guids.
6
+
7
+ """
8
+ import json
9
+ from rich import print, print_json
10
+ from datetime import datetime
11
+ from rich.console import Console
12
+
13
+ from pyegeria import AutomatedCuration
14
+
15
+ console = Console(width=200)
16
+
17
+
18
+ def build_global_guid_lists(server:str = "view-server",url: str = "https://localhost:9443",
19
+ user_id: str = "erinoverview", user_pwd:str = "secret") -> None:
20
+ cur_time = datetime.now().strftime("%d-%m-%Y %H:%M")
21
+ file_name = f"./tech_guids_{cur_time}.py"
22
+ a_client = AutomatedCuration(server, url, user_id=user_id,
23
+ user_pwd=user_pwd)
24
+ token = a_client.create_egeria_bearer_token()
25
+ # get all technology types
26
+
27
+ tech_types = a_client.get_all_technology_types()
28
+ if type(tech_types) is list:
29
+ with open(file_name, "w") as f:
30
+ out = f"global template_guids, integration_guids\n"
31
+ f.write(out)
32
+ for tech_type in tech_types:
33
+ # get tech type details
34
+ display_name = tech_type["name"]
35
+
36
+ details = a_client.get_technology_type_detail(display_name)
37
+ if type(details) is str:
38
+ console.print(f"{display_name} technology type has no details")
39
+ continue
40
+ # get templates and update the template_guids global
41
+ templates = details.get("catalogTemplates", "Not Found")
42
+
43
+ if type(templates) is list:
44
+ for template in templates:
45
+ template_name = template.get("name", None)
46
+ template_guid = template["relatedElement"]["guid"]
47
+ out = f"TEMPLATE_GUIDS['{template_name}'] = '{template_guid}'\n"
48
+ console.print(f"Added {template_name} template with GUID {template_guid}")
49
+ f.write(out)
50
+ else:
51
+ console.print(f"{display_name} technology type has no templates")
52
+ # Now find the integration connector guids
53
+ resource_list = details.get('resourceList', ' ')
54
+ if type(resource_list) is list:
55
+ for resource in resource_list:
56
+ resource_guid = resource['relatedElement']['guid']
57
+ resource_type = resource['relatedElement']['type']['typeName']
58
+ if resource_type == "IntegrationConnector":
59
+ out = f"INTEGRATION_GUIDS['{display_name}'] = '{resource_guid}'\n"
60
+ console.print(f"Added {display_name} integration connector with GUID {resource_guid}")
61
+ f.write(out)
62
+ else:
63
+ console.print(f"{display_name} technology type has no integration connectors")
64
+
65
+
66
+ if __name__ == "__main__":
67
+ build_global_guid_lists()
@@ -0,0 +1,55 @@
1
+ global template_guids, integration_guids
2
+ TEMPLATE_GUIDS['CSV Data File template'] = '13770f93-13c8-42be-9bb8-e0b1b1e52b1f'
3
+ TEMPLATE_GUIDS['Keystore File template'] = 'fbcfcc0c-1652-421f-b49b-c3e1c108768f'
4
+ INTEGRATION_GUIDS['JDBC Relational Database'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
5
+ TEMPLATE_GUIDS['Data File template'] = '66d8dda9-00cf-4e59-938c-4b0583596b1e'
6
+ TEMPLATE_GUIDS['View Server template'] = 'fd61ca01-390d-4aa2-a55d-426826aa4e1b'
7
+ TEMPLATE_GUIDS['Archive File template'] = '7578e504-d00f-406d-a194-3fc0a351cdf9'
8
+ TEMPLATE_GUIDS['OSS Unity Catalog Volume template'] = '92d2d2dc-0798-41f0-9512-b10548d312b7'
9
+ TEMPLATE_GUIDS['PostgreSQL Relational Database template'] = '3d398b3f-7ae6-4713-952a-409f3dea8520'
10
+ INTEGRATION_GUIDS['PostgreSQL Relational Database'] = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
11
+ TEMPLATE_GUIDS['Program File template'] = '32d27e9c-1fdf-455a-ad2a-42b4d7d99108'
12
+ TEMPLATE_GUIDS['FileFolder template'] = 'fbdd8efd-1b69-474c-bb6d-0a304b394146'
13
+ INTEGRATION_GUIDS['FileFolder'] = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
14
+ INTEGRATION_GUIDS['FileFolder'] = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
15
+ TEMPLATE_GUIDS['PostgreSQL Server template'] = '542134e6-b9ce-4dce-8aef-22e8daf34fdb'
16
+ INTEGRATION_GUIDS['PostgreSQL Server'] = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
17
+ TEMPLATE_GUIDS['Audio Data File template'] = '39b4b670-7f15-4744-a5ba-62e8edafbcee'
18
+ TEMPLATE_GUIDS['Document File template'] = 'eb6f728d-fa54-4350-9807-1199cbf96851'
19
+ TEMPLATE_GUIDS['Integration Daemon template'] = '6b3516f0-dd13-4786-9601-07215f995197'
20
+ TEMPLATE_GUIDS['XML Data File template'] = 'ea67ae71-c674-473e-b38b-689879d2a7d9'
21
+ TEMPLATE_GUIDS['Parquet Data File template'] = '7f6cd744-79c3-4d25-a056-eeb1a91574c3'
22
+ TEMPLATE_GUIDS['3D Image Data File template'] = '0059ea2b-6292-4cac-aa6f-a80a605f1114'
23
+ TEMPLATE_GUIDS['YAML File template'] = '2221855b-2b64-4b45-a2ee-c40adc5e2a64'
24
+ TEMPLATE_GUIDS['Metadata Access Server template'] = 'bd8de890-fa79-4c24-aab8-20b41b5893dd'
25
+ TEMPLATE_GUIDS['Properties File template'] = '3b281111-a0ef-4fc4-99e7-9a0ef84a7636'
26
+ TEMPLATE_GUIDS['Vector Data File template'] = 'db1bec7f-55a9-40d3-91c0-a57b76d422e2'
27
+ TEMPLATE_GUIDS['OSS Unity Catalog Schema template'] = '5bf92b0f-3970-41ea-b0a3-aacfbf6fd92e'
28
+ TEMPLATE_GUIDS['OSS Unity Catalog Table template'] = '6cc1e5f5-4c1e-4290-a80e-e06643ffb13d'
29
+ TEMPLATE_GUIDS['Apache Kafka Server template'] = '5e1ff810-5418-43f7-b7c4-e6e062f9aff7'
30
+ INTEGRATION_GUIDS['Apache Kafka Server'] = 'fa1f711c-0b34-4b57-8e6e-16162b132b0c'
31
+ TEMPLATE_GUIDS['Executable File template'] = '3d99a163-7a13-4576-a212-784010a8302a'
32
+ TEMPLATE_GUIDS['JSON Data File template'] = 'c4836635-7e9e-446a-83b5-15e206b1aff3'
33
+ TEMPLATE_GUIDS['OSS Unity Catalog Function template'] = 'a490ba65-6104-4213-9be9-524e16fed8aa'
34
+ TEMPLATE_GUIDS['File System template'] = '522f228c-097c-4f90-9efc-26c1f2696f87'
35
+ TEMPLATE_GUIDS['Source Code File template'] = '9c7013ef-f29b-4b01-a8ea-5ea14f64c67a'
36
+ INTEGRATION_GUIDS['Software Server'] = 'b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e'
37
+ TEMPLATE_GUIDS['Apple MacBook Pro template'] = '32a9fd56-85c9-47fe-a211-9da3871bf4da'
38
+ TEMPLATE_GUIDS['Build Instruction File template'] = 'fbb2fa2e-8bcb-402e-9be7-5c6db9f2c504'
39
+ TEMPLATE_GUIDS['Spreadsheet Data File template'] = 'e4fabff5-2ba9-4050-9076-6ed917970b4c'
40
+ TEMPLATE_GUIDS['UNIX File System template'] = '27117270-8667-41d0-a99a-9118f9b60199'
41
+ TEMPLATE_GUIDS['Video Data File template'] = '93b2b722-ec0f-4da4-960a-b8d4922f8bf5'
42
+ TEMPLATE_GUIDS['PostgreSQL Relational Database Schema template'] = '82a5417c-d882-4271-8444-4c6a996a8bfc'
43
+ TEMPLATE_GUIDS['OSS Unity Catalog Server template'] = 'dcca9788-b30f-4007-b1ac-ec634aff6879'
44
+ INTEGRATION_GUIDS['OSS Unity Catalog Server'] = '06d068d9-9e08-4e67-8c59-073bbf1013af'
45
+ TEMPLATE_GUIDS['Engine Host template'] = '1764a891-4234-45f1-8cc3-536af40c790d'
46
+ TEMPLATE_GUIDS['Avro Data File template'] = '9f5be428-058e-41dd-b506-3a222283b579'
47
+ TEMPLATE_GUIDS['File template'] = 'ae3067c7-cc72-4a18-88e1-746803c2c86f'
48
+ TEMPLATE_GUIDS['Apache Kafka Topic template'] = 'ea8f81c9-c59c-47de-9525-7cc59d1251e5'
49
+ TEMPLATE_GUIDS['Script File template'] = 'dbd5e6bb-1ff8-46f4-a007-fb0485f68c92'
50
+ TEMPLATE_GUIDS['Apache Atlas Server template'] = 'fe6dce45-a978-4417-ab55-17f05b8bcea7'
51
+ TEMPLATE_GUIDS['Raster Data File template'] = '47211156-f03f-4881-8526-015e695a3dac'
52
+ TEMPLATE_GUIDS['Data Folder template'] = '372a0379-7060-4c9d-8d84-bc709b31794c'
53
+ TEMPLATE_GUIDS['OSS Unity Catalog Catalog template'] = '5ee006aa-a6d6-411b-9b8d-5f720c079cae'
54
+ INTEGRATION_GUIDS['OSS Unity Catalog Catalog'] = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
55
+ TEMPLATE_GUIDS['OMAG Server Platform template'] = '9b06c4dc-ddc8-47ae-b56b-28775d3a96f0'
@@ -7,8 +7,10 @@ General utility functions in support of the Egeria Python Client package.
7
7
  """
8
8
  import json
9
9
  from rich import print, print_json
10
+ from datetime import datetime
11
+ from rich.console import Console
10
12
 
11
-
13
+ console = Console(width=200)
12
14
 
13
15
  # def wrap_text(df: pd.DataFrame, wrap_len: int = 30) -> pd.DataFrame:
14
16
  # """ Wrap the text in a dataframe
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "0.5.5.20"
3
+ version = "0.5.5.21"
4
4
  license = 'Apache 2.0'
5
5
  authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
6
6
  readme = "README.md"
@@ -1,53 +0,0 @@
1
- """
2
- SPDX-License-Identifier: Apache-2.0
3
- Copyright Contributors to the ODPi Egeria project.
4
-
5
- This is the pyegeria client package. The purpose of the package is to provide
6
- easy access to Egeria (https://egeria-project.org). The package is currently in
7
- development.
8
-
9
- The first capabilities are around Egeria's platform services used to start and stop
10
- the server platform and servers.
11
-
12
- """
13
-
14
- from ._globals import (is_debug, disable_ssl_warnings, max_paging_size, template_guids, integration_guids
15
- )
16
- from .core_guids import *
17
-
18
- if disable_ssl_warnings:
19
- from urllib3.exceptions import InsecureRequestWarning
20
- from urllib3 import disable_warnings
21
-
22
- disable_warnings(InsecureRequestWarning)
23
-
24
- from ._exceptions import (InvalidParameterException, PropertyServerException, UserNotAuthorizedException,
25
- print_exception_response)
26
- # from .utils import print_response, body_slimmer, wrap_text
27
- from .utils import print_response, body_slimmer
28
- from ._client import Client
29
- from .automated_curation_omvs import AutomatedCuration
30
- from .core_omag_server_config import CoreServerConfig
31
- from .platform_services import Platform
32
- from .registered_info import RegisteredInfo
33
- from .glossary_browser_omvs import GlossaryBrowser
34
- from ._validators import (validate_user_id, validate_name, validate_guid, validate_server_name, validate_search_string,
35
- validate_url, is_json, validate_public)
36
- from .asset_catalog_omvs import AssetCatalog
37
-
38
- from .my_profile_omvs import MyProfile
39
- from .full_omag_server_config import FullServerConfig
40
- from .server_operations import ServerOps
41
- from .collection_manager_omvs import CollectionManager
42
- from .project_manager_omvs import ProjectManager
43
- from .valid_metadata_omvs import ValidMetadataManager
44
- from .asset_catalog_omvs import AssetCatalog
45
- from .Xloaded_resources_omvs import LoadedResources
46
- from ._deprecated_gov_engine import GovEng
47
- from .runtime_manager_omvs import RuntimeManager
48
- from .action_author_omvs import GovernanceAuthor
49
- from .glossary_manager_omvs import GlossaryManager
50
-
51
-
52
-
53
-
File without changes
File without changes