pyegeria 0.5.5.19__py3-none-any.whl → 0.5.5.21__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.
@@ -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"
@@ -0,0 +1,64 @@
1
+ """
2
+ SPDX-License-Identifier: Apache-2.0
3
+ Copyright Contributors to the ODPi Egeria project.
4
+
5
+
6
+
7
+ This script refreshed an integration daemon.
8
+
9
+ """
10
+
11
+ import os
12
+ import argparse
13
+ import time
14
+
15
+ from pyegeria import ServerOps, AutomatedCuration
16
+ from pyegeria._exceptions import (
17
+ InvalidParameterException,
18
+ PropertyServerException,
19
+ UserNotAuthorizedException,
20
+ print_exception_response,
21
+ )
22
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
23
+ EGERIA_KAFKA_ENDPOINT = os.environ.get('KAFKA_ENDPOINT', 'localhost:9092')
24
+ EGERIA_PLATFORM_URL = os.environ.get('EGERIA_PLATFORM_URL', 'https://localhost:9443')
25
+ EGERIA_VIEW_SERVER = os.environ.get('VIEW_SERVER', 'view-server')
26
+ EGERIA_VIEW_SERVER_URL = os.environ.get('EGERIA_VIEW_SERVER_URL', 'https://localhost:9443')
27
+ EGERIA_INTEGRATION_DAEMON = os.environ.get('INTEGRATION_DAEMON', 'integration-daemon')
28
+ EGERIA_INTEGRATION_DAEMON_URL = os.environ.get('EGERIA_INTEGRATION_DAEMON_URL', 'https://localhost:9443')
29
+ EGERIA_ADMIN_USER = os.environ.get('ADMIN_USER', 'garygeeke')
30
+ EGERIA_ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD', 'secret')
31
+ EGERIA_USER = os.environ.get('EGERIA_USER', 'erinoverview')
32
+ EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
33
+
34
+
35
+
36
+
37
+ def main():
38
+ parser = argparse.ArgumentParser()
39
+ parser.add_argument("--server", help="Name of the integration daemon to refresh")
40
+ parser.add_argument("--url", help="URL Platform to connect to")
41
+ parser.add_argument("--userid", help="User Id")
42
+ parser.add_argument("--password", help="User Password")
43
+ args = parser.parse_args()
44
+
45
+ server = args.server if args.server is not None else EGERIA_INTEGRATION_DAEMON
46
+ url = args.url if args.url is not None else EGERIA_INTEGRATION_DAEMON_URL
47
+ userid = args.userid if args.userid is not None else EGERIA_ADMIN_USER
48
+ user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
49
+
50
+ try:
51
+
52
+ s_client = ServerOps(server, url, userid)
53
+
54
+ s_client.refresh_integration_connectors(None, server)
55
+
56
+ print(f"\n===> Integration Daemon: \'{server}\' was refreshed.")
57
+
58
+
59
+ except (InvalidParameterException, PropertyServerException) as e:
60
+ print_exception_response(e)
61
+
62
+
63
+ if __name__ == "__main__":
64
+ main()
@@ -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}",
pyegeria/__init__.py CHANGED
@@ -11,7 +11,7 @@ the server platform and servers.
11
11
 
