pyegeria 0.8.4.27__tar.gz → 0.8.4.29__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 (98) hide show
  1. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/PKG-INFO +1 -1
  2. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/load_archive.py +5 -7
  3. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/runtime_manager_omvs.py +13 -5
  4. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyproject.toml +1 -1
  5. pyegeria-0.8.4.27/commands/my/my_profile_actions.py +0 -139
  6. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/LICENSE +0 -0
  7. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/README.md +0 -0
  8. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/README.md +0 -0
  9. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/__init__.py +0 -0
  10. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/get_asset_graph.py +0 -0
  11. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/get_collection.py +0 -0
  12. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/get_project_dependencies.py +0 -0
  13. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/get_project_structure.py +0 -0
  14. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/get_tech_type_elements.py +0 -0
  15. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/get_tech_type_template.py +0 -0
  16. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/list_archives.py +0 -0
  17. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/list_assets.py +0 -0
  18. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/list_cert_types.py +0 -0
  19. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/list_glossary.py +0 -0
  20. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/list_projects.py +0 -0
  21. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/list_relationships.py +0 -0
  22. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/list_tech_types.py +0 -0
  23. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/list_todos.py +0 -0
  24. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cat/list_user_ids.py +0 -0
  25. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cli/__init__.py +0 -0
  26. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cli/egeria.py +0 -0
  27. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cli/egeria_cat.py +0 -0
  28. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cli/egeria_my.py +0 -0
  29. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cli/egeria_ops.py +0 -0
  30. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cli/egeria_tech.py +0 -0
  31. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/cli/ops_config.py +0 -0
  32. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/my/README.md +0 -0
  33. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/my/__init__.py +0 -0
  34. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/my/list_my_profile.py +0 -0
  35. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/my/list_my_roles.py +0 -0
  36. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/my/monitor_my_todos.py +0 -0
  37. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/my/monitor_open_todos.py +0 -0
  38. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/my/todo_actions.py +0 -0
  39. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/README.md +0 -0
  40. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/__init__.py +0 -0
  41. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/engine_actions.py +0 -0
  42. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/gov_server_actions.py +0 -0
  43. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/list_catalog_targets.py +0 -0
  44. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/monitor_asset_events.py +0 -0
  45. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/monitor_engine_activity.py +0 -0
  46. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/monitor_engine_activity_c.py +0 -0
  47. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/monitor_gov_eng_status.py +0 -0
  48. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/monitor_integ_daemon_status.py +0 -0
  49. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/monitor_platform_status.py +0 -0
  50. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/monitor_server_status.py +0 -0
  51. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/orig_monitor_server_list.py +0 -0
  52. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/orig_monitor_server_status.py +0 -0
  53. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/refresh_integration_daemon.py +0 -0
  54. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/ops/restart_integration_daemon.py +0 -0
  55. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/README.md +0 -0
  56. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/__init__.py +0 -0
  57. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/get_element_info.py +0 -0
  58. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/get_guid_info.py +0 -0
  59. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/get_tech_details.py +0 -0
  60. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/list_asset_types.py +0 -0
  61. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/list_elements.py +0 -0
  62. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/list_elements_x.py +0 -0
  63. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/list_registered_services.py +0 -0
  64. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/list_related_specification.py +0 -0
  65. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/list_relationship_types.py +0 -0
  66. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/list_tech_templates.py +0 -0
  67. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/list_valid_metadata_values.py +0 -0
  68. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/commands/tech/x_list_related_elements.py +0 -0
  69. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/__init__.py +0 -0
  70. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/_client.py +0 -0
  71. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/_deprecated_gov_engine.py +0 -0
  72. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/_exceptions.py +0 -0
  73. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/_globals.py +0 -0
  74. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/_validators.py +0 -0
  75. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/asset_catalog_omvs.py +0 -0
  76. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/automated_curation_omvs.py +0 -0
  77. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/classification_manager_omvs.py +0 -0
  78. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/collection_manager_omvs.py +0 -0
  79. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/core_omag_server_config.py +0 -0
  80. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/create_tech_guid_lists.py +0 -0
  81. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/egeria_cat_client.py +0 -0
  82. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/egeria_client.py +0 -0
  83. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/egeria_config_client.py +0 -0
  84. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/egeria_my_client.py +0 -0
  85. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/egeria_tech_client.py +0 -0
  86. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/feedback_manager_omvs.py +0 -0
  87. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/full_omag_server_config.py +0 -0
  88. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/glossary_browser_omvs.py +0 -0
  89. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/glossary_manager_omvs.py +0 -0
  90. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/mermaid_utilities.py +0 -0
  91. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/my_profile_omvs.py +0 -0
  92. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/platform_services.py +0 -0
  93. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/project_manager_omvs.py +0 -0
  94. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/registered_info.py +0 -0
  95. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/server_operations.py +0 -0
  96. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/utils.py +0 -0
  97. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/valid_metadata_omvs.py +0 -0
  98. {pyegeria-0.8.4.27 → pyegeria-0.8.4.29}/pyegeria/x_action_author_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.8.4.27
