pyegeria 0.5.5.19__py3-none-any.whl → 0.5.5.20__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.
@@ -0,0 +1,64 @@
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
+
37
+ def main():
38
+ parser = argparse.ArgumentParser()
39
+ parser.add_argument("--server", help="Name of the integration daemon to refresh")
40
+ parser.add_argument("--url", help="URL Platform to connect to")
41
+ parser.add_argument("--userid", help="User Id")
42
+ parser.add_argument("--password", help="User Password")
43
+ args = parser.parse_args()
44
+
45
+ server = args.server if args.server is not None else EGERIA_INTEGRATION_DAEMON
46
+ url = args.url if args.url is not None else EGERIA_INTEGRATION_DAEMON_URL
47
+ userid = args.userid if args.userid is not None else EGERIA_ADMIN_USER
48
+ user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
49
+
50
+ try:
51
+
52
+ s_client = ServerOps(server, url, userid)
53
+
54
+ s_client.refresh_integration_connectors(None, server)
55
+
56
+ print(f"\n===> Integration Daemon: \'{server}\' was refreshed.")
57
+
58
+
59
+ except (InvalidParameterException, PropertyServerException) as e:
60
+ print_exception_response(e)
61
+
62
+
63
+ if __name__ == "__main__":
64
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.5.5.19
3
+ Version: 0.5.5.20
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -20,6 +20,7 @@ examples/widgets/operational/README.md,sha256=PJsSDcvMv6E6og6y-cwvxFX5lhCII0UCwg
20
20
  examples/widgets/operational/__init__.py,sha256=8ebdyTD7i-XXyZr0vDx6jnXalE6QjhCvu7n6YXxwgL0,112
21
21
  examples/widgets/operational/get_tech_type_elements.py,sha256=zSyY3RMXDNqifG3w28LJo6cnKL4hGUKnXByfhJeAyQE,5838
22
22
  examples/widgets/operational/get_tech_type_template.py,sha256=4dL7mm2BMftTysoMpajRgUlisw1cjvx_w2CT2MwPotU,5857
23
+ examples/widgets/operational/refresh_integration_daemon.py,sha256=7GF_xzO83nhvTaxJR2DMI7fsHg6TA4xaIy7z8YNbSlk,2274
23
24
  examples/widgets/operational/view_asset_events.py,sha256=D_3jVN2PiTdXdvrUpo6f-m8E-MWXEG23-CQcHqyR2zs,3396
24
25
  examples/widgets/operational/view_coco_status.py,sha256=QloMgVcXL2Fx2XHyk71PKCwmzRfc_Q_cAvpyomcYi_Y,3322
25
26
  examples/widgets/operational/view_eng_action_status.py,sha256=5KHNKMSHxe4-nEIyLJjcaWUBrbV3JcP6ijri5KmmVaA,5969
@@ -60,8 +61,8 @@ pyegeria/runtime_manager_omvs.py,sha256=WekK7Yeyn6Qu9YmbSDo3m57MN0xOsIm9M8kGHfRO
60
61
  pyegeria/server_operations.py,sha256=hEaU6YC0iNEQFvcXYvcE4J6BQKlqMJk33nViCNIEBE4,16349
61
62
  pyegeria/utils.py,sha256=lWd0FrHh7DFR1UeOzk3Y1I_xR_zmlFYWL1Pci-ZuZmw,5342
62
63
  pyegeria/valid_metadata_omvs.py,sha256=aisdRodIwJSkyArAzfm_sEnBELh69xE8k4Nea-vHu8M,36745
63
- pyegeria-0.5.5.19.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
64
- pyegeria-0.5.5.19.dist-info/METADATA,sha256=n7SwxQD_obNzaXvGlEM0bboS6xuvPzEB98xLWxZz3RY,2612
65
- pyegeria-0.5.5.19.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
66
- pyegeria-0.5.5.19.dist-info/entry_points.txt,sha256=yR22RzRO974vzRMeo7_ysc-_5pxHmgnvyk8FHTZviOw,1950
67
- pyegeria-0.5.5.19.dist-info/RECORD,,
64
+ pyegeria-0.5.5.20.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
65
+ pyegeria-0.5.5.20.dist-info/METADATA,sha256=DIsZPSRkC4aFyirkDGNtpF7K7iVLzhvs7St0D7vIsSE,2612
66
+ pyegeria-0.5.5.20.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
67
+ pyegeria-0.5.5.20.dist-info/entry_points.txt,sha256=WgNY6OkZlWQ5uwE_qtyfVyuOX-dnOKyH0cW2JlKRIJ0,2038
68
+ pyegeria-0.5.5.20.dist-info/RECORD,,
@@ -13,6 +13,7 @@ list_tech_templates=examples.widgets.developer.list_tech_templates:main
13
13
  list_tech_types=examples.widgets.developer.list_tech_types:main
14
14
  list_todos=examples.widgets.personal_organizer.list_todos:main
15
15
  list_valid_metadata_values=examples.widgets.developer.list_valid_metadata_values:main
16
+ refresh_integration_daemon=examples.widgets.operational.refresh_integration_daemon:main
16
17
  view_asset_events=examples.widgets.operational.view_asset_events:main
17
18
  view_asset_graph=examples.widgets.catalog_user.view_asset_graph:main
18
19
  view_coco_status=examples.widgets.operational.view_coco_status:main