12
12
  """
13
13
 
14
- from ._globals import (is_debug, disable_ssl_warnings, max_paging_size, template_guids, integration_guids
14
+ from ._globals import (is_debug, disable_ssl_warnings, max_paging_size, TEMPLATE_GUIDS, INTEGRATION_GUIDS
15
15
  )
16
16
  from .core_guids import *
17
17
 
@@ -47,7 +47,74 @@ from ._deprecated_gov_engine import GovEng
47
47
  from .runtime_manager_omvs import RuntimeManager
48
48
  from .action_author_omvs import GovernanceAuthor
49
49
  from .glossary_manager_omvs import GlossaryManager
50
+ from .create_tech_guid_lists import build_global_guid_lists
50
51
 
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'
52
119
 
53
120
 
pyegeria/_client.py CHANGED
@@ -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,
pyegeria/_globals.py CHANGED
@@ -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'
pyegeria/utils.py CHANGED
@@ -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
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.5.5.19
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
@@ -2,10 +2,10 @@ examples/doc_samples/Create_Collection_Sample.py,sha256=D8nhc4qLXIzAqVdJQjmFIS-j
2
2
  examples/doc_samples/Create_Sustainability_Collection_Sample.py,sha256=iLBm1LwRLi42Gayyb-wcWZ5NySQ6sc4kVSmwIAzP2Po,5049
3
3
  examples/widgets/catalog_user/README.md,sha256=aCCVo7iqyE-XGEvmoYXnkIGM0VskF95JTj6Egzec7LM,883
4
4
  examples/widgets/catalog_user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- examples/widgets/catalog_user/list_assets.py,sha256=EjVFRMyDLsyK_PCO0Zw4tyXemHXiyfj30O1WhjcmdE8,4687
6
- examples/widgets/catalog_user/view_asset_graph.py,sha256=WXKOPn03-FrSTutRGsSEsCEYCZp_ArxblOLYiF0dwOU,10552
7
- examples/widgets/catalog_user/view_collection.py,sha256=8MAsHZL9ooDOdMnxREWC7mLGxG419WUAliThjkSee_M,4331
8
- examples/widgets/catalog_user/view_glossary.py,sha256=CGqKMiS-qENi67T2igQXvprIHm3tfYfE8ApDEAppGos,4898
5
+ examples/widgets/catalog_user/list_assets.py,sha256=H-iy5yh3okFHhEb6nIKtuEkY3ROen8bCiINRgdj1BkI,4789
6
+ examples/widgets/catalog_user/view_asset_graph.py,sha256=vVJ3p30zU_jrQXqRFjUzs-XdRJWaaVSuFUsZSt_D4Cg,10561
7
+ examples/widgets/catalog_user/view_collection.py,sha256=qfxK-HImDwPKyVCFF22DuDYHwqneKs_9uI1FSBpW4nU,4359
8
+ examples/widgets/catalog_user/view_glossary.py,sha256=OIOgPipbiJGlZQzrH9d-GBseMGfIGJsYmW1ndRPOMeA,5036
9
9
  examples/widgets/developer/README.md,sha256=nxDnfr3BCiGgW5G1VxWxiwUWJXIe5wreNuUeRyIt_hY,1343
10
10
  examples/widgets/developer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  examples/widgets/developer/get_guid_info.py,sha256=CVNq56pNFC1kKk3ZnnLJsDx83e1WwNGIgHtscNNgY_I,3545
@@ -18,13 +18,14 @@ examples/widgets/developer/list_tech_types.py,sha256=SJF3KKsuwdoH-Sg0puh-r76i8f9
18
18
  examples/widgets/developer/list_valid_metadata_values.py,sha256=jBKiM_xSihYvzkveDgPM6ZIELkdGqVYBFaVLVl4ujv8,5531
19
19
  examples/widgets/operational/README.md,sha256=PJsSDcvMv6E6og6y-cwvxFX5lhCII0UCwgKiM1T17MQ,1595
20
20
  examples/widgets/operational/__init__.py,sha256=8ebdyTD7i-XXyZr0vDx6jnXalE6QjhCvu7n6YXxwgL0,112
21
- examples/widgets/operational/get_tech_type_elements.py,sha256=zSyY3RMXDNqifG3w28LJo6cnKL4hGUKnXByfhJeAyQE,5838
21
+ examples/widgets/operational/get_tech_type_elements.py,sha256=XotwTj3bNWLJBE7yTr2MG9Llm5GmHGLoBAUtNYu9QfM,5837
22
22
  examples/widgets/operational/get_tech_type_template.py,sha256=4dL7mm2BMftTysoMpajRgUlisw1cjvx_w2CT2MwPotU,5857
23
+ examples/widgets/operational/refresh_integration_daemon.py,sha256=7GF_xzO83nhvTaxJR2DMI7fsHg6TA4xaIy7z8YNbSlk,2274
23
24
  examples/widgets/operational/view_asset_events.py,sha256=D_3jVN2PiTdXdvrUpo6f-m8E-MWXEG23-CQcHqyR2zs,3396
24
25
  examples/widgets/operational/view_coco_status.py,sha256=QloMgVcXL2Fx2XHyk71PKCwmzRfc_Q_cAvpyomcYi_Y,3322
25
26
  examples/widgets/operational/view_eng_action_status.py,sha256=5KHNKMSHxe4-nEIyLJjcaWUBrbV3JcP6ijri5KmmVaA,5969
26
27
  examples/widgets/operational/view_gov_eng_status.py,sha256=vcXUSNIuZNh2JxhtNHskmNLa7FnaHJj-tmWfuCvRdnw,4404
27
- examples/widgets/operational/view_integ_daemon_status.py,sha256=Ivuz0gHLWonVw9cWRs6EuH4U2HQgMLsLOnvTW-KPmlU,6918
28
+ examples/widgets/operational/view_integ_daemon_status.py,sha256=jJouL-pePUL5EIm0LvpSd8lcRXqAsKa1GuP5qkFOj_M,7061
28
29
  examples/widgets/operational/view_platform_status.py,sha256=kRSOWhhcKUr5w5RWC2igYDTxQQjso200zGb0AOJS-XU,5499
29
30
  examples/widgets/operational/view_server_list.py,sha256=GVEZ9iMg85haZA3kHE6dZxTYI6Ph94wkC8zhwo5JiU0,4178
30
31
  examples/widgets/operational/view_server_status.py,sha256=kwJYe5iOrlfdGLlpAYWS29iBw9JkLOWPimZhMg6f_-Y,3877
@@ -37,11 +38,11 @@ examples/widgets/personal_organizer/view_my_todos.py,sha256=oIWmIObQSOizGE0Z-lYR
37
38
  examples/widgets/personal_organizer/view_open_todos.py,sha256=TLXpRpkJrTxz87_2KHZDlPbJNWXGO4wRouSQM9pVuw4,5093
38
39
  pyegeria/Xfeedback_manager_omvs.py,sha256=uNQMOPG08UyIuLzBfYt4uezDyLWdpBgJ2ZuvqumaWuY,9231
39
40
  pyegeria/Xloaded_resources_omvs.py,sha256=cseWZTIwNhkzhZ0fhujI66DslNAQcjuwsz_p1GRmSPQ,3392
40
- pyegeria/__init__.py,sha256=EI2XPKvlin9TOyELgzmVl8nToZukeZpmbaEbZkx1PX0,2074
41
- pyegeria/_client.py,sha256=Nb2819DMiL085eJ3CMzbvW8RB2xrB8kLd-k5vjVprE8,26308
41
+ pyegeria/__init__.py,sha256=Wy3krRoxg7ZmFjVgoGHaZp27vb_fPbv4TfhsTPJauI0,7415
42
+ pyegeria/_client.py,sha256=AXWMWfTHk1e6xAlAdN16C1ETLvgdkmOSbgq-OSoKql8,26307
42
43
  pyegeria/_deprecated_gov_engine.py,sha256=_DAEHsksnTKGqL9-TaaMVrfnNOrvatNACfg7pJ-ZX4w,17600
43
44
  pyegeria/_exceptions.py,sha256=NJ7vAhmvusK1ENvY2MMrBB6A6TgpYjzS9QJxFH56b8c,18470
44
- pyegeria/_globals.py,sha256=PK7ulp85ZmtlfGNcffSuUbaJdCS6rvcZUcudM6-pjKc,614
45
+ pyegeria/_globals.py,sha256=DF6851qHPpoDrY4w5JGmT-8zmMfVXf9MMG6nKlu-BYM,616
45
46
  pyegeria/_validators.py,sha256=DQuMsATRGxGSBtOrVtXlCgWXGhj6Nh-uqPtCsrUGLxk,12703
46
47
  pyegeria/action_author_omvs.py,sha256=m0wsfmyO-VxRDaPpACeIDw8eVAFu3RVbo45RPCUel9M,6340
47
48
  pyegeria/asset_catalog_omvs.py,sha256=Y-Eh0k-zkJNOChVlLbC2bsTSBVLWhk-0-ewCV4YlyDY,25802
@@ -49,6 +50,7 @@ pyegeria/automated_curation_omvs.py,sha256=yp5d7D_nNRrx92MU8Z72zw5nloTzBDJVfxvwZ
49
50
  pyegeria/collection_manager_omvs.py,sha256=IyGCbqx2Blm0OwCsC2071EeoNWHXyWGl_6pEtacizAs,112642
50
51
  pyegeria/core_guids.py,sha256=JKziCsKhklbWRramQ0orRMNTudJXYB721a32TJegBl4,4320
51
52
  pyegeria/core_omag_server_config.py,sha256=16ld7aBTgO3gGhvFs-_yzwqPsatdCAiKYi005_2evZU,93096
53
+ pyegeria/create_tech_guid_lists.py,sha256=Miz-CMPGo9EHv50ExQfEEVEWaGd1rIV6p8Ywprz8q90,2984
52
54
  pyegeria/full_omag_server_config.py,sha256=l4G0oM6l-axosYACypqNqzkF6wELzs9FgKJwvDMF0Fc,45817
53
55
  pyegeria/glossary_browser_omvs.py,sha256=nUCDSQ8cw8vuYgjfcaj1zLIefVI5j51evxPyXCIc4X8,101716
54
56
  pyegeria/glossary_manager_omvs.py,sha256=AyTNBeOwa7ISOkpjzHHEtpiFzFo0ykcEQ525h_wqfMM,133328
@@ -58,10 +60,11 @@ pyegeria/project_manager_omvs.py,sha256=_U6m2vquu4eEV7aY8X3hsvfm2zX0EBica1reGWX9
58
60
  pyegeria/registered_info.py,sha256=GfMcYz3IO0aNquf8qCrYQ9cA5KplhPx1kNt0_nMMpTM,6475
59
61
  pyegeria/runtime_manager_omvs.py,sha256=WekK7Yeyn6Qu9YmbSDo3m57MN0xOsIm9M8kGHfROZHI,37628
60
62
  pyegeria/server_operations.py,sha256=hEaU6YC0iNEQFvcXYvcE4J6BQKlqMJk33nViCNIEBE4,16349
61
- pyegeria/utils.py,sha256=lWd0FrHh7DFR1UeOzk3Y1I_xR_zmlFYWL1Pci-ZuZmw,5342
63
+ pyegeria/tech_guids_22-07-2024 13:22.py,sha256=nsjPrCDf9gohdw3LRcO5-uwzBN_nMB7Re_vtDJIgaIY,4643
64
+ pyegeria/utils.py,sha256=f8isUaKDy-GJxhwswWgP_bw6q1CUzBUNVcCtin8N1cA,5433
62
65
  pyegeria/valid_metadata_omvs.py,sha256=aisdRodIwJSkyArAzfm_sEnBELh69xE8k4Nea-vHu8M,36745
63
- pyegeria-0.5.5.19.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
64
- pyegeria-0.5.5.19.dist-info/METADATA,sha256=n7SwxQD_obNzaXvGlEM0bboS6xuvPzEB98xLWxZz3RY,2612
65
- pyegeria-0.5.5.19.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
66
- pyegeria-0.5.5.19.dist-info/entry_points.txt,sha256=yR22RzRO974vzRMeo7_ysc-_5pxHmgnvyk8FHTZviOw,1950
67
- pyegeria-0.5.5.19.dist-info/RECORD,,
66
+ pyegeria-0.5.5.21.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
67
+ pyegeria-0.5.5.21.dist-info/METADATA,sha256=xQoHcI2Lv9o7IdWR6f7MZTVuhOU4F2l6WsRhYlLUjK4,2612
68
+ pyegeria-0.5.5.21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
69
+ pyegeria-0.5.5.21.dist-info/entry_points.txt,sha256=WgNY6OkZlWQ5uwE_qtyfVyuOX-dnOKyH0cW2JlKRIJ0,2038
70
+ pyegeria-0.5.5.21.dist-info/RECORD,,
@@ -13,6 +13,7 @@ list_tech_templates=examples.widgets.developer.list_tech_templates:main
13
13
  list_tech_types=examples.widgets.developer.list_tech_types:main
14
14
  list_todos=examples.widgets.personal_organizer.list_todos:main
15
15
  list_valid_metadata_values=examples.widgets.developer.list_valid_metadata_values:main
16
+ refresh_integration_daemon=examples.widgets.operational.refresh_integration_daemon:main
16
17
  view_asset_events=examples.widgets.operational.view_asset_events:main
17
18
  view_asset_graph=examples.widgets.catalog_user.view_asset_graph:main
18
19
  view_coco_status=examples.widgets.operational.view_coco_status:main