3
+ Version: 0.8.4.29
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -9,10 +9,7 @@ This script refreshed an integration daemon.
9
9
  """
10
10
 
11
11
  import os
12
- import argparse
13
- import time
14
12
  import click
15
- from trogon import tui
16
13
  from pyegeria import AutomatedCuration, EgeriaTech
17
14
  from pyegeria._exceptions import (
18
15
  InvalidParameterException,
@@ -32,8 +29,6 @@ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-da
32
29
  EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
33
30
  "EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
34
31
  )
35
- EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
36
- EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
37
32
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
38
33
  EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
39
34
 
@@ -48,11 +43,14 @@ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
48
43
  @click.option(
49
44
  "--server", default=EGERIA_METADATA_STORE, help="Egeria metadata store to load"
50
45
  )
46
+ @click.option(
47
+ "--view-server", default=EGERIA_VIEW_SERVER, help="Egeria view server to connect to"
48
+ )
51
49
  @click.option(
52
50
  "--url", default=EGERIA_PLATFORM_URL, help="URL of Egeria platform to connect to"
53
51
  )
54
- @click.option("--userid", default=EGERIA_ADMIN_USER, help="Egeria admin user")
55
- @click.option("--password", default=EGERIA_ADMIN_PASSWORD, help="Egeria admin password")
52
+ @click.option("--userid", default=EGERIA_USER, help="Egeria admin user")
53
+ @click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria admin password")
56
54
  @click.option("--timeout", default=60, help="Number of seconds to wait")
57
55
  def load_archive(file, server, view_server, url, userid, password, timeout):
58
56
  """Load an Open Metadata Archive"""
@@ -865,7 +865,7 @@ class RuntimeManager(Client):
865
865
  return
866
866
 
867
867
  async def _async_add_archive_content(
868
- self, server_guid: str, archive_content: dict
868
+ self, server_guid: str, archive_content: dict, time_out: int = 60
869
869
  ) -> None:
870
870
  """An open metadata archive contains metadata types and instances.
871
871
  This operation loads the supplied open metadata archive into the local repository. It can be used with OMAG
@@ -879,6 +879,8 @@ class RuntimeManager(Client):
879
879
  Identity of the server to act on.
880
880
  archive_content : dict
881
881
  A dict containing the content of the archive to load.
882
+ time_out : int, optional, default = 60 seconds
883
+ Timeout for the REST call.
882
884
 
883
885
  Returns
884
886
  -------
@@ -897,10 +899,12 @@ class RuntimeManager(Client):
897
899
  f"archive-content"
898
900
  )
899
901
 
900
- await self._async_make_request("POST", url, archive_content)
902
+ await self._async_make_request("POST", url, archive_content, time_out=time_out)
901
903
  return
902
904
 
903
- def add_archive_content(self, server_guid: str, archive_content: dict) -> None:
905
+ def add_archive_content(
906
+ self, server_guid: str, archive_content: dict, time_out: int = 60
907
+ ) -> None:
904
908
  """An open metadata archive contains metadata types and instances.
905
909
  This operation loads the supplied open metadata archive into the local repository. It can be used with OMAG
906
910
  servers that are of type Open Metadata Store.
@@ -913,10 +917,12 @@ class RuntimeManager(Client):
913
917
  Identity of the server to act on.
914
918
  archive_content : dict
915
919
  A dict containing the content of the archive to load.
920
+ time_out : int, optional, default = 60 seconds
921
+ Timeout for the REST call.
916
922
 
917
923
  Returns
918
924
  -------
919
- None
925
+ None
920
926
 
921
927
  Raises
922
928
  ------
@@ -927,7 +933,9 @@ class RuntimeManager(Client):
927
933
  """
928
934
  loop = asyncio.get_event_loop()
929
935
  loop.run_until_complete(
930
- self._async_add_archive_content(server_guid, archive_content)
936
+ self._async_add_archive_content(
937
+ server_guid, archive_content, time_out=time_out
938
+ )
931
939
  )
932
940
  return
933
941
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "0.8.4.27"
3
+ version = "0.8.4.29"
4
4
  license = 'Apache 2.0'
5
5
  authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
6
6
  readme = "README.md"
