pyegeria 0.8.4.7__py3-none-any.whl → 0.8.4.9__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.
Files changed (28) hide show
  1. pyegeria/__init__.py +0 -1
  2. pyegeria/egeria_config_client.py +3 -4
  3. pyegeria/egeria_tech_client.py +5 -0
  4. {pyegeria-0.8.4.7.dist-info → pyegeria-0.8.4.9.dist-info}/METADATA +1 -1
  5. {pyegeria-0.8.4.7.dist-info → pyegeria-0.8.4.9.dist-info}/RECORD +8 -28
  6. examples/doc_samples/Create_Collection_Sample.py +0 -320
  7. examples/doc_samples/Create_Sustainability_Collection_Sample.py +0 -149
  8. examples/widgets/ops/README.md +0 -24
  9. examples/widgets/ops/__init__.py +0 -19
  10. examples/widgets/ops/engine_actions.py +0 -83
  11. examples/widgets/ops/integration_daemon_actions.py +0 -139
  12. examples/widgets/ops/list_catalog_targets.py +0 -157
  13. examples/widgets/ops/load_archive.py +0 -62
  14. examples/widgets/ops/monitor_asset_events.py +0 -102
  15. examples/widgets/ops/monitor_coco_status.py +0 -103
  16. examples/widgets/ops/monitor_engine_activity.py +0 -236
  17. examples/widgets/ops/monitor_engine_activity_c.py +0 -253
  18. examples/widgets/ops/monitor_gov_eng_status.py +0 -188
  19. examples/widgets/ops/monitor_integ_daemon_status.py +0 -256
  20. examples/widgets/ops/monitor_platform_status.py +0 -176
  21. examples/widgets/ops/monitor_server_list.py +0 -140
  22. examples/widgets/ops/monitor_server_status.py +0 -109
  23. examples/widgets/ops/refresh_integration_daemon.py +0 -73
  24. examples/widgets/ops/restart_integration_daemon.py +0 -73
  25. pyegeria/egeria_ops_client.py +0 -75
  26. {pyegeria-0.8.4.7.dist-info → pyegeria-0.8.4.9.dist-info}/LICENSE +0 -0
  27. {pyegeria-0.8.4.7.dist-info → pyegeria-0.8.4.9.dist-info}/WHEEL +0 -0
  28. {pyegeria-0.8.4.7.dist-info → pyegeria-0.8.4.9.dist-info}/entry_points.txt +0 -0
