pyegeria 0.6.8__tar.gz → 0.7.2__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.6.8 → pyegeria-0.7.2}/PKG-INFO +1 -1
  2. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/get_asset_graph.py +6 -6
  3. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/egeria.py +4 -4
  4. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/get_guid_info.py +5 -1
  5. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/classification_manager_omvs.py +1638 -199
  6. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyproject.toml +1 -1
  7. {pyegeria-0.6.8 → pyegeria-0.7.2}/LICENSE +0 -0
  8. {pyegeria-0.6.8 → pyegeria-0.7.2}/README.md +0 -0
  9. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/doc_samples/Create_Collection_Sample.py +0 -0
  10. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -0
  11. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/README.md +0 -0
  12. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/__init__.py +0 -0
  13. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/get_collection.py +0 -0
  14. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/get_project_structure.py +0 -0
  15. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/get_tech_type_elements.py +0 -0
  16. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/get_tech_type_template.py +0 -0
  17. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_assets.py +0 -0
  18. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_cert_types.py +0 -0
  19. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_glossary.py +0 -0
  20. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_projects.py +0 -0
  21. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_tech_types.py +0 -0
  22. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cat/list_todos.py +0 -0
  23. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/__init__.py +0 -0
  24. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/egeria_cat.py +0 -0
  25. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/egeria_my.py +0 -0
  26. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/egeria_ops.py +0 -0
  27. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/egeria_tech.py +0 -0
  28. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/cli/ops_config.py +0 -0
  29. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/README.md +0 -0
  30. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/__init__.py +0 -0
  31. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/list_my_profile.py +0 -0
  32. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/list_my_roles.py +0 -0
  33. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/monitor_my_todos.py +0 -0
  34. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/monitor_open_todos.py +0 -0
  35. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/my/my_profile_actions.py +0 -0
  36. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/README.md +0 -0
  37. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/__init__.py +0 -0
  38. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/engine_actions.py +0 -0
  39. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/integration_daemon_actions.py +0 -0
  40. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/list_catalog_targets.py +0 -0
  41. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/load_archive.py +0 -0
  42. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_asset_events.py +0 -0
  43. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_coco_status.py +0 -0
  44. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_engine_activity.py +0 -0
  45. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_gov_eng_status.py +0 -0
  46. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_integ_daemon_status.py +0 -0
  47. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_platform_status.py +0 -0
  48. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_server_list.py +0 -0
  49. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/monitor_server_status.py +0 -0
  50. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/refresh_integration_daemon.py +0 -0
  51. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/ops/restart_integration_daemon.py +0 -0
  52. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/README.md +0 -0
  53. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/__init__.py +0 -0
  54. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/get_tech_details.py +0 -0
  55. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/list_asset_types.py +0 -0
  56. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/list_registered_services.py +0 -0
  57. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/list_relationship_types.py +0 -0
  58. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/list_tech_templates.py +0 -0
  59. {pyegeria-0.6.8 → pyegeria-0.7.2}/examples/widgets/tech/list_valid_metadata_values.py +0 -0
  60. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/Xloaded_resources_omvs.py +0 -0
  61. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/__init__.py +0 -0
  62. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/_client.py +0 -0
  63. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/_deprecated_gov_engine.py +0 -0
  64. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/_exceptions.py +0 -0
  65. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/_globals.py +0 -0
  66. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/_validators.py +0 -0
  67. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/action_author_omvs.py +0 -0
  68. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/asset_catalog_omvs.py +0 -0
  69. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/automated_curation_omvs.py +0 -0
  70. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/collection_manager_omvs.py +0 -0
  71. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/core_omag_server_config.py +0 -0
  72. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/create_tech_guid_lists.py +0 -0
  73. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/feedback_manager_omvs.py +0 -0
  74. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/full_omag_server_config.py +0 -0
  75. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/glossary_browser_omvs.py +0 -0
  76. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/glossary_manager_omvs.py +0 -0
  77. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/my_profile_omvs.py +0 -0
  78. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/platform_services.py +0 -0
  79. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/project_manager_omvs.py +0 -0
  80. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/registered_info.py +0 -0
  81. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/runtime_manager_omvs.py +0 -0
  82. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/server_operations.py +0 -0
  83. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/utils.py +0 -0
  84. {pyegeria-0.6.8 → pyegeria-0.7.2}/pyegeria/valid_metadata_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.6.8
3
+ Version: 0.7.2
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -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", "---")
@@ -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"""
@@ -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