@@ -1,139 +0,0 @@
1
- """
2
- SPDX-License-Identifier: Apache-2.0
3
- Copyright Contributors to the ODPi Egeria project.
4
-
5
-
6
-
7
- This script restarts an integration daemon.
8
-
9
- """
10
-
11
- import os
12
- from rich import print, print_json
13
- from rich.console import Console
14
-
15
- import click
16
- from pyegeria import ServerOps, AutomatedCuration, INTEGRATION_GUIDS, Platform
17
- from pyegeria._exceptions import (
18
- InvalidParameterException,
19
- PropertyServerException,
20
- UserNotAuthorizedException,
21
- print_exception_response,
22
- )
23
-
24
-
25
- @click.command("add-todo")
26
- @click.argument("integration-connector")
27
- @click.argument("metadata-element-guid")
28
- @click.argument("catalog-target-name")
29
- @click.pass_context
30
- def add_catalog_target(
31
- ctx,
32
- integration_connector: str,
33
- metadata_element_guid: str,
34
- catalog_target_name: str,
35
- ) -> str:
36
- """Add catalog targets to the specified integration connector"""
37
- try:
38
- if integration_connector not in INTEGRATION_GUIDS.keys():
39
- click.echo("Integration connector is not known")
40
-
41
- c = ctx.obj
42
- a_client = AutomatedCuration(
43
- c.view_server, c.view_server_url, c.userid, c.password
44
- )
45
- token = a_client.create_egeria_bearer_token()
46
-
47
- guid = a_client.add_catalog_target(
48
- INTEGRATION_GUIDS[integration_connector],
49
- metadata_element_guid,
50
- catalog_target_name,
51
- )
52
-
53
- click.echo(
54
- f"Added catalog target to {integration_connector} with a return guid of {guid}"
55
- )
56
-
57
- except (InvalidParameterException, PropertyServerException) as e:
58
- print_exception_response(e)
59
-
60
-
61
- @click.command("remove-target")
62
- @click.argument("relationship-guid")
63
- @click.pass_context
64
- def remove_catalog_target(ctx, relationship_guid: str):
65
- """Remove the catalog target specified by the relationship guidr"""
66
- try:
67
- c = ctx.obj
68
- a_client = AutomatedCuration(
69
- c.view_server, c.view_server_url, c.userid, c.password
70
- )
71
- token = a_client.create_egeria_bearer_token()
72
-
73
- a_client.remove_catalog_target(relationship_guid)
74
-
75
- click.echo(
76
- f"Removed catalog target with relationship guid of {relationship_guid}"
77
- )
78
-
79
- except (InvalidParameterException, PropertyServerException) as e:
80
- print_exception_response(e)
81
-
82
-
83
- @click.command("update-target")
84
- @click.argument("relationship-guid")
85
- @click.argument("catalog-target-name")
86
- @click.pass_context
87
- def update_catalog_target(ctx, relationship_guid: str, catalog_target_name: str):
88
- """Update the catalog target specified by the relationship guid"""
89
- try:
90
- c = ctx.obj
91
- a_client = AutomatedCuration(
92
- c.view_server, c.view_server_url, c.userid, c.password
93
- )
94
- token = a_client.create_egeria_bearer_token()
95
-
96
- guid = a_client.update_catalog_target(relationship_guid, catalog_target_name)
97
-
98
- click.echo(
99
- f"Update catalog target with relationship guid of {relationship_guid} to a catalog target name of "
100
- f"{catalog_target_name} with a return guid of {guid}"
101
- )
102
-
103
- except (InvalidParameterException, PropertyServerException) as e:
104
- print_exception_response(e)
105
-
106
-
107
- @click.command("stop")
108
- @click.pass_context
109
- def stop_server(ctx):
110
- """Stop an integration daemon"""
111
- try:
112
- c = ctx.obj
113
- p_client = Platform(
114
- c.integration_daemon, c.integration_daemon_url, c.userid, c.password
115
- )
116
-
117
- p_client.shutdown_server()
118
-
119
- click.echo(f"Stopped server {c.integration_daemon}")
120
- except (InvalidParameterException, PropertyServerException) as e:
121
- print_exception_response(e)
122
-
123
-
124
- @click.command("start")
125
- @click.pass_context
126
- def start_server(ctx):
127
- """Start or restart an integration daemon from its known configuration"""
128
- try:
129
- c = ctx.obj
130
- p_client = Platform(
131
- c.integration_daemon, c.integration_daemon_url, c.userid, c.password
132
- )
133
-
134
- p_client.activate_server_stored_config()
135
-
136
- click.echo(f"Started server {c.integration_daemon}")
137
-
138
- except (InvalidParameterException, PropertyServerException) as e:
139
- print_exception_response(e)
File without changes
File without changes