@@ -1,73 +0,0 @@
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
- def refresh_connector(connector: str, server:str, url:str, userid:str, password:str):
37
- try:
38
-
39
- s_client = ServerOps(server, url, userid)
40
- if connector == 'all':
41
- connector = None
42
- statement = "ALL connectors"
43
- else:
44
- statement = f"the {connector} "
45
-
46
- s_client.refresh_integration_connectors(connector, server, time_out = 60)
47
-
48
- print(f"\n===> Integration Daemon \'{server}\' refreshed {statement}.")
49
-
50
-
51
- except (InvalidParameterException, PropertyServerException) as e:
52
- print_exception_response(e)
53
-
54
-
55
-
56
-
57
- def main():
58
- parser = argparse.ArgumentParser()
59
- parser.add_argument("--server", help="Name of the integration daemon to refresh")
60
- parser.add_argument("--url", help="URL Platform to connect to")
61
- parser.add_argument("--userid", help="User Id")
62
- parser.add_argument("--password", help="User Password")
63
- parser.add_argument("--connector", default='all', help="Name of the connector to refresh")
64
- args = parser.parse_args()
65
-
66
- server = args.server if args.server is not None else EGERIA_INTEGRATION_DAEMON
67
- url = args.url if args.url is not None else EGERIA_INTEGRATION_DAEMON_URL
68
- userid = args.userid if args.userid is not None else EGERIA_ADMIN_USER
69
- user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
70
- refresh_connector(args.connector, server, url, userid, user_pass)
71
-
72
- if __name__ == "__main__":
73
- main()
@@ -1,73 +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
- 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
- def restart_connector(connector: str, server:str, url:str, userid:str, password:str):
37
- try:
38
-
39
- s_client = ServerOps(server, url, userid)
40
- if connector == 'all':
41
- connector = None
42
- statement = "ALL connectors"
43
- else:
44
- statement = f"the {connector} "
45
-
46
- s_client.restart_integration_connector(connector, server, time_out = 60)
47
-
48
- print(f"\n===> Integration Daemon \'{server}\' restarted {statement}.")
49
-
50
-
51
- except (InvalidParameterException, PropertyServerException) as e:
52
- print_exception_response(e)
53
-
54
-
55
-
56
-
57
- def main():
58
- parser = argparse.ArgumentParser()
59
- parser.add_argument("--server", help="Name of the integration daemon to refresh")
60
- parser.add_argument("--url", help="URL Platform to connect to")
61
- parser.add_argument("--userid", help="User Id")
62
- parser.add_argument("--password", help="User Password")
63
- parser.add_argument("--connector", default='all', help="Name of the connector to refresh")
64
- args = parser.parse_args()
65
-
66
- server = args.server if args.server is not None else EGERIA_INTEGRATION_DAEMON
67
- url = args.url if args.url is not None else EGERIA_INTEGRATION_DAEMON_URL
68
- userid = args.userid if args.userid is not None else EGERIA_ADMIN_USER
69
- user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
70
- restart_connector(args.connector, server, url, userid, user_pass)
71
-
72
- if __name__ == "__main__":
73
- main()
@@ -1,75 +0,0 @@
1
- """
2
- SPDX-License-Identifier: Apache-2.0
3
- Copyright Contributors to the ODPi Egeria project.
4
-
5
- Client to manage Egeria operations. Inherits methods from EgeriaConfig,
6
- ServerOps, RuntimeManager and Platform.
7
-
8
- """
9
- from examples.doc_samples.Create_Sustainability_Collection_Sample import token
10
- from pyegeria._exceptions import (
11
- InvalidParameterException,
12
- )
13
- from pyegeria import (
14
- max_paging_size,
15
- body_slimmer,
16
- MyProfile,
17
- FeedbackManager,
18
- EgeriaCat,
19
- ValidMetadataManager,
20
- AutomatedCuration,
21
- ActionAuthor,
22
- ClassificationManager,
23
- RegisteredInfo,
24
- RuntimeManager,
25
- ServerOps,
26
- EgeriaConfig,
27
- Platform,
28
- EgeriaMy,
29
- )
30
-
31
-
32
- class EgeriaOps(RuntimeManager, EgeriaConfig, ServerOps, EgeriaMy):
33
- """
34
- Client for managing Egeria operations.
35
-
36
- Attributes:
37
-
38
- server_name: str
39
- Name of the server to use.
40
- platform_url : str
41
- URL of the server platform to connect to
42
- user_id : str
43
- The identity of the user calling the method - this sets a default optionally used by the methods
44
- when the user doesn't pass the user_id on a method call.
45
- user_pwd: str
46
- The password associated with the user_id. Defaults to None
47
- token: str, optional
48
- Bearer token
49
-
50
- Methods:
51
- Inherits methods from EgeriaCat, ActionAuthor, AutomatedCuration,
52
- ClassificationManager, RegisteredInfo, ValidMetadataManager
53
- """
54
-
55
- def __init__(
56
- self,
57
- server_name: str,
58
- platform_url: str,
59
- user_id: str,
60
- user_pwd: str = None,
61
- token: str = None,
62
- ):
63
- EgeriaConfig.__init__(self, server_name, platform_url, user_id, user_pwd)
64
- RuntimeManager.__init__(
65
- self, server_name, platform_url, user_id, user_pwd, token=token
66
- )
67
- ServerOps.__init__(self, server_name, platform_url, user_id, user_pwd)
68
-
69
- EgeriaMy.__init__(
70
- self, server_name, platform_url, user_id, user_pwd, token=token
71
- )
72
-
73
-
74
- if __name__ == "__main__":
75
- print("Main-Ops Client")