pyegeria 0.7.0__tar.gz → 0.7.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 (84) hide show
  1. {pyegeria-0.7.0 → pyegeria-0.7.3}/PKG-INFO +1 -1
  2. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/doc_samples/Create_Collection_Sample.py +1 -1
  3. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/get_asset_graph.py +6 -6
  4. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/list_assets.py +3 -2
  5. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cli/egeria.py +4 -4
  6. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/my/list_my_profile.py +5 -5
  7. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/list_catalog_targets.py +2 -0
  8. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/tech/get_guid_info.py +5 -1
  9. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyproject.toml +1 -1
  10. {pyegeria-0.7.0 → pyegeria-0.7.3}/LICENSE +0 -0
  11. {pyegeria-0.7.0 → pyegeria-0.7.3}/README.md +0 -0
  12. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -0
  13. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/README.md +0 -0
  14. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/__init__.py +0 -0
  15. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/get_collection.py +0 -0
  16. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/get_project_structure.py +0 -0
  17. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/get_tech_type_elements.py +0 -0
  18. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/get_tech_type_template.py +0 -0
  19. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/list_cert_types.py +0 -0
  20. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/list_glossary.py +0 -0
  21. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/list_projects.py +0 -0
  22. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/list_tech_types.py +0 -0
  23. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cat/list_todos.py +0 -0
  24. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cli/__init__.py +0 -0
  25. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cli/egeria_cat.py +0 -0
  26. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cli/egeria_my.py +0 -0
  27. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cli/egeria_ops.py +0 -0
  28. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cli/egeria_tech.py +0 -0
  29. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/cli/ops_config.py +0 -0
  30. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/my/README.md +0 -0
  31. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/my/__init__.py +0 -0
  32. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/my/list_my_roles.py +0 -0
  33. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/my/monitor_my_todos.py +0 -0
  34. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/my/monitor_open_todos.py +0 -0
  35. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/my/my_profile_actions.py +0 -0
  36. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/README.md +0 -0
  37. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/__init__.py +0 -0
  38. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/engine_actions.py +0 -0
  39. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/integration_daemon_actions.py +0 -0
  40. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/load_archive.py +0 -0
  41. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/monitor_asset_events.py +0 -0
  42. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/monitor_coco_status.py +0 -0
  43. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/monitor_engine_activity.py +0 -0
  44. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/monitor_gov_eng_status.py +0 -0
  45. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/monitor_integ_daemon_status.py +0 -0
  46. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/monitor_platform_status.py +0 -0
  47. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/monitor_server_list.py +0 -0
  48. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/monitor_server_status.py +0 -0
  49. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/refresh_integration_daemon.py +0 -0
  50. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/ops/restart_integration_daemon.py +0 -0
  51. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/tech/README.md +0 -0
  52. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/tech/__init__.py +0 -0
  53. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/tech/get_tech_details.py +0 -0
  54. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/tech/list_asset_types.py +0 -0
  55. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/tech/list_registered_services.py +0 -0
  56. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/tech/list_relationship_types.py +0 -0
  57. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/tech/list_tech_templates.py +0 -0
  58. {pyegeria-0.7.0 → pyegeria-0.7.3}/examples/widgets/tech/list_valid_metadata_values.py +0 -0
  59. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/Xloaded_resources_omvs.py +0 -0
  60. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/__init__.py +0 -0
  61. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/_client.py +0 -0
  62. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/_deprecated_gov_engine.py +0 -0
  63. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/_exceptions.py +0 -0
  64. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/_globals.py +0 -0
  65. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/_validators.py +0 -0
  66. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/action_author_omvs.py +0 -0
  67. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/asset_catalog_omvs.py +0 -0
  68. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/automated_curation_omvs.py +0 -0
  69. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/classification_manager_omvs.py +0 -0
  70. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/collection_manager_omvs.py +0 -0
  71. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/core_omag_server_config.py +0 -0
  72. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/create_tech_guid_lists.py +0 -0
  73. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/feedback_manager_omvs.py +0 -0
  74. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/full_omag_server_config.py +0 -0
  75. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/glossary_browser_omvs.py +0 -0
  76. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/glossary_manager_omvs.py +0 -0
  77. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/my_profile_omvs.py +0 -0
  78. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/platform_services.py +0 -0
  79. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/project_manager_omvs.py +0 -0
  80. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/registered_info.py +0 -0
  81. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/runtime_manager_omvs.py +0 -0
  82. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/server_operations.py +0 -0
  83. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/utils.py +0 -0
  84. {pyegeria-0.7.0 → pyegeria-0.7.3}/pyegeria/valid_metadata_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.7.0
