pyegeria 0.8.4.28__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.
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/PKG-INFO +1 -1
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/load_archive.py +2 -4
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/runtime_manager_omvs.py +13 -5
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyproject.toml +1 -1
- pyegeria-0.8.4.28/commands/my/my_profile_actions.py +0 -139
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/LICENSE +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/README.md +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/README.md +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/__init__.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/get_asset_graph.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/get_collection.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/get_project_dependencies.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/get_project_structure.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/get_tech_type_elements.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/get_tech_type_template.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/list_archives.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/list_assets.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/list_cert_types.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/list_glossary.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/list_projects.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/list_relationships.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/list_tech_types.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/list_todos.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cat/list_user_ids.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cli/__init__.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cli/egeria.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cli/egeria_cat.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cli/egeria_my.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cli/egeria_ops.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cli/egeria_tech.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/cli/ops_config.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/my/README.md +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/my/__init__.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/my/list_my_profile.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/my/list_my_roles.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/my/monitor_my_todos.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/my/monitor_open_todos.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/my/todo_actions.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/README.md +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/__init__.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/engine_actions.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/gov_server_actions.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/list_catalog_targets.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/monitor_asset_events.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/monitor_engine_activity.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/monitor_engine_activity_c.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/monitor_gov_eng_status.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/monitor_integ_daemon_status.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/monitor_platform_status.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/monitor_server_status.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/orig_monitor_server_list.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/orig_monitor_server_status.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/refresh_integration_daemon.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/ops/restart_integration_daemon.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/README.md +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/__init__.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/get_element_info.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/get_guid_info.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/get_tech_details.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/list_asset_types.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/list_elements.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/list_elements_x.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/list_registered_services.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/list_related_specification.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/list_relationship_types.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/list_tech_templates.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/list_valid_metadata_values.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/commands/tech/x_list_related_elements.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/__init__.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/_client.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/_deprecated_gov_engine.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/_exceptions.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/_globals.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/_validators.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/asset_catalog_omvs.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/automated_curation_omvs.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/classification_manager_omvs.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/collection_manager_omvs.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/core_omag_server_config.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/create_tech_guid_lists.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/egeria_cat_client.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/egeria_client.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/egeria_config_client.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/egeria_my_client.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/egeria_tech_client.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/feedback_manager_omvs.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/full_omag_server_config.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/glossary_browser_omvs.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/glossary_manager_omvs.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/mermaid_utilities.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/my_profile_omvs.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/platform_services.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/project_manager_omvs.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/registered_info.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/server_operations.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/utils.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/valid_metadata_omvs.py +0 -0
- {pyegeria-0.8.4.28 → pyegeria-0.8.4.29}/pyegeria/x_action_author_omvs.py +0 -0
@@ -29,8 +29,6 @@ EGERIA_INTEGRATION_DAEMON = os.environ.get("INTEGRATION_DAEMON", "integration-da
|
|
29
29
|
EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
|
30
30
|
"EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
|
31
31
|
)
|
32
|
-
EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
|
33
|
-
EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
|
34
32
|
EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
|
35
33
|
EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
|
36
34
|
|
@@ -51,8 +49,8 @@ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
|
|
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=
|
55
|
-
@click.option("--password", default=
|
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(
|
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
|
-
|
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(
|
936
|
+
self._async_add_archive_content(
|
937
|
+
server_guid, archive_content, time_out=time_out
|
938
|
+
)
|
931
939
|
)
|
932
940
|
return
|
933
941
|
|
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|