3
+ Version: 0.7.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
@@ -40,7 +40,7 @@ try:
40
40
  display_name, description, collection_type,
41
41
  is_own_anchor)
42
42
  # Create first folder for Agriculture Insights
43
- parent_guid = "f53ea7c8-3107-4477-8459-9bc63f9e69af"
43
+ parent_guid = response
44
44
  parent_relationship_type_name = "CollectionMembership"
45
45
  display_name = "Agriculture Insights Collection"
46
46
  description = "A folder for agricultural insights data product collections"
@@ -65,14 +65,14 @@ def asset_viewer(asset_guid: str, server_name: str, platform_url: str, user: str
65
65
 
66
66
  def build_nested_elements(nested_element: dict) -> Markdown:
67
67
  ne_md = " "
68
-
69
- ne_created_by = nested_element["versions"]["createdBy"]
70
- ne_created_at = nested_element["versions"]["createTime"]
71
- ne_guid = nested_element["guid"]
68
+ ne_header = nested_element['elementHeader']
69
+ ne_created_by = ne_header["versions"]["createdBy"]
70
+ ne_created_at = ne_header["versions"]["createTime"]
71
+ ne_guid = ne_header["guid"]
72
72
  guid_list.append(ne_guid)
73
73
 
74
- ne_type = nested_element["type"]["typeName"]
75
- ne_classifications = nested_element["classifications"]
74
+ ne_type = ne_header["type"]["typeName"]
75
+ ne_classifications = ne_header["classifications"]
76
76
  ne_class_md = build_classifications(ne_classifications)
77
77
  # ne_class_md = " " if ne_class_md is None else ne_class_md
78
78
  ne_props = nested_element.get("properties", "---")
@@ -102,10 +102,11 @@ def display_assets(search_string: str, server: str, url: str, username: str, use
102
102
  match_tab.add_column("GUID", no_wrap=True, width=36)
103
103
  match_tab.add_column("Properties")
104
104
 
105
- for match in nested:
105
+ for match_t in nested:
106
+ match = match_t['elementHeader']
106
107
  match_type_name = match['type']['typeName']
107
108
  matching_guid = match['guid']
108
- match_props = match['properties']
109
+ match_props = match_t['properties']
109
110
  match_details_md = ""
110
111
  for key in match_props.keys():
111
112
  match_details_md += f"* {key}: {match_props[key]}\n"
@@ -499,14 +499,14 @@ def survey_uc_server(ctx, uc_endpoint):
499
499
  # Operations: Show
500
500
  #
501
501
 
502
- @cli.group('operations')
502
+ @cli.group('ops')
503
503
  @click.pass_context
504
- def operations(ctx):
504
+ def ops(ctx):
505
505
  """ Commands to understand and manage operations"""
506
506
  pass
507
507
 
508
508
 
509
- @operations.group("show")
509
+ @ops.group("show")
510
510
  @click.pass_context
511
511
  def show(ctx):
512
512
  """Display an Egeria Object"""
@@ -610,7 +610,7 @@ def integrations_status(ctx, connector):
610
610
  # Operations: Tell
611
611
  #
612
612
 
613
- @operations.group('tell')
613
+ @ops.group('tell')
614
614
  @click.pass_context
615
615
  def tell(ctx):
616
616
  """Perform actions an Egeria Objects"""
@@ -41,7 +41,7 @@ EGERIA_ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD', 'secret')
41
41
  EGERIA_USER = os.environ.get('EGERIA_USER', 'erinoverview')
42
42
  EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
43
43
  EGERIA_JUPYTER = bool(os.environ.get('EGERIA_JUPYTER', 'False'))
44
- EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '200'))
44
+ EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '150'))
45
45
 
46
46
  def display_my_profile(server: str, url: str, username: str, user_pass:str,
47
47
  jupyter:bool=EGERIA_JUPYTER, width:int = EGERIA_WIDTH):
@@ -71,13 +71,13 @@ def display_my_profile(server: str, url: str, username: str, user_pass:str,
71
71
  for k in profile_props[key].keys():
72
72
  p_md += f"\t* {k}: {profile_props[key][k]}\n"
73
73
  profile_props_md += p_md
74
- t1 = tree.add(Panel(Markdown(profile_props_md),title="Profile Properties"))
74
+ t1 = tree.add(Panel(Markdown(profile_props_md),title="Profile Properties", expand=False))
75
75
 
76
76
 
77
77
  id_list_md=""
78
78
  for identities in my_profiles["userIdentities"]:
79
79
  id_list_md += f"* {identities['userIdentity']['properties']['userId']}\n"
80
- t2 = tree.add(Panel(Markdown(id_list_md), title="Identities"))
80
+ t2 = tree.add(Panel(Markdown(id_list_md), title="Identities", expand=False))
81
81
 
82
82
  contact_methods = my_profiles['contactMethods']
83
83
  for method in contact_methods:
@@ -85,7 +85,7 @@ def display_my_profile(server: str, url: str, username: str, user_pass:str,
85
85
  contact_methods_md = ""
86
86
  for key in contact.keys():
87
87
  contact_methods_md += f"* {key}: {contact[key]}\n"
88
- t3 = tree.add(Panel(Markdown(contact_methods_md), title="Contact Methods"))
88
+ t3 = tree.add(Panel(Markdown(contact_methods_md), title="Contact Methods", expand=False))
89
89
 
90
90
  my_roles = my_profiles["roles"]
91
91
  table = Table(
@@ -105,7 +105,7 @@ def display_my_profile(server: str, url: str, username: str, user_pass:str,
105
105
  table.add_row(
106
106
  role_type, role, role_guid
107
107
  )
108
- t4 = tree.add(Panel(table, title="Roles" ),expanded=True)
108
+ t4 = tree.add(Panel(table, title="Roles", expand=False ),expanded=True)
109
109
 
110
110
  print(tree)
111
111
 
@@ -41,8 +41,10 @@ EGERIA_JUPYTER = bool(os.environ.get('EGERIA_JUPYTER', 'False'))
41
41
  EGERIA_WIDTH = int(os.environ.get('EGERIA_WIDTH', '200'))
42
42
 
43
43
 
44
+
44
45
  def display_catalog_targets(connector: str, server: str, url: str, username: str, user_password: str,
45
46
  jupyter: bool = EGERIA_JUPYTER, width: int = EGERIA_WIDTH):
47
+ console = Console(force_terminal=not jupyter, width=width, soft_wrap=True)
46
48
  def generate_table() -> Table:
47
49
  """Make a new table."""
48
50
  table = Table(
@@ -24,7 +24,7 @@ from pyegeria import (
24
24
  InvalidParameterException,
25
25
  PropertyServerException,
26
26
  UserNotAuthorizedException,
27
- Client
27
+ Client, ClassificationManager
28
28
  )
29
29
 
30
30
 
@@ -48,12 +48,16 @@ def display_guid(guid: str, server: str, url: str, username: str, user_password:
48
48
  c = Client(server, url, user_id=username)
49
49
  url = (f"{url}/servers/{server}/open-metadata/repository-services/users/{username}/"
50
50
  f"instances/entity/{guid}")
51
+ # c = ClassificationManager(server, url)
52
+
53
+ bearer_token = c.create_egeria_bearer_token(username, user_password)
51
54
 
52
55
  try:
53
56
  console = Console(width=width, force_terminal=not jupyter, style="bold white on black")
54
57
  r = c.make_request("GET", url)
55
58
  if r.status_code == 200:
56
59
  pass
60
+ # r = c.retrieve_instance_for_guid(guid)
57
61
  e = r.json()['entity']
58
62
  p = e['properties']['instanceProperties']
59
63
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "0.7.0"
3
+ version = "0.7.3"
4
4
  license = 'Apache 2.0'
5
5
  authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes